|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.operations.AbstractOperation.DataEqualOperation
public static class AbstractOperation.DataEqualOperation
A wrapper class that allows to hash/equal abstract objects using their data and not ID. Especially, standard hashing structures (HashMap, etc.) can be used on wrapped object.
Field Summary | |
---|---|
protected AbstractOperation |
operation
Encapsulated operation |
Constructor Summary | |
---|---|
AbstractOperation.DataEqualOperation(AbstractOperation operation)
Creates a new instance of DataEqualObject wrapper over the specified LocalAbstractObject. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object has the same data as this operation. |
AbstractOperation |
get()
Returns the encapsulated operation. |
int |
hashCode()
Returns a hash code value for the operation data. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final AbstractOperation operation
Constructor Detail |
---|
public AbstractOperation.DataEqualOperation(AbstractOperation operation)
operation
- the encapsulated objectMethod Detail |
---|
public AbstractOperation get()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.
true
if this object has the same data as the obj
argument; false
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |