wt.util.uuid
Class UUID

java.lang.Object
  extended bywt.util.uuid.UUID

public class UUID
extends Object

A Universally Unique IDentifier. UUIDs should be generated using UuidGenerators. UUIDs respond to the object equals and hashCode methods in a consistent way, so that two instances created from the same existing UUID string will be considered equal.


Field Summary
private  Integer hashCode_
           
private  String uuid_
           
 
Constructor Summary
UUID(String existing_uuid)
          Create an instance with an existing string representation.
 
Method Summary
 boolean equals(Object other)
          Returns true if this UUID is value-equal to the other UUID or if they are the same instance.
 int hashCode()
          A hash code to distinguish UUIDs.
 String toString()
          Simply the string representation of the UUID.
private  String uuid()
          The string value of the UUID.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

uuid_

private final String uuid_

hashCode_

private Integer hashCode_
Constructor Detail

UUID

public UUID(String existing_uuid)
Create an instance with an existing string representation.

Method Detail

equals

public boolean equals(Object other)
Returns true if this UUID is value-equal to the other UUID or if they are the same instance.


uuid

private final String uuid()
The string value of the UUID.


hashCode

public int hashCode()
A hash code to distinguish UUIDs.


toString

public String toString()
Simply the string representation of the UUID.