public class DoubleSerializer extends Object implements Serializer<Double>
Constructor and Description |
---|
DoubleSerializer() |
Modifier and Type | Method and Description |
---|---|
byte[] |
serialize(String topic,
Double data)
Convert
data into a byte array. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, configure, serialize
public byte[] serialize(String topic, Double data)
Serializer
data
into a byte array.serialize
in interface Serializer<Double>
topic
- topic associated with datadata
- typed data