|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.digi.config.util.UUID
A universally unique identifier (UUID). This UUID uses 128-bits to form the unique identifier. The most significant long can be decomposed into the following unsigned fields:
0xFFFFFFFFFFFFFFFF timeThe least significant long can be decomposed into the following unsigned fields:
0xFFFFFFFF00000000 random 0x00000000FFFFFFFF nodeThe time field is a 64-bit timestamp measured in milliseconds since January 1, 1970, 00:00:00 GMT. The random field is set to a 32-bit random number, and The node field is set to an 32-bit IEEE 802 address.
| Constructor Summary | |
UUID()
Construct a universally unique identifier (UUID). |
|
UUID(long time,
int random)
Construct a UUID based on specified time and random components. |
|
UUID(long mostSig,
long leastSig)
Construct a UUID of a known value |
|
UUID(java.lang.String stringUuid)
Construct a UUID based on a stringified UUID value. |
|
| Method Summary | |
int |
compareTo(java.lang.Object o)
Allows this object to be compared to another object of the same type to determine if it is greater, less than, or equal to it. |
boolean |
equals(java.lang.Object obj)
UU IDs are equal if they represent the same 128-bit value. |
long |
getLeastSignificantBits()
Returns the least significant 64 bits of the service ID. |
long |
getMostSignificantBits()
Returns the most significant 64 bits of the service ID. |
int |
hashCode()
|
java.lang.String |
toString()
Returns a Stringified version of the UUID |
void |
writeBytes(java.io.DataOutput out)
Writes out 16 bytes in standard network byte order. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public UUID()
0xFFFFFFFFFFFFFFFF timeThe least significant long can be decomposed into the following unsigned fields:
0xFFFFFFFF00000000 random 0x00000000FFFFFFFF nodeThe time field is a 64-bit timestamp measured in milliseconds since January 1, 1970, 00:00:00 GMT. The random field is set to a 32-bit random number, and The node field is set to an 32-bit IEEE 802 address.
public UUID(long time,
int random)
0xFFFFFFFFFFFFFFFF timeThe least significant long can be decomposed into the following unsigned fields:
0xFFFFFFFF00000000 random 0x00000000FFFFFFFF nodeThe time field is a 64-bit timestamp measured in milliseconds since January 1, 1970, 00:00:00 GMT. The random field is set to a 32-bit random number, and The node field is set to an 32-bit IEEE 802 address.
public UUID(long mostSig,
long leastSig)
public UUID(java.lang.String stringUuid)
| Method Detail |
public long getMostSignificantBits()
public long getLeastSignificantBits()
public void writeBytes(java.io.DataOutput out)
throws java.io.IOException
out - the output stream to write 16 bytes to
java.io.IOExceptionpublic int hashCode()
public boolean equals(java.lang.Object obj)
true iff the provided object is a UUID and
it's 128-bit value matches our 128-bit value; otherwise return false.public java.lang.String toString()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||