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