Class StringFormTypeAdapter<T>
java.lang.Object
ca.spottedleaf.yamlconfig.adapter.TypeAdapter<T,String>
ca.spottedleaf.yamlconfig.adapter.generic.StringFormTypeAdapter<T>
- Direct Known Subclasses:
CalenderDurationTypeAdapter, DurationTypeAdapter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Tdeserialize(TypeAdapterRegistry registry, Object input, Type type) Deserializes the value from YAML.abstract TfromString(String value) final Stringserialize(TypeAdapterRegistry registry, T value, Type type) Serializes the value to YAML.abstract String
-
Constructor Details
-
StringFormTypeAdapter
public StringFormTypeAdapter()
-
-
Method Details
-
deserialize
Description copied from class:TypeAdapterDeserializes the value from YAML.- Specified by:
deserializein classTypeAdapter<T,String> - 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
Description copied from class:TypeAdapterSerializes the value to YAML.- Specified by:
serializein classTypeAdapter<T,String> - 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.
-
fromString
-
toString
-