|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.virtuosotechnologies.lib.base.UniqueObject
An object whose equals() method is guaranteed to use reference equality. That is it does not equal any other object.
The description string is used for toString(). If you pass null for the description or do not provide one, UniqueObject will automatically generate a default string.
Constructor Summary | |
UniqueObject()
Default constructor with no description. |
|
UniqueObject(String description)
Construct a UniqueObject with a description |
Method Summary | |
boolean |
equals(Object obj)
Equals method. |
long |
getUniqueObjectID()
Return a unique ID for this unique object. |
String |
toString()
Return string description. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UniqueObject()
public UniqueObject(String description)
description
- description string for toString().
It is okay to pass null, in which case toString()
will return an automatically-generated default string.Method Detail |
public final long getUniqueObjectID()
public final String toString()
public final boolean equals(Object obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |