public class UnboxedPair<A extends java.io.Serializable,B extends java.io.Serializable> extends java.lang.Object implements Unboxed<Pair<A,B>>
Constructor and Description |
---|
UnboxedPair(Unboxed<A> ua,
Unboxed<B> ub) |
Modifier and Type | Method and Description |
---|---|
Pair<A,B> |
deserialize(byte[] buf,
int ofs)
Deserialize a value; need not be compatible with V.readObject()!
|
int |
getSize()
Return the size, in bytes, of a value; all values must have the same size
|
void |
serialize(Pair<A,B> sme,
byte[] buf,
int ofs)
Serialize a value; need not be compatible with V.writeObject()!
|
public int getSize()
Unboxed
public Pair<A,B> deserialize(byte[] buf, int ofs)
Unboxed
deserialize
in interface Unboxed<Pair<A extends java.io.Serializable,B extends java.io.Serializable>>