|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ohf.ihe.xds.source.utils.UUID
public class UUID
Generates a (mostly) ASN.1 complaint UUID.
Under Windows the MAC address of the machine is used, under Linux
and other OS's a randomly generated construct using the SHA-1 message
digest is used. It is thus possible that UUIDs will not be completely unique
under non Windows platforms, but given the number of bits of random data used
to generate the fake MAC addresses for non Windows machines, it is very unlikely
any collosions will every occur in practice.
| Constructor Summary | |
|---|---|
UUID()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
generate()
Generates and returns a formatted UUID holding a 128 bit UUID in the form: AABBCCDDEEFF-GGHH-IIJJ-KKLLMMNNOOPP |
static java.lang.String |
generateURN()
Generate a new UUID prefixed by urn:uuid: |
static void |
main(java.lang.String[] args)
Runs a simple test of the UUID class, generating a set of UUIDs |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UUID()
| Method Detail |
|---|
public static java.lang.String generate()
public static java.lang.String generateURN()
public static void main(java.lang.String[] args)
args -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||