Package it.tidalwave.util
Class Id
java.lang.Object
it.tidalwave.util.Id
- All Implemented Interfaces:
StringValue
,Serializable
,Comparable<Id>
An opaque wrapper for identifiers.
- Author:
- Fabrizio Giudici
- See Also:
- Status: stable API
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Id
public Id()
-
-
Method Details
-
of
- Parameters:
value
- the id value- Returns:
- the new instance
- Since:
- 3.2-ALPHA-2
-
ofUuid
- Returns:
- the new instance
- Since:
- 3.2-ALPHA-9
-
stringValue
Returns theString
value of this object.- Specified by:
stringValue
in interfaceStringValue
- Returns:
- the string
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Id>
-
toString
-