public class UuID extends BaseID
Modifier and Type | Class and Description |
---|---|
static class |
UuID.UuIDNamespace |
Modifier and Type | Field and Description |
---|---|
protected java.util.UUID |
uuid |
Modifier | Constructor and Description |
---|---|
protected |
UuID(UuID.UuIDNamespace ns,
java.util.UUID uuid) |
Modifier and Type | Method and Description |
---|---|
java.util.UUID |
getUUID() |
protected int |
namespaceCompareTo(BaseID obj)
|
protected boolean |
namespaceEquals(BaseID obj)
Called by
Namespace.testIDEquals(BaseID, BaseID) . |
protected java.lang.String |
namespaceGetName()
Called by
Namespace.getNameForID(BaseID) . |
protected int |
namespaceHashCode()
Called by
Namespace.getHashCodeForID(BaseID) . |
java.lang.String |
toString() |
compareTo, equals, getAdapter, getName, getNamespace, hashCode, namespaceToExternalForm, toExternalForm
protected UuID(UuID.UuIDNamespace ns, java.util.UUID uuid)
protected int namespaceCompareTo(BaseID obj)
BaseID
namespaceCompareTo
in class BaseID
obj
- the other ID to compare to. Will not be null
.Comparable
contract.protected boolean namespaceEquals(BaseID obj)
BaseID
Namespace.testIDEquals(BaseID, BaseID)
.namespaceEquals
in class BaseID
obj
- the other ID to test against. May be null
.true
if this ID is equal to the given ID.
false
otherwise.protected java.lang.String namespaceGetName()
BaseID
Namespace.getNameForID(BaseID)
.namespaceGetName
in class BaseID
null
. Value
returned should be unique within this Namespace.protected int namespaceHashCode()
BaseID
Namespace.getHashCodeForID(BaseID)
.namespaceHashCode
in class BaseID
public java.util.UUID getUUID()
public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object