Class LongTypeAdapter

java.lang.Object
ca.spottedleaf.yamlconfig.adapter.TypeAdapter<Long,Long>
ca.spottedleaf.yamlconfig.adapter.primitive.LongTypeAdapter

public final class LongTypeAdapter extends TypeAdapter<Long,Long>
  • Field Details

  • Constructor Details

    • LongTypeAdapter

      public LongTypeAdapter()
  • Method Details

    • deserialize

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