Class NumberSerializer.BigDecimalAsStringSerializer
java.lang.Object
tools.jackson.databind.ValueSerializer<Object>
tools.jackson.databind.ser.std.StdSerializer<Object>
tools.jackson.databind.ser.std.ToStringSerializerBase
tools.jackson.databind.ser.jdk.NumberSerializer.BigDecimalAsStringSerializer
- All Implemented Interfaces:
JsonFormatVisitable
- Enclosing class:
NumberSerializer
-
Nested Class Summary
Nested classes/interfaces inherited from class ValueSerializer
ValueSerializer.None -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final NumberSerializer.BigDecimalAsStringSerializerFields inherited from class StdSerializer
_handledType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean_verifyBigDecimalRange(tools.jackson.core.JsonGenerator gen, BigDecimal value) booleanisEmpty(SerializationContext prov, Object value) Method called to check whether given serializable value is considered "empty" value (for purposes of suppressing serialization of empty values).voidserialize(Object value, tools.jackson.core.JsonGenerator gen, SerializationContext ctxt) Method that can be called to ask implementation to serialize values of type this serializer handles.valueToString(Object value) Methods inherited from class ToStringSerializerBase
acceptJsonFormatVisitor, serializeWithTypeMethods inherited from class StdSerializer
_neitherNull, _nonEmpty, _wrapIOFailure, acceptJsonFormatVisitorForBinary, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrowMethods inherited from class ValueSerializer
createContextual, getDelegatee, isUnwrappingSerializer, properties, replaceDelegatee, resolve, unwrappingSerializer, usesObjectId, withFilterId, withFormatOverrides, withIgnoredProperties
-
Field Details
-
BD_INSTANCE
-
-
Constructor Details
-
BigDecimalAsStringSerializer
public BigDecimalAsStringSerializer()
-
-
Method Details
-
isEmpty
Description copied from class:ValueSerializerMethod called to check whether given serializable value is considered "empty" value (for purposes of suppressing serialization of empty values).Default implementation will consider only null values to be empty.
- Overrides:
isEmptyin classToStringSerializerBase
-
serialize
public void serialize(Object value, tools.jackson.core.JsonGenerator gen, 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.- Overrides:
serializein classToStringSerializerBase- Parameters:
value- Value to serialize; can not be null.gen- 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
-
valueToString
- Specified by:
valueToStringin classToStringSerializerBase
-
_verifyBigDecimalRange
-