Package org.rostore.client
Class DefaultKeySerializer<K>
java.lang.Object
org.rostore.client.DefaultKeySerializer<K>
- Type Parameters:
K- a key object type
- All Implemented Interfaces:
KeySerializer<K>
A default key serializer. It uses
Object.toString() function.-
Field Summary
Fields -
Method Summary
-
Field Details
-
INSTANCE
-
-
Method Details
-
toString
Description copied from interface:KeySerializerTransforms the key object to the string- Specified by:
toStringin interfaceKeySerializer<K>- Parameters:
key- a key object- Returns:
- a serialized representation of the key as a string
-