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) |
boolean |
equals(Object obj)
Check the class and class name and object type.
|
long |
getKey() |
Long |
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, hashCode
public LongId(Class pcClass, long key)
public LongId()
public long getKey()
public Long getKeyAsObject()
getKeyAsObject
in class SingleFieldId<Long>
public String toString()
public boolean equals(Object obj)
SingleFieldId
equals
in class SingleFieldId<Long>
obj
- the other objectpublic int compareTo(Object o)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class SingleFieldId<Long>
out
- the outputIOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class SingleFieldId<Long>
in
- the inputIOException
ClassNotFoundException
Copyright © 2017. All rights reserved.