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, setKeyAsObject
public 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 SingleFieldIdentity
obj
- the other objectpublic int hashCode()
hashCode
in class SingleFieldIdentity
public int compareTo(Object o)
o
- Other identitypublic void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class SingleFieldIdentity
out
- the outputIOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class SingleFieldIdentity
in
- the inputIOException
ClassNotFoundException
Copyright © 2005–1970 Apache Software Foundation. All rights reserved.