public class ObjectIdentity extends SingleFieldIdentity
hashCode, keyAsObject, msg| Constructor and Description |
|---|
ObjectIdentity()
Constructor only for Externalizable.
|
ObjectIdentity(Class pcClass,
Object param)
Constructor with class and key.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Determine the ordering of identity objects.
|
boolean |
equals(Object obj)
Determine if the other object represents the same object id.
|
Object |
getKey()
Return the key.
|
int |
hashCode()
Provide the hash code for this instance.
|
void |
readExternal(ObjectInput in)
Read this object.
|
String |
toString()
Return the String form of the object id.
|
void |
writeExternal(ObjectOutput out)
Write this object.
|
assertKeyNotNull, compare, createKeyAsObject, getKeyAsObject, getTargetClass, getTargetClassName, hashClassName, setKeyAsObjectpublic ObjectIdentity(Class pcClass, Object param)
pcClass - the classparam - the keypublic ObjectIdentity()
public Object getKey()
public String toString()
public boolean equals(Object obj)
equals in class SingleFieldIdentityobj - the other objectpublic int hashCode()
hashCode in class SingleFieldIdentitypublic int compareTo(Object o)
o - Other identitypublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class SingleFieldIdentityout - the outputIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class SingleFieldIdentityin - the inputIOExceptionClassNotFoundExceptionCopyright © 2005–2020 Apache Software Foundation. All rights reserved.