public class StringIdentity extends SingleFieldIdentity
hashCode, keyAsObject, msg| Constructor | Description |
|---|---|
StringIdentity() |
Constructor only for Externalizable.
|
StringIdentity(java.lang.Class pcClass,
java.lang.String key) |
Constructor with class and key.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(java.lang.Object o) |
Determine the ordering of identity objects.
|
boolean |
equals(java.lang.Object obj) |
Determine if the other object represents the same object id.
|
java.lang.String |
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.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitassertKeyNotNull, compare, createKeyAsObject, getKeyAsObject, getTargetClass, getTargetClassName, hashClassName, hashCode, setKeyAsObjectpublic StringIdentity(java.lang.Class pcClass,
java.lang.String key)
pcClass - the classkey - the keypublic StringIdentity()
public java.lang.String 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 identitypublic 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