|
NextApp Echo App Container 1.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echoservlet.Id
A unique identifier. Each subsequent construction of an identifier will have a value greater than the previous.
Field Summary | |
private static java.lang.String |
middle
|
private static java.security.SecureRandom |
seeder
|
private java.lang.String |
value
Holds the identifier value |
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()
|
private static java.lang.String |
hexValue(byte[] bytes)
Converts the sepecified byte array into a hexdecimal String. |
private static java.lang.String |
hexValue(int i)
Converts an integer to an eight-byte hexadecimal String. |
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 |
Field Detail |
private static java.security.SecureRandom seeder
private static java.lang.String middle
private java.lang.String value
Constructor Detail |
public Id()
public Id(java.lang.String value)
value
- A string representation of the desired identifier.Method Detail |
private static java.lang.String hexValue(byte[] bytes)
private static java.lang.String hexValue(int i)
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
Comparable.compareTo(Object)
public boolean equals(java.lang.Object o)
Object.equals(Object)
public int hashCode()
Object.hashCode()
public java.lang.String toString()
|
NextApp Echo App Container 1.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |