|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.almendra.commons.util.globalId.UniqueId
public class UniqueId
Holds globally unique id as generated by UniqueIdGenerator
.
Field Summary | |
---|---|
protected java.lang.String |
value
Holds the value of the id as a string. |
Constructor Summary | |
---|---|
UniqueId(java.lang.String value)
Creates a new UniqueId object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Answer whether two UniqueId objects are equal or not. |
java.lang.String |
getValue()
Return the id as a string value. |
int |
hashCode()
Return the hash of the id. |
java.lang.String |
toString()
Print a UniqueId onto a string an return it. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String value
Constructor Detail |
---|
public UniqueId(java.lang.String value)
UniqueId
object.
value
- the id as a stringMethod Detail |
---|
public boolean equals(java.lang.Object obj)
UniqueId
objects are equal or not.
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public java.lang.String toString()
UniqueId
onto a string an return it.
toString
in class java.lang.Object
Object.toString()
public java.lang.String getValue()
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |