org.codehaus.jackson.map.ser
Class ContainerSerializers.IndexedListSerializer
java.lang.Object
org.codehaus.jackson.map.JsonSerializer<T>
org.codehaus.jackson.map.ser.SerializerBase<T>
org.codehaus.jackson.map.ser.ContainerSerializerBase<T>
org.codehaus.jackson.map.ser.ContainerSerializers.IndexedListSerializer
- All Implemented Interfaces:
- ResolvableSerializer, SchemaAware
- Enclosing class:
- ContainerSerializers
public static class ContainerSerializers.IndexedListSerializer
- extends ContainerSerializerBase<T>
This is an optimizied serializer for Lists that can be efficiently
traversed by index (as opposed to others, such as LinkedList
that can not}.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
public static final ContainerSerializers.IndexedListSerializer instance
ContainerSerializers.IndexedListSerializer
public ContainerSerializers.IndexedListSerializer(JavaType elemType,
boolean staticTyping,
TypeSerializer vts)
_withValueTypeSerializer
public ContainerSerializerBase<?> _withValueTypeSerializer(TypeSerializer vts)
- Specified by:
_withValueTypeSerializer
in class ContainerSerializerBase<List<?>>
serializeContents
public void serializeContents(List<?> value,
JsonGenerator jgen,
SerializerProvider provider)
throws IOException,
JsonGenerationException
- Throws:
IOException
JsonGenerationException
serializeContentsUsing
public void serializeContentsUsing(List<?> value,
JsonGenerator jgen,
SerializerProvider provider,
JsonSerializer<Object> ser)
throws IOException,
JsonGenerationException
- Throws:
IOException
JsonGenerationException
serializeTypedContents
public void serializeTypedContents(List<?> value,
JsonGenerator jgen,
SerializerProvider provider)
throws IOException,
JsonGenerationException
- Throws:
IOException
JsonGenerationException