Class PrimitiveSerializers.DoubleSerializer

java.lang.Object
tech.guilhermekaua.spigotboot.config.serialization.scalars.PrimitiveSerializers.DoubleSerializer
All Implemented Interfaces:
TypeSerializer<Double>
Enclosing class:
PrimitiveSerializers

public static class PrimitiveSerializers.DoubleSerializer extends Object implements TypeSerializer<Double>
Serializer for Double values.
  • Constructor Details

    • DoubleSerializer

      public DoubleSerializer()
  • Method Details

    • deserialize

      public Double deserialize(@NotNull @NotNull ConfigNode node, @NotNull @NotNull Class<Double> type)
      Description copied from interface: TypeSerializer
      Deserializes a configuration node to the target type.
      Specified by:
      deserialize in interface TypeSerializer<Double>
      Parameters:
      node - the source node
      type - the target type class
      Returns:
      the deserialized value
    • serialize

      public void serialize(@NotNull @NotNull Double value, @NotNull @NotNull MutableConfigNode node)
      Description copied from interface: TypeSerializer
      Serializes a value to a configuration node.
      Specified by:
      serialize in interface TypeSerializer<Double>
      Parameters:
      value - the value to serialize
      node - the target node