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