|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdsto.dfc.util.UniqueObject
public class UniqueObject
A unique object that only equals itself. The hashCode () and toString () methods may optionally be delegated to a proxy 'key' object.
| Constructor Summary | |
|---|---|
UniqueObject()
|
|
UniqueObject(Object key)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Only true of other object is the same instance. |
int |
hashCode()
Delegated to key (or superclass if no key). |
boolean |
keyEquals(Object o)
Delegated to the key's equals () method. |
String |
toString()
Delegated to key (or superclass if no key). |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UniqueObject()
public UniqueObject(Object key)
| Method Detail |
|---|
public boolean keyEquals(Object o)
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||