|
Openwings API Documentation (v1.1) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.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. |
void |
setBytes(byte[] newBytes)
This method is provided as a convenience for conversion between different types of identifiers used in various frameworks. |
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 void setBytes(byte[] newBytes)
newBytes - bytes of the unique identifier. The array must have
a length that is a multiple of 4 greater than 16.public boolean equals(java.lang.Object other)
Object.
public int hashCode()
Object.
public java.lang.String toString()
|
Openwings API Documentation (v1.1) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||