| Access | Constructor and Description |
|---|---|
| public | RefRefMapIterableSerializer(JavaType type, ValueSerializer<Object> keySerializer, TypeSerializer vts, ValueSerializer<Object> valueSerializer, Set<String> ignoredEntries)
|
| protected | RefRefMapIterableSerializer(RefRefMapIterableSerializer src, BeanProperty property, ValueSerializer<?> keySerializer, TypeSerializer vts, ValueSerializer<?> valueSerializer, Set<String> ignoredEntries)
|
| Modifier and Type | Method and Description |
|---|---|
| protected StdContainerSerializer | _withValueTypeSerializer(TypeSerializer typeSer)
Implements abstract tools. Method that needs to be implemented to allow construction of a new
serializer object with given |
| protected void | forEachKeyValue(MapIterable<?, ?> value, BiConsumer<Object, Object> action)
Implements abstract tools.
|
| public boolean | hasSingleElement(MapIterable<?, ?> map)
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 ctxt, MapIterable<?, ?> value)
Implements abstract tools. Method called to check whether given serializable value is considered "empty" value (for purposes of suppressing serialization of empty values). |
| protected RefRefMapIterableSerializer | withResolved(BeanProperty property, ValueSerializer<?> keySer, TypeSerializer vts, ValueSerializer<?> valueSer, Set<String> ignored)
Implements abstract tools.
|
| RefRefMapIterableSerializer | back to summary |
|---|---|
| public RefRefMapIterableSerializer(JavaType type, ValueSerializer<Object> keySerializer, TypeSerializer vts, ValueSerializer<Object> valueSerializer, Set<String> ignoredEntries) | |
| RefRefMapIterableSerializer | back to summary |
|---|---|
| protected RefRefMapIterableSerializer(RefRefMapIterableSerializer src, BeanProperty property, ValueSerializer<?> keySerializer, TypeSerializer vts, ValueSerializer<?> valueSerializer, Set<String> ignoredEntries) | |
| _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
| |
| forEachKeyValue | back to summary |
|---|---|
| protected void forEachKeyValue(MapIterable<?, ?> value, BiConsumer<Object, Object> action) Implements abstract tools.
| |
| hasSingleElement | back to summary |
|---|---|
| public boolean hasSingleElement(MapIterable<?, ?> map) 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 ctxt, MapIterable<?, ?> 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.
| |
| withResolved | back to summary |
|---|---|
| protected RefRefMapIterableSerializer withResolved(BeanProperty property, ValueSerializer<?> keySer, TypeSerializer vts, ValueSerializer<?> valueSer, Set<String> ignored) Implements abstract tools.
| |