| |
|
| java.lang.Object com.ibm.webdav.impl.UUID
UUID | public class UUID implements Serializable(Code) | | 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].
author: Jim Amsden <jamsden@us.ibm.com> |
Constructor Summary | |
public | UUID() Generate a UUID for this host using version 1 of [leach]. | public | UUID(byte[] node) Generate a UUID for this host using version 1 of [leach]. | public | UUID(UUID context, String name) |
Method Summary | |
public int | compare(UUID withUUID) Lexically compare this UUID with withUUID. | public int | getClockSequence() Get the clock sequence number. | public byte[] | getNode() Get the spatially unique portion of the UUID. | public long | getTime() Get the temporal unique portion of the UUID. | public byte[] | getUUID() Get the 128 bit UUID. | public int | getVersion() Get the UUID version number. | public boolean | isEqual(UUID toUUID) | public String | toString() Provide a String representation of a UUID as specified in section
3.5 of [leach]. |
UUID | public UUID()(Code) | | Generate a UUID for this host using version 1 of [leach].
|
UUID | public UUID(byte[] node)(Code) | | Generate a UUID for this host using version 1 of [leach].
Parameters: node - the node to use in the UUID |
UUID | public UUID(UUID context, String name)(Code) | | Generate a UUID from a name (NOT IMPLEMENTED)
|
compare | public int compare(UUID withUUID)(Code) | | Lexically compare this UUID with withUUID. Note: lexical ordering
is not temporal ordering.
Parameters: withUUID - the UUID to compare with- -1 if this UUID is less than withUUID
- 0 if this UUID is equal to withUUID
- 1 if this UUID is greater than withUUID
|
getClockSequence | public int getClockSequence()(Code) | | Get the clock sequence number.
the clock sequence number |
getNode | public byte[] getNode()(Code) | | Get the spatially unique portion of the UUID. This is either
the 48 bit IEEE 802 host address, or if on is not available, a random
number that will not conflict with any IEEE 802 host address.
node portion of the UUID |
getTime | public long getTime()(Code) | | Get the temporal unique portion of the UUID.
the time portion of the UUID |
getUUID | public byte[] getUUID()(Code) | | Get the 128 bit UUID.
|
getVersion | public int getVersion()(Code) | | Get the UUID version number.
|
isEqual | public boolean isEqual(UUID toUUID)(Code) | | Compare two UUIDs
true if the UUIDs are equal |
toString | public String toString()(Code) | | Provide a String representation of a UUID as specified in section
3.5 of [leach].
|
|
|
|