Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.ohf.ihe.xds.source.utils
Class UUID

    java.lang.Object
      org.eclipse.ohf.ihe.xds.source.utils.UUID

    public class UUID

extends java.lang.Object

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.

Since:
  IHII Phase 1
Author:
  Glenn Deen

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

### UUID

    public UUID()

Method Detail

### generate

    public static java.lang.String generate()

  Generates and returns a formatted UUID holding a 128 bit UUID in the form: AABBCCDDEEFF-GGHH-IIJJ-KKLLMMNNOOPP

  Returns:
    the generated uuid

### generateURN

    public static java.lang.String generateURN()

  Generate a new UUID prefixed by urn:uuid:

### main

    public static void main(java.lang.String[] args)

  Runs a simple test of the UUID class, generating a set of UUIDs

  Parameters:
    `args` -

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD