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) |
String |
getKey() |
String |
getKeyAsObject() |
protected boolean |
keyEquals(SingleFieldId obj) |
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, equals, getTargetClassName, hashCode
public String getKey()
public String getKeyAsObject()
getKeyAsObject
in class SingleFieldId<String>
public String toString()
protected boolean keyEquals(SingleFieldId obj)
keyEquals
in class SingleFieldId<String>
public int compareTo(Object o)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class SingleFieldId<String>
out
- the outputIOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class SingleFieldId<String>
in
- the inputIOException
ClassNotFoundException
Copyright © 2019. All rights reserved.