Class BigDecimalTypeAdapter
java.lang.Object
ca.spottedleaf.yamlconfig.adapter.TypeAdapter<BigDecimal, String>
ca.spottedleaf.yamlconfig.adapter.type.BigDecimalTypeAdapter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(TypeAdapterRegistry registry, Object input, Type type) Deserializes the value from YAML.static NumberparseFloat(String input) static NumberparseFloat(String input, boolean asBigDecimal) serialize(TypeAdapterRegistry registry, BigDecimal value, Type type) Serializes the value to YAML.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
BigDecimalTypeAdapter
public BigDecimalTypeAdapter()
-
-
Method Details
-
parseFloat
-
parseFloat
-
deserialize
Description copied from class:TypeAdapterDeserializes the value from YAML.- Specified by:
deserializein classTypeAdapter<BigDecimal, 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<BigDecimal, 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.
-