T
- the type of data that can be serializedpublic interface Serializer<T>
T
to a raw byte array. This byte array should be
able to be read by a Deserializer
to reconstruct the serialized object.Modifier and Type | Method and Description |
---|---|
DataType<T> |
getDataType()
Gets the type of the data this can serialize.
|
byte[] |
serialize(T data)
Serializes the given data as a byte array.
|