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
-
Method Summary
-
Field Details
-
INSTANCE
-
-
Method Details
-
toString
Description copied from interface:KeySerializer
Transforms the key object to the string- Specified by:
toString
in interfaceKeySerializer<K>
- Parameters:
key
- a key object- Returns:
- a serialized representation of the key as a string
-