Interface Serializable<T>

Type Parameters:
T - The type of object to serialize

public interface Serializable<T>
This interface represents a Serializable object. Objects which require custom serialization and cannot simply override or call the default Object.toString() method should implement this interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(String serializedObject)
    Deserialize an object from a Serialized string..
    serialize(T object)
    Serialize an object to a string.
  • Method Details

    • serialize

      String serialize(T object)
      Serialize an object to a string. Ideally, this should serialize to an SQL query for easy data transfer.
      Parameters:
      object - The object to serialize
      Returns:
      The serialized object
    • deserialize

      T deserialize(String serializedObject)
      Deserialize an object from a Serialized string..
      Parameters:
      serializedObject - The serialized object
      Returns:
      The deserialized object