Top Fields Constructors Methods
com.fasterxml.jackson.datatype.joda.ser

public Class YearMonthSerializer

extends JodaDateSerializerBase<YearMonth>
Class Inheritance
Imports
com.fasterxml.jackson.core.*, com.fasterxml.jackson.databind.SerializationFeature, .SerializerProvider, com.fasterxml.jackson.datatype.joda.cfg.FormatConfig, .JacksonJodaDateFormat, org.joda.time.YearMonth, java.io.IOException

References Deprecated

JodaDateSerializerBase is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from com.fasterxml.jackson.datatype.joda.ser.JodaDateSerializerBase:
_defaultNumericShape_featureForNumeric_format_shapeOverrideFORMAT_ARRAYFORMAT_STRINGFORMAT_TIMESTAMP

Constructor Summary

AccessConstructor and Description
public
public
public
YearMonthSerializer(JacksonJodaDateFormat format, int shapeOverride)

Method Summary

Modifier and TypeMethod and Description
public void
serialize(YearMonth
Value to serialize; can not be null.
value
,
JsonGenerator
Generator used to output resulting Json content
gen
,
SerializerProvider
Provider that can be used to get serializers for serializing Objects value contains, if any.
provider
)

Implements abstract com.fasterxml.jackson.databind.ser.std.StdSerializer.serialize.

Method that can be called to ask implementation to serialize values of type this serializer handles.

public YearMonthSerializer
withFormat(JacksonJodaDateFormat formatter, int shapeOverride)

Implements abstract com.fasterxml.jackson.datatype.joda.ser.JodaDateSerializerBase.withFormat.

References Deprecated YearMonthSerializer is deprecated or references (maybe indirectly) at least one deprecated element.

Inherited from com.fasterxml.jackson.datatype.joda.ser.JodaDateSerializerBase:
_serializationShapeacceptJsonFormatVisitorcreateContextualgetSchemaisEmptywriteWithZoneId

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.datatype.joda.ser.JodaDateSerializerBase.serialVersionUID.

Constructor Detail

YearMonthSerializerback to summary
public YearMonthSerializer()
YearMonthSerializerback to summary
public YearMonthSerializer(JacksonJodaDateFormat format)
YearMonthSerializerback to summary
public YearMonthSerializer(JacksonJodaDateFormat format, int shapeOverride)

Method Detail

serializeback to summary
public void serialize(YearMonth value, JsonGenerator gen, SerializerProvider provider) throws IOException

Implements abstract com.fasterxml.jackson.databind.ser.std.StdSerializer.serialize.

Doc from com.fasterxml.jackson.databind.JsonSerializer.serialize.

Method that can be called to ask implementation to serialize values of type this serializer handles.

Parameters
value:YearMonth

Value to serialize; can not be null.

gen:JsonGenerator

Generator used to output resulting Json content

provider:SerializerProvider

Provider that can be used to get serializers for serializing Objects value contains, if any.

Annotations
@Override
withFormatback to summary
public YearMonthSerializer withFormat(JacksonJodaDateFormat formatter, int shapeOverride)

Implements abstract com.fasterxml.jackson.datatype.joda.ser.JodaDateSerializerBase.withFormat.

References Deprecated

YearMonthSerializer is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Annotations
@Override