public class UUID extends Object implements Serializable, Comparable
Copyright (c) SAP AG 2001-2002
Constructor and Description |
---|
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(String str)
Create a UUID from its string representation.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object withUUID)
Lexically compare this UUID with withUUID.
|
boolean |
equals(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.
|
String |
toString()
Provide a String representation of a UUID as specified in section
3.5 of [leach].
|
public UUID()
public UUID(byte[] node)
node
- the node to use in the UUIDpublic UUID(String str) throws NumberFormatException
str
- The string representation of the uuidNumberFormatException
- if uuid is invalidpublic int compareTo(Object withUUID)
compareTo
in interface Comparable
withUUID
- the UUID to compare withpublic int getClockSequence()
public byte[] getNode()
public long getTime()
public byte[] getUUID()
public int getVersion()
public boolean equals(Object toUUID)
public String toString()
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice