Class PrimitiveSerializers.IntegerSerializer

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

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

    • IntegerSerializer

      public IntegerSerializer()
  • Method Details

    • deserialize

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

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