Class YearSerializer

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.jsonschema.SchemaAware, com.fasterxml.jackson.databind.ser.ContextualSerializer, java.io.Serializable

    public class YearSerializer
    extends JSR310FormattedSerializerBase<java.time.Year>
    Serializer for Java 8 temporal Years.
    Since:
    2.2
    See Also:
    Serialized Form
    • Constructor Detail

      • YearSerializer

        protected YearSerializer()
      • YearSerializer

        public YearSerializer​(java.time.format.DateTimeFormatter formatter)
      • YearSerializer

        protected YearSerializer​(YearSerializer base,
                                 java.lang.Boolean useTimestamp,
                                 java.time.format.DateTimeFormatter formatter)