public static final class NumberSerializers.FloatSerializer extends NumberSerializers.Base<Object>
JsonSerializer.None
_isInt, _numberType, _schemaType, EMPTY_INTEGER
_handledType
Constructor and Description |
---|
FloatSerializer() |
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty(SerializerProvider prov,
Object value)
Method called to check whether given serializable value is
considered "empty" value (for purposes of suppressing serialization
of empty values).
|
void |
serialize(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.
|
acceptJsonFormatVisitor, createContextual, getSchema
serializeWithType
createObjectNode, createSchemaNode, createSchemaNode, findConvertingContentSerializer, findPropertyFilter, getSchema, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow
getDelegatee, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, unwrappingSerializer, usesObjectId, withFilterId
public boolean isEmpty(SerializerProvider prov, Object value)
JsonSerializer
Default implementation will consider only null values to be empty.
NOTE: replaces JsonSerializer.isEmpty(Object)
, deprecated in 2.5
isEmpty
in class JsonSerializer<Object>
public void serialize(Object value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider) throws IOException
JsonSerializer
serialize
in class StdSerializer<Object>
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.IOException
Copyright © 2014–2015 FasterXML. All rights reserved.