Class PrimitiveSerializers.ShortSerializer

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

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

    • ShortSerializer

      public ShortSerializer()
  • Method Details

    • deserialize

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

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