public class LongId extends SingleFieldId<Long>
hashCode, STRING_DELIMITER, targetClassName| Constructor and Description |
|---|
LongId() |
LongId(Class pcClass,
long key) |
LongId(Class pcClass,
Long key) |
LongId(Class pcClass,
String str) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
long |
getKey() |
Long |
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, hashCodepublic LongId(Class pcClass, long key)
public LongId()
public long getKey()
public Long getKeyAsObject()
getKeyAsObject in class SingleFieldId<Long>public String toString()
protected boolean keyEquals(SingleFieldId obj)
keyEquals in class SingleFieldId<Long>public int compareTo(Object o)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class SingleFieldId<Long>out - the outputIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class SingleFieldId<Long>in - the inputIOExceptionClassNotFoundExceptionCopyright © 2019. All rights reserved.