Interface RtagSerializer<T>

Type Parameters:
T - Serializable object type.

public interface RtagSerializer<T>
An Serializer that converts any Object to Map.
  • Method Summary

    Modifier and Type
    Method
    Description
    The unique ID to save with CompoundTag on Rtag.newTag(Object) operations.
    "In" means the value inside will be put into tag.
    This ID must be the same has "Out" ID on RtagDeserializer if you want to obtain the saved object as current type in a future.
    serialize(T object)
    Method who be invoked to convert any Object to Map.
  • Method Details

    • getInID

      String getInID()
      The unique ID to save with CompoundTag on Rtag.newTag(Object) operations.
      "In" means the value inside will be put into tag.
      This ID must be the same has "Out" ID on RtagDeserializer if you want to obtain the saved object as current type in a future.
      Returns:
      Object type ID.
    • serialize

      Map<String,Object> serialize(T object)
      Method who be invoked to convert any Object to Map.
      Parameters:
      object - A Object as <T> instance.
      Returns:
      A serialized Map.