Interface KeySerializer<T1,T2>
- Type Parameters:
T1
- The type to be serialized from and deserialized toT2
- The type to be serialized to and deserialized from
- All Known Implementing Classes:
KeySerializer.NumberKey
,KeySerializer.PlayerKey
,KeySerializer.StringKey
,KeySerializer.UuidKey
public interface KeySerializer<T1,T2>
Defines a contract for an object that performs
serialization and deserialization between an
advanced object and a simple "key" object.
- Since:
- 0.1.0
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
Serializer for wrapped number primitivesstatic final class
Serializer for player typesstatic final class
Serializer for stringsstatic final class
Serializer for UUIDs -
Method Summary
-
Method Details
-
serialize
Serializes the "advanced" object into a "simple" key type.- Parameters:
input
- The advanced object- Returns:
- The key representation
-
deserialize
Deserializes the "simple" key object into an "advanced" object type.- Parameters:
input
- The key object- Returns:
- The advanced representation
-