Top Description Fields Constructors Methods
tools.jackson.databind.ext.javatime.ser

public Class InstantSerializer

extends InstantSerializerBase<Instant>
Class Inheritance
Imports
com.fasterxml.jackson.annotation.JsonFormat, java.time.Instant, .OffsetDateTime, .ZonedDateTime, java.time.format.DateTimeFormatter

Serializer for Java 8 temporal Instants, OffsetDateTime, and ZonedDateTimes.
Author
Nick Williams

Field Summary

Modifier and TypeField and Description
public static final InstantSerializer

Constructor Summary

AccessConstructor and Description
protected
protected
InstantSerializer(InstantSerializer base, DateTimeFormatter formatter, Boolean useTimestamp, Boolean useNanoseconds, JsonFormat.Shape shape)

Method Summary

Modifier and TypeMethod and Description
protected JSR310FormattedSerializerBase<?>
protected JSR310FormattedSerializerBase<Instant>
Inherited from tools.jackson.databind.ext.javatime.ser.InstantSerializerBase:
_acceptTimestampVisitorformatValueserializationShapeserialize

Field Detail

INSTANCEback to summary
public static final InstantSerializer INSTANCE

Constructor Detail

InstantSerializerback to summary
protected InstantSerializer()
InstantSerializerback to summary
protected InstantSerializer(InstantSerializer base, DateTimeFormatter formatter, Boolean useTimestamp, Boolean useNanoseconds, JsonFormat.Shape shape)

Method Detail

withFeaturesback to summary
protected JSR310FormattedSerializerBase<?> withFeatures(Boolean writeZoneId, Boolean writeNanoseconds)

Overrides tools.jackson.databind.ext.javatime.ser.JSR310FormattedSerializerBase.withFeatures.

Annotations
@Override
withFormatback to summary
protected JSR310FormattedSerializerBase<Instant> withFormat(DateTimeFormatter formatter, Boolean useTimestamp, JsonFormat.Shape shape)

Implements abstract tools.jackson.databind.ext.javatime.ser.InstantSerializerBase.withFormat.

Annotations
@Override