T - type of object to serialize to bytespublic interface ByteSerializer<T>
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<T> |
getType()
Obtains the type of the source to be serialized.
|
byte[] |
toBytes(T source)
Converts an object to a byte array.
|
byte[] toBytes(T source)
source - the source object to convert to bytesjava.lang.Class<T> getType()