public class UnboxedByte extends java.lang.Object implements UnboxedComparable<java.lang.Byte>
Modifier and Type | Field and Description |
---|---|
static UnboxedByte |
instance |
Constructor and Description |
---|
UnboxedByte() |
Modifier and Type | Method and Description |
---|---|
int |
compare(byte[] buf1,
int ofs1,
byte[] buf2,
int ofs2)
Same as Comparable.compare(), but operates directly on serialized representation
|
java.lang.Byte |
deserialize(byte[] buf,
int ofs)
Deserialize a value; need not be compatible with V.readObject()!
|
byte |
deserializeByte(byte[] buf,
int ofs) |
int |
getSize()
Return the size, in bytes, of a value; all values must have the same size
|
void |
serialize(java.lang.Byte k,
byte[] buf,
int ofs)
Serialize a value; need not be compatible with V.writeObject()!
|
void |
serializeByte(byte b,
byte[] buf,
int ofs) |
public static final UnboxedByte instance
public int getSize()
Unboxed
public java.lang.Byte deserialize(byte[] buf, int ofs)
Unboxed
deserialize
in interface Unboxed<java.lang.Byte>
public void serialize(java.lang.Byte k, byte[] buf, int ofs)
Unboxed
public byte deserializeByte(byte[] buf, int ofs)
public void serializeByte(byte b, byte[] buf, int ofs)
public int compare(byte[] buf1, int ofs1, byte[] buf2, int ofs2)
UnboxedComparable
compare
in interface UnboxedComparable<java.lang.Byte>