Class BigDecimalTypeSerializer

java.lang.Object
org.spongepowered.configurate.serialize.ScalarSerializer<BigDecimal>
com.earth2me.essentials.config.serializers.BigDecimalTypeSerializer
All Implemented Interfaces:
org.spongepowered.configurate.serialize.TypeSerializer<BigDecimal>, org.spongepowered.configurate.serialize.TypeSerializer.Annotated<BigDecimal>

public class BigDecimalTypeSerializer extends org.spongepowered.configurate.serialize.ScalarSerializer<BigDecimal>
A Configurate type serializer for BigDecimals.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.spongepowered.configurate.serialize.ScalarSerializer

    org.spongepowered.configurate.serialize.ScalarSerializer.Annotated<V>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(Type type, Object obj)
     
    protected Object
    serialize(BigDecimal item, Predicate<Class<?>> typeSupported)
     

    Methods inherited from class org.spongepowered.configurate.serialize.ScalarSerializer

    deserialize, deserialize, deserialize, deserialize, serialize, serialize, serialize, serializeToString, tryDeserialize, type

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.spongepowered.configurate.serialize.TypeSerializer.Annotated

    emptyValue, emptyValue
  • Constructor Details

    • BigDecimalTypeSerializer

      public BigDecimalTypeSerializer()
  • Method Details

    • deserialize

      public BigDecimal deserialize(Type type, Object obj) throws org.spongepowered.configurate.serialize.SerializationException
      Specified by:
      deserialize in class org.spongepowered.configurate.serialize.ScalarSerializer<BigDecimal>
      Throws:
      org.spongepowered.configurate.serialize.SerializationException
    • serialize

      protected Object serialize(BigDecimal item, Predicate<Class<?>> typeSupported)
      Specified by:
      serialize in class org.spongepowered.configurate.serialize.ScalarSerializer<BigDecimal>