|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.objects.LocalAbstractObject.DataEqualObject
public static class LocalAbstractObject.DataEqualObject
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 LocalAbstractObject |
object
Encapsulated object |
Constructor Summary | |
---|---|
LocalAbstractObject.DataEqualObject(LocalAbstractObject object)
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 one. |
LocalAbstractObject |
get()
Returns the encapsulated object. |
int |
hashCode()
Returns a hash code value for the object data. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final LocalAbstractObject object
Constructor Detail |
---|
public LocalAbstractObject.DataEqualObject(LocalAbstractObject object)
object
- the encapsulated objectMethod Detail |
---|
public LocalAbstractObject 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 is the same as the obj
argument; false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |