References Deprecated
StdScalarSerializer is deprecated or references (maybe indirectly) at least one deprecated element.
See corresponding docs for further information.
Numbers: both custom types and "big" numbers
like BigInteger and BigDecimal.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | NumberSerializer.
References Deprecated
ToStringSerializerBase is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Modifier and Type | Field and Description |
|---|---|
| protected final boolean | |
| public static final NumberSerializer | instance
References Deprecated
Static instance that is only to be used for NumberSerializer is deprecated or references (maybe indirectly) at least one deprecated element.
java..
|
| protected static final int | MAX_BIG_DECIMAL_SCALE
Copied from `jackson-core` class `GeneratorBase` |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType
Type of element (entity like property) being visited typeHint)Overrides com. Implements com. Default implementation specifies no format. |
| public static JsonSerializer | |
| public JsonSerializer | createContextual(SerializerProvider
Serializer provider to use for accessing config, other serializers prov, BeanProperty Method or field that represents the property
(and is used to access value to serialize).
Should be available; but there may be cases where caller cannot provide it and
null is passed instead (in which case impls usually pass 'this' serializer as is) property)Implements com. Method called to see if a different (or differently configured) serializer is needed to serialize values of specified property. |
| public JsonNode | getSchema(SerializerProvider
The serializer provider. provider, Type A hint about the type. typeHint)Overrides com. Implements com.
Deprecated
Since 2.15
Default implementation simply claims type is "string"; usually overriden by custom serializers. |
| public void | serialize(Number
Value to serialize; can not be null. value, JsonGenerator Generator used to output resulting Json content g, SerializerProvider Provider that can be used to get serializers for
serializing Objects value contains, if any. provider)Implements abstract com. Method that can be called to ask implementation to serialize values of type this serializer handles. |
| _isInt | back to summary |
|---|---|
| protected final boolean _isInt | |
| instance | back to summary |
|---|---|
| public static final NumberSerializer instance
References Deprecated
See corresponding docs for further information. Static instance that is only to be used for | |
| MAX_BIG_DECIMAL_SCALE | back to summary |
|---|---|
| protected static final int MAX_BIG_DECIMAL_SCALE Copied from `jackson-core` class `GeneratorBase` | |
| NumberSerializer | back to summary |
|---|---|
public NumberSerializer(Class<? extends Number> rawType)
| |
| acceptJsonFormatVisitor | back to summary |
|---|---|
| public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) throws JsonMappingException Overrides com. Implements com. Doc from com. Default implementation specifies no format. This behavior is usually overriden by custom serializers.
| |
| bigDecimalAsStringSerializer | back to summary |
|---|---|
public static JsonSerializer
| |
| createContextual | back to summary |
|---|---|
| public JsonSerializer Implements com. Doc from com. Method called to see if a different (or differently configured) serializer is needed to serialize values of specified property. Note that instance that this method is called on is typically shared one and as a result method should NOT modify this instance but rather construct and return a new instance. This instance should only be returned as-is, in case it is already suitable for use.
| |
| getSchema | back to summary |
|---|---|
| public JsonNode getSchema(SerializerProvider provider, Type typeHint) Overrides com. Implements com. Doc from com. Deprecated Since 2.15 Default implementation simply claims type is "string"; usually overriden by custom serializers.
| |
| serialize | back to summary |
|---|---|
| public void serialize(Number value, JsonGenerator g, SerializerProvider provider) throws IOException Implements abstract com. Doc from com. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |
References Deprecated
ToStringSerializerBase is deprecated or references (maybe indirectly) at least one deprecated element.
See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final NumberSerializer. | BD_INSTANCE
References Deprecated
NumberSerializer.BigDecimalAsStringSerializer is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | |
| public boolean | isEmpty(SerializerProvider prov, Object value)
Overrides com. Method called to check whether given serializable value is considered "empty" value (for purposes of suppressing serialization of empty values). |
| public void | serialize(Object
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)Overrides com. Method that can be called to ask implementation to serialize values of type this serializer handles. |
| public String | valueToString(Object value)
Implements abstract com.
|
| BD_INSTANCE | back to summary |
|---|---|
| pack-priv static final NumberSerializer. References Deprecated
See corresponding docs for further information. | |
| BigDecimalAsStringSerializer | back to summary |
|---|---|
| public BigDecimalAsStringSerializer() | |
| _verifyBigDecimalRange | back to summary |
|---|---|
| protected boolean _verifyBigDecimalRange(JsonGenerator gen, BigDecimal value) throws IOException | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty(SerializerProvider prov, Object value) Overrides com. Doc from com. Method 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
| |
| serialize | back to summary |
|---|---|
| public void serialize(Object value, JsonGenerator gen, SerializerProvider provider) throws IOException Overrides com. Doc from com. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |
| valueToString | back to summary |
|---|---|
| public String valueToString(Object value) Implements abstract com.
| |