public class StringId extends SingleFieldId<String>
hashCode, STRING_DELIMITER, targetClassName| Constructor and Description |
|---|
StringId() |
StringId(Class pcClass,
String key) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
boolean |
equals(Object obj)
Check the class and class name and object type.
|
String |
getKey() |
String |
getKeyAsObject() |
void |
readExternal(ObjectInput in)
Read this object.
|
String |
toString()
Return the String form of the key.
|
void |
writeExternal(ObjectOutput out)
Write this object.
|
assertKeyNotNull, compare, getTargetClassName, hashCodepublic String getKey()
public String getKeyAsObject()
getKeyAsObject in class SingleFieldId<String>public String toString()
public boolean equals(Object obj)
SingleFieldIdequals in class SingleFieldId<String>obj - the other objectpublic int compareTo(Object o)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class SingleFieldId<String>out - the outputIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class SingleFieldId<String>in - the inputIOExceptionClassNotFoundExceptionCopyright © 2017. All rights reserved.