|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sap.netweaver.bc.rf.util.uuid.UUID
A Universally Unique Identifier (UUID) is a 128 bit number generated according to an algorithm that is garanteed to be unique in time and space from all other UUIDs. It consists of an IEEE 802 Internet Address and various time stamps to ensure uniqueness. For a complete specification, see ftp://ietf.org/internet-drafts/draft-leach-uuids-guids-01.txt [leach].
Copyright (c) SAP AG 2001-2002
| Constructor Summary | |
UUID()
Generate a UUID for this host using version 1 of [leach]. |
|
UUID(byte[] node)
Generate a UUID for this host using version 1 of [leach]. |
|
UUID(java.lang.String str)
Create a UUID from its string representation. |
|
| Method Summary | |
int |
compareTo(java.lang.Object withUUID)
Lexically compare this UUID with withUUID. |
boolean |
equals(java.lang.Object toUUID)
Compare two UUIDs |
int |
getClockSequence()
Get the clock sequence number. |
byte[] |
getNode()
Get the spatially unique portion of the UUID. |
long |
getTime()
Get the temporal unique portion of the UUID. |
byte[] |
getUUID()
Get the 128 bit UUID. |
int |
getVersion()
Get the UUID version number. |
int |
hashCode()
Generate a hash code of the uuid. |
java.lang.String |
toString()
Provide a String representation of a UUID as specified in section 3.5 of [leach]. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public UUID()
public UUID(byte[] node)
node - the node to use in the UUID
public UUID(java.lang.String str)
throws java.lang.NumberFormatException
str - The string representation of the uuidjava.lang.NumberFormatException - if uuid is invalid| Method Detail |
public int compareTo(java.lang.Object withUUID)
compareTo in interface java.lang.ComparablewithUUID - the UUID to compare withpublic int getClockSequence()
public byte[] getNode()
public long getTime()
public byte[] getUUID()
public int getVersion()
public boolean equals(java.lang.Object toUUID)
equals in class java.lang.ObjecttoUUID - Description of the Parameterpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||