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