static final class NumberSerializer.BigDecimalAsStringSerializer extends ToStringSerializerBase
JsonSerializer.None
Modifier and Type | Field and Description |
---|---|
(package private) static NumberSerializer.BigDecimalAsStringSerializer |
BD_INSTANCE |
_handledType
Constructor and Description |
---|
BigDecimalAsStringSerializer() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
_verifyBigDecimalRange(com.fasterxml.jackson.core.JsonGenerator gen,
java.math.BigDecimal value) |
boolean |
isEmpty(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).
|
void |
serialize(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.String |
valueToString(java.lang.Object value) |
acceptJsonFormatVisitor, getSchema, serializeWithType
_neitherNull, _nonEmpty, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
getDelegatee, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, unwrappingSerializer, usesObjectId, withFilterId
static final NumberSerializer.BigDecimalAsStringSerializer BD_INSTANCE
public boolean isEmpty(SerializerProvider prov, java.lang.Object value)
JsonSerializer
Default implementation will consider only null values to be empty.
NOTE: replaces JsonSerializer.isEmpty(Object)
, which was deprecated in 2.5
isEmpty
in class ToStringSerializerBase
public void serialize(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider) throws java.io.IOException
JsonSerializer
serialize
in class ToStringSerializerBase
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.java.io.IOException
public java.lang.String valueToString(java.lang.Object value)
valueToString
in class ToStringSerializerBase
protected boolean _verifyBigDecimalRange(com.fasterxml.jackson.core.JsonGenerator gen, java.math.BigDecimal value) throws java.io.IOException
java.io.IOException