|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.uuid.UUID
public class UUID
UUID represents a Universally Unique IDentifier per IETF
RFC 4122 ("A Universally Unique IDentifier (UUID) URN Namespace"),
Section 4.
This is a lightweight implementation of an UUID, disregarding the different versions of UUIDs.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
UUID(byte[] b)
Deprecated. Constructs a UUID from a 16 byte array. |
|
UUID(java.io.DataInput input)
Deprecated. Constructs a UUID from a DataInput. |
|
UUID(long mostSignificant,
long leastSignificant)
Deprecated. Constructs a UUID from two long values in most significant byte, and least significant bytes order. |
|
UUID(java.lang.String uuidString)
Deprecated. Constructs a UUID from a UUID formatted String. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object compareTo)
Deprecated. Compares two UUIDs. |
boolean |
equals(java.lang.Object obj)
Deprecated. Compares two UUID for equality. |
static UUID |
fromString(java.lang.String uuidString)
Deprecated. Parses a string for a UUID. |
long |
getLeastSignificantBits()
Deprecated. Returns the least significant bits stored in the uuid's internal structure. |
long |
getMostSignificantBits()
Deprecated. Returns the most significant bits stored in the uuid's internal structure. |
byte[] |
getRawBytes()
Deprecated. Returns a copy of the byte values contained in this UUID. |
int |
hashCode()
Deprecated. Returns a hash code value for the object. |
static UUID |
randomUUID()
Deprecated. Returns a new version 4 UUID, based upon Random bits. |
java.lang.String |
toString()
Deprecated. Returns a string representation of the UUID. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UUID(byte[] b)
throws java.lang.IllegalArgumentException
b - the 16 byte array to construct this UUID from.
java.lang.IllegalArgumentException - argument must be 16 bytes
public UUID(java.io.DataInput input)
throws java.io.IOException
input - the datainput with 16 bytes to read in from.
java.io.IOException - exception if there is an IO problem also
argument must contain 16 bytes.
public UUID(long mostSignificant,
long leastSignificant)
mostSignificant - the most significant 8 bytes of the uuid to be
constructed.leastSignificant - the least significant 8 bytes of the uuid to be
constructed.
public UUID(java.lang.String uuidString)
throws java.lang.IllegalArgumentException
uuidString - the String representing a UUID to construct this UUID
java.lang.IllegalArgumentException - String must be a properly formatted UUID
string| Method Detail |
|---|
public static UUID fromString(java.lang.String uuidString)
throws java.lang.IllegalArgumentException
uuidString - the UUID formatted String to parse.
null if the formatted string could
not be parsed.
java.lang.IllegalArgumentException - the String must be a properly formatted
UUID String.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()
public int compareTo(java.lang.Object compareTo)
throws java.lang.ClassCastException
compareTo in interface java.lang.Comparablejava.lang.ClassCastExceptionComparable.compareTo(Object)public long getLeastSignificantBits()
public long getMostSignificantBits()
public byte[] getRawBytes()
public static UUID randomUUID()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||