LinkedList
that cannot}.
| Access | Constructor and Description |
|---|---|
| public | IndexedListSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> valueSerializer)
|
| public | IndexedListSerializer(IndexedListSerializer src, TypeSerializer vts, ValueSerializer<?> valueSerializer, Boolean unwrapSingle, BeanProperty property)
|
| Modifier and Type | Method and Description |
|---|---|
| protected StdContainerSerializer | _withValueTypeSerializer(TypeSerializer vts)
Implements abstract tools. Method that needs to be implemented to allow construction of a new
serializer object with given |
| public boolean | hasSingleElement(Object value)
Implements abstract tools. Method called to determine if the given value (of type handled by this serializer) contains exactly one element. |
| public boolean | isEmpty(SerializationContext prov, Object value)
Implements abstract tools. Method called to check whether given serializable value is considered "empty" value (for purposes of suppressing serialization of empty values). |
| public final void | serialize(Object value0, JsonGenerator gen, SerializationContext provider)
Implements abstract tools. Method that can be called to ask implementation to serialize values of type this serializer handles. |
| public void | serializeContents(Object value0, JsonGenerator g, SerializationContext ctxt)
Implements abstract tools.
|
| public void | serializeContentsUsing(List<?> value, JsonGenerator jgen, SerializationContext provider, ValueSerializer<Object> ser)
|
| public void | |
| public IndexedListSerializer | withResolved(BeanProperty property, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle)
Implements abstract tools.
|
| IndexedListSerializer | back to summary |
|---|---|
| public IndexedListSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> valueSerializer) | |
| IndexedListSerializer | back to summary |
|---|---|
| public IndexedListSerializer(IndexedListSerializer src, TypeSerializer vts, ValueSerializer<?> valueSerializer, Boolean unwrapSingle, BeanProperty property) | |
| _withValueTypeSerializer | back to summary |
|---|---|
| protected StdContainerSerializer Implements abstract tools. Doc from tools. Method that needs to be implemented to allow construction of a new
serializer object with given
| |
| hasSingleElement | back to summary |
|---|---|
| public boolean hasSingleElement(Object value) Implements abstract tools. Doc from tools. Method called to determine if the given value (of type handled by this serializer) contains exactly one element. Note although it might seem sensible to instead define something like "getElementCount()" method, this would not work well for containers that do not keep track of size (like linked lists may not).
Note, too, that this method is only called by serializer
itself; and specifically is not used for non-array/collection types
like
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty(SerializationContext prov, Object value) Implements abstract tools. Doc from tools. Method called to check whether given serializable value is considered "empty" value (for purposes of suppressing serialization of empty values). Default implementation will consider only null values to be empty.
| |
| serialize | back to summary |
|---|---|
| public final void serialize(Object value0, JsonGenerator gen, SerializationContext provider) throws JacksonException Implements abstract tools. Doc from tools. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |
| serializeContents | back to summary |
|---|---|
| public void serializeContents(Object value0, JsonGenerator g, SerializationContext ctxt) throws JacksonException Implements abstract tools.
| |
| serializeContentsUsing | back to summary |
|---|---|
| public void serializeContentsUsing(List<?> value, JsonGenerator jgen, SerializationContext provider, ValueSerializer<Object> ser) throws JacksonException | |
| serializeTypedContents | back to summary |
|---|---|
| public void serializeTypedContents(List<?> value, JsonGenerator g, SerializationContext ctxt) throws JacksonException | |
| withResolved | back to summary |
|---|---|
| public IndexedListSerializer withResolved(BeanProperty property, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle) Implements abstract tools.
| |