|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeldriven.fuml.common.uuid.UUID
public class UUID
| Constructor Summary | |
|---|---|
UUID()
Generate a new UUID. |
|
UUID(byte[] data)
Reconstruct a UUID from its intrinsic 16 bytes |
|
UUID(String id)
Reconstruct a UUID from its various string representations. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
|
boolean |
equals(Object o)
Compare two UUIDs. |
static long |
getCreationTime(byte[] uuid)
|
byte[] |
getData()
Return the 16 byte byte array implementing this UUID. |
void |
saveSeedData()
Save the seed data for the next restart |
String |
to64String()
|
static String |
to64String(byte[] uuid)
|
String |
toString()
Return the standard string representation of this UUID. |
static String |
toString(byte[] uuid)
|
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UUID()
public UUID(byte[] data)
throws MalformedUUIDException
data - a 16 byte array to implement the UUID with.
MalformedUUIDException
public UUID(String id)
throws MalformedUUIDException
data - xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (36 bytes)
where x is a hexadecimal digit.data - xxxxxxxxxxxxxxxxxxxxxx (22 bytes)
where x is a base 64 digit.
MalformedUUIDException| Method Detail |
|---|
public static String toString(byte[] uuid)
public static String to64String(byte[] uuid)
public static long getCreationTime(byte[] uuid)
throws MalformedUUIDException
MalformedUUIDExceptionpublic void saveSeedData()
public String toString()
toString in class Objectpublic String to64String()
public boolean equals(Object o)
equals in class Objectpublic int compareTo(Object o)
compareTo in interface Comparablepublic byte[] getData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||