Class ZonedDateTimeKeySerializer
java.lang.Object
tools.jackson.databind.ValueSerializer<ZonedDateTime>
tools.jackson.databind.ext.javatime.ser.key.ZonedDateTimeKeySerializer
- All Implemented Interfaces:
JsonFormatVisitable
-
Nested Class Summary
Nested classes/interfaces inherited from class ValueSerializer
ValueSerializer.None -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidserialize(ZonedDateTime value, tools.jackson.core.JsonGenerator g, SerializationContext ctxt) Method that can be called to ask implementation to serialize values of type this serializer handles.private static booleanuseNanos(SerializationContext ctxt) private static boolean
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ZonedDateTimeKeySerializer
private ZonedDateTimeKeySerializer()
-
-
Method Details
-
serialize
public void serialize(ZonedDateTime value, tools.jackson.core.JsonGenerator g, SerializationContext ctxt) throws tools.jackson.core.JacksonException Description copied from class:ValueSerializerMethod that can be called to ask implementation to serialize values of type this serializer handles.- Specified by:
serializein classValueSerializer<ZonedDateTime>- Parameters:
value- Value to serialize; can not be null.g- Generator used to output resulting Json contentctxt- Context that can be used to get serializers for serializing Objects value contains, if any.- Throws:
tools.jackson.core.JacksonException
-
useNanos
-
useTimestamps
-