Class ScalarSerializer.Annotated<V>

java.lang.Object
org.spongepowered.configurate.serialize.ScalarSerializer<V>
org.spongepowered.configurate.serialize.ScalarSerializer.Annotated<V>
Type Parameters:
V - the value to deserialize
All Implemented Interfaces:
TypeSerializer<V>, TypeSerializer.Annotated<V>
Enclosing class:
ScalarSerializer<T>

public abstract static class ScalarSerializer.Annotated<V> extends ScalarSerializer<V>
A specialization of the scalar serializer that favors annotated type methods over unannotated methods.
Since:
4.2.0
  • Constructor Details

    • Annotated

      protected Annotated(Class<V> type)
      Create a new annotated scalar serializer that handles the provided type.

      type must not be a raw parameterized type.

      Parameters:
      type - type to handle
      Since:
      4.2.0
    • Annotated

      protected Annotated(io.leangen.geantyref.TypeToken<V> type)
      Create a new annotated scalar serializer that handles the provided type.
      Parameters:
      type - type to handle
      Since:
      4.2.0
  • Method Details