public class ByteIdentity extends SingleFieldIdentity
| Modifier and Type | Field | Description |
|---|---|---|
private byte |
key |
The key.
|
hashCode, keyAsObject, msg| Constructor | Description |
|---|---|
ByteIdentity() |
Constructor only for Externalizable.
|
ByteIdentity(java.lang.Class pcClass,
byte key) |
Constructor with class and key.
|
ByteIdentity(java.lang.Class pcClass,
java.lang.Byte key) |
Constructor with class and key.
|
ByteIdentity(java.lang.Class pcClass,
java.lang.String str) |
Constructor with class and key.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(java.lang.Object o) |
Determine the ordering of identity objects.
|
private void |
construct(byte key) |
Construct this instance with the key value.
|
protected java.lang.Object |
createKeyAsObject() |
Create the key as an Object.
|
boolean |
equals(java.lang.Object obj) |
Determine if the other object represents the same object id.
|
byte |
getKey() |
Return the key.
|
void |
readExternal(java.io.ObjectInput in) |
Read this object.
|
java.lang.String |
toString() |
Return the String version of the key.
|
void |
writeExternal(java.io.ObjectOutput out) |
Write this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitassertKeyNotNull, compare, getKeyAsObject, getTargetClass, getTargetClassName, hashClassName, hashCode, setKeyAsObjectpublic ByteIdentity(java.lang.Class pcClass,
byte key)
pcClass - the target classkey - the keypublic ByteIdentity(java.lang.Class pcClass,
java.lang.Byte key)
pcClass - the target classkey - the keypublic ByteIdentity(java.lang.Class pcClass,
java.lang.String str)
pcClass - the target classstr - the keypublic ByteIdentity()
private void construct(byte key)
public byte getKey()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class SingleFieldIdentityobj - the other objectpublic int compareTo(java.lang.Object o)
o - Other identityprotected java.lang.Object createKeyAsObject()
createKeyAsObject in class SingleFieldIdentitypublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in class SingleFieldIdentityout - the outputjava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in class SingleFieldIdentityin - the inputjava.io.IOExceptionjava.lang.ClassNotFoundException