Save This Page
Home » openjdk-7 » net » sf » rvpf » metadata » [javadoc | source]
public class: UUID [javadoc | source]

All Implemented Interfaces:
    java$io$Serializable, Comparable

Universally Unique IDentifier.

This class will generate UUIDs, either from a native function (if available), or from the included portable one.

Field Summary
public static final  int BYTE_LENGTH     
public static final  int STRING_LENGTH     
 public UUID(byte[] bytes) 
 public UUID(String string) 
    Constructs a UUID from a String.
    string - A String of Hexadecimal digits for the UUID. It must convert to a multiple of int length.
Method from net.sf.rvpf.metadata.UUID Summary:
compareTo,   equals,   generate,   hashCode,   toBytes,   toString,   usesNativeGenerator
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from net.sf.rvpf.metadata.UUID Detail:
 public int compareTo(Object other) 
    Implements Comparable.
 public boolean equals(Object other) 
 public static UUID generate() 
    Generates a UUID.

    On the first failure to access the native generator, this class method will switch to the included portable one.

 public int hashCode() 
 public byte[] toBytes() 
    Returns a binary representation of itself.
 public String toString() 
    Returns a String representation of itself.
 public static boolean usesNativeGenerator() 
    Asks if the class uses a native generator.

    If no UUID have been generated yet, it will generate one to have a meaningfull answer.