public class CollectionSerializer extends AsArraySerializerBase<Collection<?>>
Iterator
to iterate over elements.JsonSerializer.None
_dynamicSerializers, _elementSerializer, _elementType, _property, _staticTyping, _valueTypeSerializer
_handledType
Constructor and Description |
---|
CollectionSerializer(JavaType elemType,
boolean staticTyping,
TypeSerializer vts,
BeanProperty property,
JsonSerializer<Object> valueSerializer) |
Modifier and Type | Method and Description |
---|---|
ContainerSerializerBase<?> |
_withValueTypeSerializer(TypeSerializer vts) |
void |
serializeContents(Collection<?> value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
serializeContentsUsing(Collection<?> value,
JsonGenerator jgen,
SerializerProvider provider,
JsonSerializer<Object> ser) |
_findAndAddDynamic, _findAndAddDynamic, getSchema, resolve, serialize, serializeWithType
withValueTypeSerializer
createObjectNode, createSchemaNode, createSchemaNode, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow, wrapAndThrow, wrapAndThrow
isUnwrappingSerializer, unwrappingSerializer
public CollectionSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> valueSerializer)
public ContainerSerializerBase<?> _withValueTypeSerializer(TypeSerializer vts)
_withValueTypeSerializer
in class ContainerSerializerBase<Collection<?>>
public void serializeContents(Collection<?> value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonGenerationException
serializeContents
in class AsArraySerializerBase<Collection<?>>
IOException
JsonGenerationException
public void serializeContentsUsing(Collection<?> value, JsonGenerator jgen, SerializerProvider provider, JsonSerializer<Object> ser) throws IOException, JsonGenerationException
IOException
JsonGenerationException