public class GUID extends Object implements ID, Comparable
The identifier is composed of:
[ address ] - [ process id ] - [ time ] - [ counter ] - [ time ] - [ counter ]
|------- UID --------| |------- UID --------|
|---------------------- VMID -----------------------|
VMID,
UID,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected int |
hashCode
The hash code of this GUID
|
protected UID |
uid
The unique identifier
|
protected VMID |
vmid
The virtual machine identifier
|
| Modifier | Constructor and Description |
|---|---|
|
GUID()
Construct a new GUID.
|
protected |
GUID(GUID guid)
Copy a GUID.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected final VMID vmid
protected final UID uid
protected final int hashCode
public GUID()
protected GUID(GUID guid)
guid - GUID to copy.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.
public Object clone()
public static String asString()
public int compareTo(Object o)
compareTo in interface ComparableCopyright © 2015 JBoss by Red Hat. All rights reserved.