public class LongSerde extends java.lang.Object implements Serde<java.lang.Long>
Constructor and Description |
---|
LongSerde() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
fromBytes(byte[] bytes)
Deserializes given serialized object from an array of bytes to its original form.
|
byte[] |
toBytes(java.lang.Long obj)
Serializes given object to an array of bytes.
|
public byte[] toBytes(java.lang.Long obj)
Serializer
toBytes
in interface Serializer<java.lang.Long>
obj
- Object of specific type to serialize.public java.lang.Long fromBytes(byte[] bytes)
Deserializer
fromBytes
in interface Deserializer<java.lang.Long>
bytes
- Array of bytes representing serialized object.