Class ZonedDateTimeKeySerializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<ZonedDateTime>
-
- com.fasterxml.jackson.datatype.jsr310.ser.key.ZonedDateTimeKeySerializer
-
- All Implemented Interfaces:
JsonFormatVisitable
public class ZonedDateTimeKeySerializer extends JsonSerializer<ZonedDateTime>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
JsonSerializer.None
-
-
Field Summary
Fields Modifier and Type Field Description static ZonedDateTimeKeySerializerINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidserialize(ZonedDateTime value, JsonGenerator gen, SerializerProvider serializers)Method that can be called to ask implementation to serialize values of type this serializer handles.-
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId
-
-
-
-
Field Detail
-
INSTANCE
public static final ZonedDateTimeKeySerializer INSTANCE
-
-
Method Detail
-
serialize
public void serialize(ZonedDateTime value, JsonGenerator gen, SerializerProvider serializers) throws IOException, JsonProcessingException
Description copied from class:JsonSerializerMethod that can be called to ask implementation to serialize values of type this serializer handles.- Specified by:
serializein classJsonSerializer<ZonedDateTime>- Parameters:
value- Value to serialize; can not be null.gen- Generator used to output resulting Json contentserializers- Provider that can be used to get serializers for serializing Objects value contains, if any.- Throws:
IOExceptionJsonProcessingException
-
-