Class NumberSerializer.BigDecimalAsStringSerializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<T>
-
- com.fasterxml.jackson.databind.ser.std.StdSerializer<java.lang.Object>
-
- com.fasterxml.jackson.databind.ser.std.ToStringSerializerBase
-
- com.fasterxml.jackson.databind.ser.std.NumberSerializer.BigDecimalAsStringSerializer
-
- All Implemented Interfaces:
JsonFormatVisitable,SchemaAware,java.io.Serializable
- Enclosing class:
- NumberSerializer
static final class NumberSerializer.BigDecimalAsStringSerializer extends ToStringSerializerBase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
JsonSerializer.None
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static NumberSerializer.BigDecimalAsStringSerializerBD_INSTANCE-
Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_handledType
-
-
Constructor Summary
Constructors Constructor Description BigDecimalAsStringSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean_verifyBigDecimalRange(com.fasterxml.jackson.core.JsonGenerator gen, java.math.BigDecimal value)booleanisEmpty(SerializerProvider prov, java.lang.Object value)Method called to check whether given serializable value is considered "empty" value (for purposes of suppressing serialization of empty values).voidserialize(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider)Method that can be called to ask implementation to serialize values of type this serializer handles.java.lang.StringvalueToString(java.lang.Object value)-
Methods inherited from class com.fasterxml.jackson.databind.ser.std.ToStringSerializerBase
acceptJsonFormatVisitor, getSchema, serializeWithType
-
Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_neitherNull, _nonEmpty, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
-
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
getDelegatee, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, unwrappingSerializer, usesObjectId, withFilterId
-
-
-
-
Field Detail
-
BD_INSTANCE
static final NumberSerializer.BigDecimalAsStringSerializer BD_INSTANCE
-
-
Method Detail
-
isEmpty
public boolean isEmpty(SerializerProvider prov, java.lang.Object value)
Description copied from class:JsonSerializerMethod 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.
NOTE: replaces
JsonSerializer.isEmpty(Object), which was deprecated in 2.5- Overrides:
isEmptyin classToStringSerializerBase
-
serialize
public void serialize(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider) throws java.io.IOExceptionDescription copied from class:JsonSerializerMethod 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 contentprovider- Provider that can be used to get serializers for serializing Objects value contains, if any.- Throws:
java.io.IOException
-
valueToString
public java.lang.String valueToString(java.lang.Object value)
- Specified by:
valueToStringin classToStringSerializerBase
-
_verifyBigDecimalRange
protected boolean _verifyBigDecimalRange(com.fasterxml.jackson.core.JsonGenerator gen, java.math.BigDecimal value) throws java.io.IOException- Throws:
java.io.IOException
-
-