API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util. UUID View Source
Author(s)
Since
1.5
Version
1.18, 06/02/06
Serial
Hierarchy
 Object
      UUID
Implements
 Serializable
 Comparable
Subclasses
Description
publicfinal class UUID
  A class that represents an immutable universally unique identifier (UUID).
See also:   
Constructors
private UUID (byte[] data)
public UUID (long mostSigBits, long leastSigBits)
  Constructs a new UUID using the specified data.
Methods
Hide/Show inherited methods
public int clockSequence ()
  The clock sequence value associated with this UUID.
public int compareTo (UUID val)
  Compares this UUID with the specified UUID.
public boolean equals (Object obj)
  Compares this object to the specified object.
publicstatic UUID fromString (String name)
  Creates a UUID from the string standard representation as described in the UUID.toString() method.
public long getLeastSignificantBits ()
  Returns the least significant 64 bits of this UUID's 128 bit value.
public long getMostSignificantBits ()
  Returns the most significant 64 bits of this UUID's 128 bit value.
public int hashCode ()
  Returns a hash code for this UUID.
publicstatic UUID nameUUIDFromBytes (byte[] name)
  Static factory to retrieve a type 3 (name based) UUID based on the specified byte array.
public long node ()
  The node value associated with this UUID.
publicstatic UUID randomUUID ()
  Static factory to retrieve a type 4 (pseudo randomly generated) UUID.
public long timestamp ()
  The timestamp value associated with this UUID.
public String toString ()
  Returns a String object representing this UUID.
public int variant ()
  The variant number associated with this UUID.
public int version ()
  The version number associated with this UUID.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar