T
- The type of the data value.public interface PersistentDataTypeContext<T>
Modifier and Type | Method and Description |
---|---|
T |
deserialize(byte[] data)
Deserialize the provided bytes buffer into a valid value.
|
byte[] |
serialize(T value)
Serialize the provided value into a bytes buffer.
|
byte[] serialize(T value)
value
- The value to serialize.T deserialize(byte[] data)
data
- The serialized data.