|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.tidalwave.util.Id
@Immutable public class Id
An opaque wrapper for identifiers.
Constructor Summary | |
---|---|
Id(java.lang.Object value)
Creates a new Id . |
Method Summary | |
---|---|
int |
compareTo(Id other)
|
boolean |
equals(java.lang.Object object)
|
int |
hashCode()
|
java.lang.String |
stringValue()
Returns the String value of this object. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Id(@Nonnull java.lang.Object value)
Id
.
value
- the value of the idMethod Detail |
---|
@Nonnull public java.lang.String stringValue()
String
value of this object.
stringValue
in interface StringValue
public boolean equals(@CheckForNull java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(Id other)
compareTo
in interface java.lang.Comparable<Id>
@Nonnull public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |