|
Openwings API Documentation (v1.0) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.openwings.identity.UniqueID
This interface defines a unique identifier that can be used throughout the Openwings framework. For example:
byte[] parameter. This allows creation of a
UniqueID that corresponds to an identifer used in some
other framework.
getBytes() should return a copy of the
contents instead of an actual reference to a private byte[])
| Constructor Summary | |
UniqueID(byte[] newBytes)
This constructor generates a new unique identifier based on an array of bytes. |
|
UniqueID(java.lang.String string)
This constructor generates a new unique identifier based on a string returned from the toString() method |
|
| Method Summary | |
boolean |
equals(java.lang.Object other)
Overrides the default implementation from Object. |
byte[] |
getBytes()
This method is provided as a convenience for conversion between different types of identifiers used in various frameworks. |
int |
hashCode()
Overrides the default implementation from Object. |
java.lang.String |
toString()
Returns a hex representation of the bytes as a string, with a space separating each 4-byte (int) group. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public UniqueID(byte[] newBytes)
throws java.lang.IllegalArgumentException
public UniqueID(java.lang.String string)
throws java.lang.NumberFormatException
toString() method
| Method Detail |
public byte[] getBytes()
public boolean equals(java.lang.Object other)
Object.
equals in class java.lang.Objectpublic int hashCode()
Object.
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
Openwings API Documentation (v1.0) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||