Package it.tidalwave.util
Class Id
- java.lang.Object
-
- it.tidalwave.util.Id
-
- All Implemented Interfaces:
StringValue,Serializable,Comparable<Id>
@Immutable public class Id extends Object implements Serializable, Comparable<Id>, StringValue
An opaque wrapper for identifiers.- Version:
- $Id$
- Author:
- Fabrizio Giudici
- See Also:
- Serialized Form
- Status: stable API
-
-
Constructor Summary
Constructors Constructor Description Id()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Id other)booleanequals(Object object)inthashCode()StringstringValue()Returns theStringvalue of this object.StringtoString()
-
-
-
Method Detail
-
stringValue
@Nonnull public String stringValue()
Returns theStringvalue of this object.- Specified by:
stringValuein interfaceStringValue- Returns:
- the string
-
equals
public boolean equals(@CheckForNull Object object)
-
compareTo
public int compareTo(Id other)
- Specified by:
compareToin interfaceComparable<Id>
-
-