Class MonthDaySerializer

All Implemented Interfaces:
JsonFormatVisitable, SchemaAware, ContextualSerializer, Serializable

public class MonthDaySerializer extends StdSerializer<T>
Serializer for Java 8 temporal MonthDays.

NOTE: unlike many other date/time type serializers, this serializer will only use Array notation if explicitly instructed to do so with JsonFormat (either directly or through per-type defaults) and NOT with global defaults.

Since:
2.7.1
See Also:
  • Field Details

    • INSTANCE

      public static final MonthDaySerializer INSTANCE
    • _useTimestamp

      protected final Boolean _useTimestamp
      Flag that indicates that serialization must be done as the Java timestamp, regardless of other settings.
    • _useNanoseconds

      protected final Boolean _useNanoseconds
      Flag that indicates that numeric timestamp values must be written using nanosecond timestamps if the datatype supports such resolution, regardless of other settings.
    • _formatter

      protected final DateTimeFormatter _formatter
      Specific format to use, if not default format: non null value also indicates that serialization is to be done as JSON String, not numeric timestamp, unless #_useTimestamp is true.
    • _shape

      protected final JsonFormat.Shape _shape
    • _integerListType

      protected transient volatile JavaType _integerListType
      Lazily constructed JavaType representing type List<Integer>.
      Since:
      2.10
  • Constructor Details

    • MonthDaySerializer

      protected MonthDaySerializer()
    • MonthDaySerializer

      public MonthDaySerializer(DateTimeFormatter formatter)
  • Method Details