|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deckfour.xes.id.XID
public class XID
Implements a unique ID based on UUID.
Constructor Summary | |
---|---|
XID()
Creates a new XID object. |
|
XID(long msb,
long lsb)
Creates a new XID object. |
|
XID(UUID uuid)
Creates a new XID object. |
Method Summary | |
---|---|
Object |
clone()
Creates a clone of this ID. |
boolean |
equals(Object obj)
Tests XID object for equality. |
int |
hashCode()
Returns a hash code for this XID. |
static XID |
parse(String idString)
Parses an XID object from its text representation. |
static XID |
read(DataInputStream dis)
Reads a binary-serialized XID from a data input stream. |
String |
toString()
Returns the string representation of an XID instance. |
static void |
write(XID id,
DataOutputStream dos)
Serializes an XID object binarily to a data output stream. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XID()
public XID(long msb, long lsb)
msb
- Most significant bits of an UUIDlsb
- Least significant bits of an UUIDpublic XID(UUID uuid)
uuid
- The UUID implementing XID uniqueness.Method Detail |
---|
public static XID parse(String idString)
idString
- Text representation of an XID.
public static XID read(DataInputStream dis) throws IOException
dis
- Data input stream to read XID from.
IOException
public static void write(XID id, DataOutputStream dos) throws IOException
id
- XID to be serialized.dos
- Data output stream to store XID serialization.
IOException
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public Object clone()
clone
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |