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, wrapAndThrowgetDelegatee, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, unwrappingSerializer, usesObjectId, withFilterIdstatic final NumberSerializer.BigDecimalAsStringSerializer BD_INSTANCE
public boolean isEmpty(SerializerProvider prov, java.lang.Object value)
JsonSerializerDefault implementation will consider only null values to be empty.
NOTE: replaces JsonSerializer.isEmpty(Object), which was deprecated in 2.5
isEmpty in class ToStringSerializerBasepublic void serialize(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen,
SerializerProvider provider)
throws java.io.IOException
JsonSerializerserialize in class ToStringSerializerBasevalue - 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.IOExceptionpublic java.lang.String valueToString(java.lang.Object value)
valueToString in class ToStringSerializerBaseprotected boolean _verifyBigDecimalRange(com.fasterxml.jackson.core.JsonGenerator gen,
java.math.BigDecimal value)
throws java.io.IOException
java.io.IOException