public class ByteId extends SingleFieldId<Byte>
hashCode, STRING_DELIMITER, targetClassName
Constructor and Description |
---|
ByteId() |
ByteId(Class pcClass,
byte key) |
ByteId(Class pcClass,
Byte key) |
ByteId(Class pcClass,
String str) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
byte |
getKey() |
Byte |
getKeyAsObject() |
protected boolean |
keyEquals(SingleFieldId obj) |
void |
readExternal(ObjectInput in)
Read this object.
|
String |
toString()
Return the String version of the key.
|
void |
writeExternal(ObjectOutput out)
Write this object.
|
assertKeyNotNull, compare, equals, getTargetClassName, hashCode
public ByteId(Class pcClass, byte key)
public ByteId()
public byte getKey()
public Byte getKeyAsObject()
getKeyAsObject
in class SingleFieldId<Byte>
public String toString()
protected boolean keyEquals(SingleFieldId obj)
keyEquals
in class SingleFieldId<Byte>
public int compareTo(Object o)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class SingleFieldId<Byte>
out
- the outputIOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class SingleFieldId<Byte>
in
- the inputIOException
ClassNotFoundException
Copyright © 2019. All rights reserved.