|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.util.id.GUID
A globally unique identifier (globally across a cluster of virtual machines).
The identifier is composed of:
[ address ] - [ process id ] - [ time ] - [ counter ] - [ time ] - [ counter ] |------- UID --------| |------- UID --------| |---------------------- VMID -----------------------|
VMID
,
UID
,
Serialized FormField Summary | |
protected int |
hashCode
The hash code of this GUID |
protected UID |
uid
The unique identifier |
protected VMID |
vmid
The virtual machine identifier |
Constructor Summary | |
|
GUID()
Construct a new GUID. |
protected |
GUID(GUID guid)
Copy a GUID. |
Method Summary | |
static String |
asString()
Returns a GUID as a string. |
Object |
clone()
Returns a copy of this GUID. |
int |
compareTo(Object o)
|
boolean |
equals(Object obj)
Check if the given object is equal to this GUID. |
UID |
getUID()
Get the UID portion of this GUID. |
VMID |
getVMID()
Get the VMID portion of this GUID. |
int |
hashCode()
Return the hash code of this GUID. |
String |
toString()
Return a string representation of this GUID. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected final VMID vmid
protected final UID uid
protected final int hashCode
Constructor Detail |
public GUID()
protected GUID(GUID guid)
guid
- GUID to copy.Method Detail |
public final VMID getVMID()
public final UID getUID()
public String toString()
public int hashCode()
public boolean equals(Object obj)
A GUID is equal to another GUID if the VMID and UID portions are equal.
obj
- Object to test equality with.
public Object clone()
public static String asString()
public int compareTo(Object o)
compareTo
in interface Comparable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |