Top Fields Constructors Methods
tools.jackson.datatype.eclipsecollections.ser.map

public final Class RefRefMapIterableSerializer

extends RefRefMapSerializer<MapIterable<?, ?>>
Class Inheritance
Imports
java.util.Set, java.util.function.BiConsumer, tools.jackson.databind.*, tools.jackson.databind.jsontype.TypeSerializer, tools.jackson.databind.ser.std.StdContainerSerializer, tools.jackson.datatype.primitive_collections_base.ser.map.RefRefMapSerializer, org.eclipse.collections.api.map.MapIterable

Author
yawkat

Field Summary

Inherited from tools.jackson.datatype.primitive_collections_base.ser.map.RefRefMapSerializer:
_ignoredEntries_keySerializer_valueSerializer

Constructor Summary

AccessConstructor 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)

Method Summary

Modifier and TypeMethod and Description
protected StdContainerSerializer<?>
_withValueTypeSerializer(TypeSerializer typeSer)

Implements abstract tools.jackson.databind.ser.std.StdContainerSerializer._withValueTypeSerializer.

Method that needs to be implemented to allow construction of a new serializer object with given TypeSerializer, used when addition type information is to be embedded.

protected void
public boolean
hasSingleElement(MapIterable<?, ?> map)

Implements abstract tools.jackson.databind.ser.std.StdContainerSerializer.hasSingleElement.

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.jackson.databind.ser.std.StdContainerSerializer.isEmpty.

Method called to check whether given serializable value is considered "empty" value (for purposes of suppressing serialization of empty values).

protected RefRefMapIterableSerializer
Inherited from tools.jackson.datatype.primitive_collections_base.ser.map.RefRefMapSerializer:
createContextualgetContentSerializergetContentTypegetKeyTypeserializeserializeWithType

Constructor Detail

RefRefMapIterableSerializerback to summary
public RefRefMapIterableSerializer(JavaType type, ValueSerializer<Object> keySerializer, TypeSerializer vts, ValueSerializer<Object> valueSerializer, Set<String> ignoredEntries)
RefRefMapIterableSerializerback to summary
protected RefRefMapIterableSerializer(RefRefMapIterableSerializer src, BeanProperty property, ValueSerializer<?> keySerializer, TypeSerializer vts, ValueSerializer<?> valueSerializer, Set<String> ignoredEntries)

Method Detail

_withValueTypeSerializerback to summary
protected StdContainerSerializer<?> _withValueTypeSerializer(TypeSerializer typeSer)

Implements abstract tools.jackson.databind.ser.std.StdContainerSerializer._withValueTypeSerializer.

Doc from tools.jackson.databind.ser.std.StdContainerSerializer._withValueTypeSerializer.

Method that needs to be implemented to allow construction of a new serializer object with given TypeSerializer, used when addition type information is to be embedded.

Annotations
@Override
forEachKeyValueback to summary
protected void forEachKeyValue(MapIterable<?, ?> value, BiConsumer<Object, Object> action)

Implements abstract tools.jackson.datatype.primitive_collections_base.ser.map.RefRefMapSerializer.forEachKeyValue.

Annotations
@Override
hasSingleElementback to summary
public boolean hasSingleElement(MapIterable<?, ?> map)

Implements abstract tools.jackson.databind.ser.std.StdContainerSerializer.hasSingleElement.

Doc from tools.jackson.databind.ser.std.StdContainerSerializer.hasSingleElement.

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 Map or Map.Entry instances.

Annotations
@Override
isEmptyback to summary
public boolean isEmpty(SerializationContext ctxt, MapIterable<?, ?> value)

Implements abstract tools.jackson.databind.ser.std.StdContainerSerializer.isEmpty.

Doc from tools.jackson.databind.ValueSerializer.isEmpty.

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.

Annotations
@Override
withResolvedback to summary
protected RefRefMapIterableSerializer withResolved(BeanProperty property, ValueSerializer<?> keySer, TypeSerializer vts, ValueSerializer<?> valueSer, Set<String> ignored)

Implements abstract tools.jackson.datatype.primitive_collections_base.ser.map.RefRefMapSerializer.withResolved.

Annotations
@Override