public class ObjectIdentity extends SingleFieldIdentity
hashCode, keyAsObject, msg
Constructor and Description |
---|
ObjectIdentity()
Constructor only for Externalizable.
|
ObjectIdentity(java.lang.Class pcClass,
java.lang.Object param)
Constructor with class and key.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Determine if the other object represents the same object id.
|
java.lang.Object |
getKey()
Return the key.
|
void |
readExternal(java.io.ObjectInput in)
Read this object.
|
java.lang.String |
toString()
Return the String form of the object id.
|
void |
writeExternal(java.io.ObjectOutput out)
Write this object.
|
assertKeyNotNull, createKeyAsObject, getKeyAsObject, getTargetClass, getTargetClassName, hashClassName, hashCode, setKeyAsObject
public ObjectIdentity(java.lang.Class pcClass, java.lang.Object param)
pcClass
- the classparam
- the keypublic ObjectIdentity()
public java.lang.Object getKey()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class SingleFieldIdentity
obj
- the other objectpublic void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class SingleFieldIdentity
out
- the outputjava.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class SingleFieldIdentity
in
- the inputjava.io.IOException
java.lang.ClassNotFoundException
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.