public interface

StringSerializer

org.apache.helix.controller.serializer.StringSerializer
Known Indirect Subclasses

Summary

Public Methods
abstract <T> T deserialize(Class<T> clazz, String string)
Convert raw bytes to a generic object instance
abstract <T> String serialize(T data)
Convert an object instance to a String

Public Methods

public abstract T deserialize (Class<T> clazz, String string)

Convert raw bytes to a generic object instance

Parameters
clazz The class represented by the deserialized string
string String representing the object
Returns
  • instance of the generic type or null if the conversion failed

public abstract String serialize (T data)

Convert an object instance to a String

Parameters
data instance of an arbitrary type
Returns
  • String representing the object