Class StdArraySerializers.TypedPrimitiveArraySerializer<T>
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<T>
-
- com.fasterxml.jackson.databind.ser.std.StdSerializer<T>
-
- com.fasterxml.jackson.databind.ser.ContainerSerializer<T>
-
- com.fasterxml.jackson.databind.ser.std.ArraySerializerBase<T>
-
- com.fasterxml.jackson.databind.ser.std.StdArraySerializers.TypedPrimitiveArraySerializer<T>
-
- All Implemented Interfaces:
JsonFormatVisitable
,SchemaAware
,ContextualSerializer
,java.io.Serializable
- Direct Known Subclasses:
StdArraySerializers.FloatArraySerializer
,StdArraySerializers.LongArraySerializer
,StdArraySerializers.ShortArraySerializer
- Enclosing class:
- StdArraySerializers
protected abstract static class StdArraySerializers.TypedPrimitiveArraySerializer<T> extends ArraySerializerBase<T>
Intermediate base class used for cases where we may add type information (excludes boolean/int/double arrays).- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
JsonSerializer.None
-
-
Field Summary
-
Fields inherited from class com.fasterxml.jackson.databind.ser.std.ArraySerializerBase
_property, _unwrapSingle
-
Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_handledType
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TypedPrimitiveArraySerializer(StdArraySerializers.TypedPrimitiveArraySerializer<T> src, BeanProperty prop, java.lang.Boolean unwrapSingle)
protected
TypedPrimitiveArraySerializer(java.lang.Class<T> cls)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerSerializer<?>
_withValueTypeSerializer(TypeSerializer vts)
Method that needs to be implemented to allow construction of a new serializer object with givenTypeSerializer
, used when addition type information is to be embedded.-
Methods inherited from class com.fasterxml.jackson.databind.ser.std.ArraySerializerBase
_shouldUnwrapSingle, _withResolved, createContextual, serialize, serializeContents, serializeWithType
-
Methods inherited from class com.fasterxml.jackson.databind.ser.ContainerSerializer
getContentSerializer, getContentType, hasContentTypeAnnotation, hasSingleElement, withValueTypeSerializer
-
Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_neitherNull, _nonEmpty, acceptJsonFormatVisitor, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
-
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, unwrappingSerializer, usesObjectId, withFilterId
-
-
-
-
Constructor Detail
-
TypedPrimitiveArraySerializer
protected TypedPrimitiveArraySerializer(java.lang.Class<T> cls)
-
TypedPrimitiveArraySerializer
protected TypedPrimitiveArraySerializer(StdArraySerializers.TypedPrimitiveArraySerializer<T> src, BeanProperty prop, java.lang.Boolean unwrapSingle)
-
-
Method Detail
-
_withValueTypeSerializer
public final ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer vts)
Description copied from class:ContainerSerializer
Method that needs to be implemented to allow construction of a new serializer object with givenTypeSerializer
, used when addition type information is to be embedded.- Specified by:
_withValueTypeSerializer
in classContainerSerializer<T>
-
-