Class ListTypeAdapter

java.lang.Object
ca.spottedleaf.yamlconfig.adapter.TypeAdapter<List<Object>, List<Object>>
ca.spottedleaf.yamlconfig.adapter.collection.ListTypeAdapter

public final class ListTypeAdapter extends TypeAdapter<List<Object>, List<Object>>
  • Field Details

  • Constructor Details

    • ListTypeAdapter

      public ListTypeAdapter()
  • Method Details

    • deserialize

      public List<Object> deserialize(TypeAdapterRegistry registry, Object input, Type type)
      Description copied from class: TypeAdapter
      Deserializes the value from YAML.
      Specified by:
      deserialize in class TypeAdapter<List<Object>, List<Object>>
      Parameters:
      registry - The type adapter registry context.
      input - The object from YAML.
      type - The type information associated with the deserialized object.
      Returns:
      The deserialized form of the object.
    • serialize

      public List<Object> serialize(TypeAdapterRegistry registry, List<Object> value, Type type)
      Description copied from class: TypeAdapter
      Serializes the value to YAML.
      Specified by:
      serialize in class TypeAdapter<List<Object>, List<Object>>
      Parameters:
      registry - The type adapter registry context.
      value - The deserialized form of the object.
      type - The type information associated with the deserialized object.
      Returns:
      The serialized form of the object.