Class OneBasedMonthSerializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<java.time.Month>
-
- com.fasterxml.jackson.datatype.jsr310.ser.OneBasedMonthSerializer
-
- All Implemented Interfaces:
JsonFormatVisitable
public class OneBasedMonthSerializer extends JsonSerializer<java.time.Month>
- Since:
- 2.17
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
JsonSerializer.None
-
-
Constructor Summary
Constructors Constructor Description OneBasedMonthSerializer(JsonSerializer<?> defaultSerializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidserialize(java.time.Month value, JsonGenerator gen, SerializerProvider ctxt)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, withIgnoredProperties
-
-
-
-
Constructor Detail
-
OneBasedMonthSerializer
public OneBasedMonthSerializer(JsonSerializer<?> defaultSerializer)
-
-
Method Detail
-
serialize
public void serialize(java.time.Month value, JsonGenerator gen, SerializerProvider ctxt) throws java.io.IOExceptionDescription copied from class:JsonSerializerMethod that can be called to ask implementation to serialize values of type this serializer handles.- Specified by:
serializein classJsonSerializer<java.time.Month>- Parameters:
value- Value to serialize; can not be null.gen- Generator used to output resulting Json contentctxt- Provider that can be used to get serializers for serializing Objects value contains, if any.- Throws:
java.io.IOException
-
-