Class DefaultKeySerializer<K>

java.lang.Object
org.rostore.client.DefaultKeySerializer<K>
Type Parameters:
K - a key object type
All Implemented Interfaces:
KeySerializer<K>

public class DefaultKeySerializer<K> extends Object implements KeySerializer<K>
A default key serializer. It uses Object.toString() function.
  • Field Details

  • Method Details

    • toString

      public String toString(K key)
      Description copied from interface: KeySerializer
      Transforms the key object to the string
      Specified by:
      toString in interface KeySerializer<K>
      Parameters:
      key - a key object
      Returns:
      a serialized representation of the key as a string