com.safmq
Class UUID

java.lang.Object
  extended by com.safmq.UUID

public class UUID
extends java.lang.Object

An object to represent a universally unique identifier (UUID).


Field Summary
 int d1
           
 short d2
           
 short d3
           
 byte[] d4
           
 
Constructor Summary
UUID()
          Default Constructor
UUID(int d1, short d2, short d3, byte[] d4)
          Constructs the UUID from the passed values
UUID(java.lang.String src)
          Constructs from the String representation of a UUID.
 
Method Summary
 java.lang.Object clone()
          Makes a clone copy of this object
 boolean equals(java.lang.Object o)
          Compares this instance of UUID to another object.
 void read(java.io.DataInput in)
          Reads the UUID from the DataInput.
 java.lang.String toString()
          Prepares a string representation of this instance of UUID.
 void write(java.io.DataOutput out)
          Writes the UUID to a DataOutput object.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

d1

public int d1

d2

public short d2

d3

public short d3

d4

public byte[] d4
Constructor Detail

UUID

public UUID()
Default Constructor


UUID

public UUID(int d1,
            short d2,
            short d3,
            byte[] d4)
Constructs the UUID from the passed values


UUID

public UUID(java.lang.String src)
     throws java.lang.NumberFormatException,
            java.lang.IllegalArgumentException
Constructs from the String representation of a UUID.

Parameters:
src -
Throws:
java.lang.NumberFormatException
java.lang.IllegalArgumentException
Method Detail

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Writes the UUID to a DataOutput object.

Parameters:
out - The output object
Throws:
java.io.IOException - Thrown by a write call to the DataOutput object.

read

public void read(java.io.DataInput in)
          throws java.io.IOException
Reads the UUID from the DataInput.

Parameters:
in - The input object
Throws:
java.io.IOException - Thrown by a read call to the DataInput object.

clone

public java.lang.Object clone()
Makes a clone copy of this object

Overrides:
clone in class java.lang.Object
Returns:
a duplicated copy of this UUID object

equals

public boolean equals(java.lang.Object o)
Compares this instance of UUID to another object.

Overrides:
equals in class java.lang.Object
Returns:
true If this instance is equal to the passed instance, wherein the passed instance is also a UUID.

toString

public java.lang.String toString()
Prepares a string representation of this instance of UUID.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of the UUID.

Copyright Matthew J. Battey, 2004-2010;
Powered By: Get SAFMQ: Store and Forward Message Queue at SourceForge.net. Fast, secure and Free Open Source software downloads