Class BooleanTypeAdapter

java.lang.Object
ca.spottedleaf.yamlconfig.adapter.TypeAdapter<Boolean,Boolean>
ca.spottedleaf.yamlconfig.adapter.primitive.BooleanTypeAdapter

public final class BooleanTypeAdapter extends TypeAdapter<Boolean,Boolean>
  • Field Details

  • Constructor Details

    • BooleanTypeAdapter

      public BooleanTypeAdapter()
  • Method Details

    • deserialize

      public Boolean deserialize(TypeAdapterRegistry registry, Object input, Type type)
      Description copied from class: TypeAdapter
      Deserializes the value from YAML.
      Specified by:
      deserialize in class TypeAdapter<Boolean,Boolean>
      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 Boolean serialize(TypeAdapterRegistry registry, Boolean value, Type type)
      Description copied from class: TypeAdapter
      Serializes the value to YAML.
      Specified by:
      serialize in class TypeAdapter<Boolean,Boolean>
      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.