Package org.codehaus.jackson.map.ser.std
Class StdContainerSerializers.IndexedListSerializer
- java.lang.Object
-
- org.codehaus.jackson.map.JsonSerializer<T>
-
- org.codehaus.jackson.map.ser.std.SerializerBase<T>
-
- org.codehaus.jackson.map.ser.std.ContainerSerializerBase<T>
-
- org.codehaus.jackson.map.ser.std.AsArraySerializerBase<List<?>>
-
- org.codehaus.jackson.map.ser.std.StdContainerSerializers.IndexedListSerializer
-
- All Implemented Interfaces:
ResolvableSerializer,SchemaAware
- Enclosing class:
- StdContainerSerializers
public static class StdContainerSerializers.IndexedListSerializer extends AsArraySerializerBase<List<?>>
This is an optimized serializer for Lists that can be efficiently traversed by index (as opposed to others, such asLinkedListthat can not}.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.codehaus.jackson.map.JsonSerializer
JsonSerializer.None
-
-
Field Summary
-
Fields inherited from class org.codehaus.jackson.map.ser.std.AsArraySerializerBase
_dynamicSerializers, _elementSerializer, _elementType, _property, _staticTyping, _valueTypeSerializer
-
Fields inherited from class org.codehaus.jackson.map.ser.std.SerializerBase
_handledType
-
-
Constructor Summary
Constructors Constructor Description IndexedListSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> valueSerializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerSerializerBase<?>_withValueTypeSerializer(TypeSerializer vts)voidserializeContents(List<?> value, JsonGenerator jgen, SerializerProvider provider)voidserializeContentsUsing(List<?> value, JsonGenerator jgen, SerializerProvider provider, JsonSerializer<Object> ser)voidserializeTypedContents(List<?> value, JsonGenerator jgen, SerializerProvider provider)-
Methods inherited from class org.codehaus.jackson.map.ser.std.AsArraySerializerBase
_findAndAddDynamic, _findAndAddDynamic, getSchema, resolve, serialize, serializeWithType
-
Methods inherited from class org.codehaus.jackson.map.ser.std.ContainerSerializerBase
withValueTypeSerializer
-
Methods inherited from class org.codehaus.jackson.map.ser.std.SerializerBase
createObjectNode, createSchemaNode, createSchemaNode, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow, wrapAndThrow, wrapAndThrow
-
Methods inherited from class org.codehaus.jackson.map.JsonSerializer
isUnwrappingSerializer, unwrappingSerializer
-
-
-
-
Constructor Detail
-
IndexedListSerializer
public IndexedListSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> valueSerializer)
-
-
Method Detail
-
_withValueTypeSerializer
public ContainerSerializerBase<?> _withValueTypeSerializer(TypeSerializer vts)
- Specified by:
_withValueTypeSerializerin classContainerSerializerBase<List<?>>
-
serializeContents
public void serializeContents(List<?> value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonGenerationException
- Specified by:
serializeContentsin classAsArraySerializerBase<List<?>>- Throws:
IOExceptionJsonGenerationException
-
serializeContentsUsing
public void serializeContentsUsing(List<?> value, JsonGenerator jgen, SerializerProvider provider, JsonSerializer<Object> ser) throws IOException, JsonGenerationException
- Throws:
IOExceptionJsonGenerationException
-
serializeTypedContents
public void serializeTypedContents(List<?> value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonGenerationException
- Throws:
IOExceptionJsonGenerationException
-
-