public class ByteFieldPK extends SingleFieldPK
hashCode, keyAsObject
Constructor and Description |
---|
ByteFieldPK()
Constructor only for Externalizable.
|
ByteFieldPK(Class pcClass,
byte key)
Constructor with class and key.
|
ByteFieldPK(Class pcClass,
Byte key)
Constructor with class and key.
|
ByteFieldPK(Class pcClass,
String str)
Constructor with class and key.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
protected Object |
createKeyAsObject()
Create the key as an Object.
|
boolean |
equals(Object obj)
Determine if the other object represents the same object id.
|
byte |
getKey()
Return the key.
|
void |
readExternal(ObjectInput in)
Read this object.
|
String |
toString()
Return the String version of the key.
|
void |
writeExternal(ObjectOutput out)
Write this object.
|
assertKeyNotNull, getKeyAsObject, getTargetClass, getTargetClassName, hashClassName, hashCode, setKeyAsObject
public ByteFieldPK(Class pcClass, byte key)
pcClass
- the target classkey
- the keypublic ByteFieldPK(Class pcClass, Byte key)
pcClass
- the target classkey
- the keypublic ByteFieldPK(Class pcClass, String str)
pcClass
- the target classstr
- the keypublic ByteFieldPK()
public byte getKey()
public String toString()
public boolean equals(Object obj)
equals
in class SingleFieldPK
obj
- the other objectpublic int compareTo(Object o)
protected Object createKeyAsObject()
createKeyAsObject
in class SingleFieldPK
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class SingleFieldPK
out
- the outputIOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class SingleFieldPK
in
- the inputIOException
ClassNotFoundException
Copyright © 2019. All rights reserved.