Class InstantSerializer

  • 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 InstantSerializer
    extends InstantSerializerBase<java.time.Instant>
    Serializer for Java 8 temporal Instants, OffsetDateTime, and ZonedDateTimes.
    Since:
    2.2
    See Also:
    Serialized Form
    • Constructor Detail

      • InstantSerializer

        protected InstantSerializer()
      • InstantSerializer

        @Deprecated
        protected InstantSerializer​(InstantSerializer base,
                                    java.lang.Boolean useTimestamp,
                                    java.time.format.DateTimeFormatter formatter)
        Deprecated.
      • InstantSerializer

        protected InstantSerializer​(InstantSerializer base,
                                    java.lang.Boolean useTimestamp,
                                    java.time.format.DateTimeFormatter formatter,
                                    com.fasterxml.jackson.annotation.JsonFormat.Shape shape)
        Since:
        2.14
      • InstantSerializer

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