com.collation.platform.model
Class Guid

java.lang.Object
  extended by com.collation.platform.model.Guid
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class Guid
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

Guid - An 8 bytes Globally Unique IDentifier

See Also:
Serialized Form

Constructor Summary
Guid(byte[] bytes)
           
Guid(byte[] bytes, boolean adopt)
           
Guid(java.lang.String str)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object obj)
           
 byte[] getBytes()
           
 int hashCode()
           
 byte[] toByteArray()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Guid

public Guid(java.lang.String str)
     throws GuidFormatException
Throws:
GuidFormatException

Guid

public Guid(byte[] bytes)
     throws GuidFormatException
Throws:
GuidFormatException

Guid

public Guid(byte[] bytes,
            boolean adopt)
     throws GuidFormatException
Throws:
GuidFormatException
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

getBytes

public byte[] getBytes()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toByteArray

public byte[] toByteArray()