|
||||||||||
PREV CLASS NEXT CLASS (src) | 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
(src) ,
UID
(src) ,
Serialized FormField Summary | |
protected int |
hashCode
The hash code of this GUID |
protected UID (src) |
uid
The unique identifier |
protected VMID (src) |
vmid
The virtual machine identifier |
Constructor Summary | |
|
GUID()
Construct a new GUID. |
protected |
GUID(GUID (src) guid)
Copy a GUID. |
Method Summary | |
static java.lang.String |
asString()
Returns a GUID as a string. |
java.lang.Object |
clone()
Returns a copy of this GUID. |
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object obj)
Check if the given object is equal to this GUID. |
UID (src) |
getUID()
Get the UID portion of this GUID. |
VMID (src) |
getVMID()
Get the VMID portion of this GUID. |
int |
hashCode()
Return the hash code of this GUID. |
java.lang.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 (src) vmid
protected final UID (src) uid
protected final int hashCode
Constructor Detail |
public GUID()
protected GUID(GUID (src) guid)
guid
- GUID to copy.Method Detail |
public final VMID (src) getVMID()
public final UID (src) getUID()
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object obj)
A GUID is equal to another GUID if the VMID and UID portions are equal.
obj
- Object to test equality with.
public java.lang.Object clone()
public static java.lang.String asString()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |