public class ShortIdentity extends SingleFieldIdentity
| Modifier and Type | Field and Description |
|---|---|
private short |
key |
hashCode, keyAsObject, msg| Constructor and Description |
|---|
ShortIdentity()
Constructor only for Externalizable.
|
ShortIdentity(java.lang.Class pcClass,
short key)
Constructor with class and key.
|
ShortIdentity(java.lang.Class pcClass,
java.lang.Short key)
Constructor with class and key.
|
ShortIdentity(java.lang.Class pcClass,
java.lang.String str)
Constructor with class and key.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o)
Determine the ordering of identity objects.
|
private void |
construct(short key) |
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.
|
short |
getKey()
Return the key.
|
void |
readExternal(java.io.ObjectInput in)
Read this object.
|
java.lang.String |
toString()
Return the String form of the key.
|
void |
writeExternal(java.io.ObjectOutput out)
Write this object.
|
assertKeyNotNull, compare, getKeyAsObject, getTargetClass, getTargetClassName, hashClassName, hashCode, setKeyAsObjectpublic ShortIdentity(java.lang.Class pcClass,
short key)
pcClass - the classkey - the keypublic ShortIdentity(java.lang.Class pcClass,
java.lang.Short key)
pcClass - the classkey - the keypublic ShortIdentity(java.lang.Class pcClass,
java.lang.String str)
pcClass - the classstr - the keypublic ShortIdentity()
private void construct(short key)
public short 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 interface java.io.ExternalizablewriteExternal in class SingleFieldIdentityout - the outputjava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class SingleFieldIdentityin - the inputjava.io.IOExceptionjava.lang.ClassNotFoundException