ucr.core
Class GUID

java.lang.Object
  extended byucr.core.GUID

public class GUID
extends java.lang.Object

Represents a unique ID


Field Summary
private  short[] data
           
 
Constructor Summary
GUID()
          Construct a new GUID
GUID(short[] data)
          Create a guid from network data
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compare guids
(package private)  short[] getData()
          Query the bytes in this GUID
 int hashCode()
          Produce a hashcode for this GUID
 java.lang.String toString()
          Returns a GUID as a String
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

data

private short[] data
Constructor Detail

GUID

public GUID()
Construct a new GUID


GUID

public GUID(short[] data)
Create a guid from network data

Method Detail

getData

short[] getData()
Query the bytes in this GUID

Returns:
bytes

equals

public boolean equals(java.lang.Object obj)
Compare guids


hashCode

public int hashCode()
Produce a hashcode for this GUID


toString

public java.lang.String toString()
Returns a GUID as a String

Returns:
text form of guid