com.iwombat.foundation
Interface Identifier

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
UUID

public interface Identifier
extends java.io.Serializable

Generic Identifier interface.


Method Summary
 boolean equals(java.lang.Object obj)
           
 byte[] getValue()
           
 int hashCode()
           
 java.lang.String toHexString()
           
 java.lang.String toString()
           
 

Method Detail

getValue

byte[] getValue()
Returns:
the byte-array value for this identifier

toHexString

java.lang.String toHexString()
Returns:
a hex-string representation of the byte value

toString

java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
human-readable String representation

equals

boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
Parameters:
obj - The object to which this id should be compared
Returns:
true if this Identifier is equal to another, false otherwise

hashCode

int hashCode()
Overrides:
hashCode in class java.lang.Object
Returns:
a valid hash-code for this id