NextApp Echo
App Container 1.1.4

nextapp.echoservlet
Class Id

java.lang.Object
  extended bynextapp.echoservlet.Id
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

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

A unique identifier. Each subsequent construction of an identifier will have a value greater than the previous.

See Also:
Serialized Form

Constructor Summary
Id()
          Creates a new identifier.
Id(java.lang.String value)
          Creates a new identifier from a string.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.lang.String toString()
          Returns the identifier as a string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Id

public Id()
Creates a new identifier.


Id

public Id(java.lang.String value)
Creates a new identifier from a string.

Parameters:
value - A string representation of the desired identifier.
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable
See Also:
Comparable.compareTo(Object)

equals

public boolean equals(java.lang.Object o)
See Also:
Object.equals(Object)

hashCode

public int hashCode()
See Also:
Object.hashCode()

toString

public java.lang.String toString()
Returns the identifier as a string. The contents of the string will be a hexadecimal value.

Returns:
A string representation of the identifier.

NextApp Echo
App Container 1.1.4