T - The type of serialized object implementations can writepublic interface Serializer<T>
| Modifier and Type | Method and Description | 
|---|---|
| byte[] | toBytes(T object)Serializes given object to an array of bytes. | 
byte[] toBytes(T object)
object - Object of specific type to serialize.