Top Fields Constructors Methods
tools.jackson.datatype.eclipsecollections

public final Class EclipseCollectionsDeserializers

extends Base
Class Inheritance
Imports
java.util.*, tools.jackson.databind.*, tools.jackson.databind.deser.Deserializers, tools.jackson.databind.jsontype.TypeDeserializer, tools.jackson.databind.type.CollectionLikeType, .CollectionType, .MapLikeType, .MapType, .ReferenceType, tools.jackson.datatype.eclipsecollections.deser.bag.ImmutableBagDeserializer, .ImmutableSortedBagDeserializer, .MutableBagDeserializer, .MutableSortedBagDeserializer, tools.jackson.datatype.eclipsecollections.deser.list.FixedSizeListDeserializer, .ImmutableListDeserializer, .MutableListDeserializer, tools.jackson.datatype.eclipsecollections.deser.map.EclipseMapDeserializers, tools.jackson.datatype.eclipsecollections.deser.set.ImmutableSetDeserializer, .ImmutableSortedSetDeserializer, .MutableSetDeserializer, .MutableSortedSetDeserializer, org.eclipse.collections.api.BooleanIterable, .ByteIterable, .CharIterable, .DoubleIterable, .FloatIterable, .IntIterable, .InternalIterable, .LongIterable, .PrimitiveIterable, .RichIterable, .ShortIterable, org.eclipse.collections.api.bag.Bag, .ImmutableBag, .MutableBag, .UnsortedBag, org.eclipse.collections.api.bag.primitive.BooleanBag, .ByteBag, .CharBag, .DoubleBag, .FloatBag, .ImmutableBooleanBag, .ImmutableByteBag, .ImmutableCharBag, .ImmutableDoubleBag, .ImmutableFloatBag, .ImmutableIntBag, .ImmutableLongBag, .ImmutableShortBag, .IntBag, .LongBag, .MutableBooleanBag, .MutableByteBag, .MutableCharBag, .MutableDoubleBag, .MutableFloatBag, .MutableIntBag, .MutableLongBag, .MutableShortBag, .ShortBag, org.eclipse.collections.api.bag.sorted.ImmutableSortedBag, .MutableSortedBag, .SortedBag, org.eclipse.collections.api.collection.FixedSizeCollection, .ImmutableCollection, .MutableCollection, org.eclipse.collections.api.collection.primitive.ImmutableBooleanCollection, .ImmutableByteCollection, .ImmutableCharCollection, .ImmutableDoubleCollection, .ImmutableFloatCollection, .ImmutableIntCollection, .ImmutableLongCollection, .ImmutableShortCollection, .MutableBooleanCollection, .MutableByteCollection, .MutableCharCollection, .MutableDoubleCollection, .MutableFloatCollection, .MutableIntCollection, .MutableLongCollection, .MutableShortCollection, org.eclipse.collections.api.list.FixedSizeList, .ImmutableList, .MutableList, org.eclipse.collections.api.list.primitive.BooleanList, .ByteList, .CharList, .DoubleList, .FloatList, .ImmutableBooleanList, .ImmutableByteList, .ImmutableCharList, .ImmutableDoubleList, .ImmutableFloatList, .ImmutableIntList, .ImmutableLongList, .ImmutableShortList, .IntList, .LongList, .MutableBooleanList, .MutableByteList, .MutableCharList, .MutableDoubleList, .MutableFloatList, .MutableIntList, .MutableLongList, .MutableShortList, .ShortList, org.eclipse.collections.api.ordered.OrderedIterable, .ReversibleIterable, org.eclipse.collections.api.set.ImmutableSet, .ImmutableSetIterable, .MutableSet, .MutableSetIterable, .SetIterable, .UnsortedSetIterable, org.eclipse.collections.api.set.primitive.BooleanSet, .ByteSet, .CharSet, .DoubleSet, .FloatSet, .ImmutableBooleanSet, .ImmutableByteSet, .ImmutableCharSet, .ImmutableDoubleSet, .ImmutableFloatSet, .ImmutableIntSet, .ImmutableLongSet, .ImmutableShortSet, .IntSet, .LongSet, .MutableBooleanSet, .MutableByteSet, .MutableCharSet, .MutableDoubleSet, .MutableFloatSet, .MutableIntSet, .MutableLongSet, .MutableShortSet, .ShortSet, org.eclipse.collections.api.set.sorted.ImmutableSortedSet, .MutableSortedSet, .SortedSetIterable

Field Summary

Modifier and TypeField and Description
private static final Map<Class<? extends PrimitiveIterable>, ValueDeserializer<?>>
private static final Set<Class<? extends InternalIterable<T>>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private ValueDeserializer<?>
findAnyEclipseDeserializer(JavaType type, TypeDeserializer
may be null
elementTypeDeserializer
,
ValueDeserializer<?>
may be null
elementDeserializer
)

public ValueDeserializer<?>
findBeanDeserializer(JavaType type, DeserializationConfig config, BeanDescription.Supplier beanDescRef)

Overrides default tools.jackson.databind.deser.Deserializers.findBeanDeserializer.

Method called to locate deserializer for specified value type which does not belong to any other category (not an Enum, Collection, Map, Array, reference value or tree node)

public ValueDeserializer<?>
findCollectionDeserializer(CollectionType type, DeserializationConfig config, BeanDescription.Supplier beanDescRef, TypeDeserializer elementTypeDeserializer, ValueDeserializer<?> elementDeserializer)

Overrides default tools.jackson.databind.deser.Deserializers.findCollectionDeserializer.

Method called to locate deserializer for specified java.util.Collection (List, Set etc) type.

public ValueDeserializer<?>
findCollectionLikeDeserializer(CollectionLikeType type, DeserializationConfig config, BeanDescription.Supplier beanDescRef, TypeDeserializer elementTypeDeserializer, ValueDeserializer<?> elementDeserializer)

Overrides default tools.jackson.databind.deser.Deserializers.findCollectionLikeDeserializer.

Method called to locate deserializer for specified "Collection-like" type (one that acts like java.util.Collection but does not implement it).

public ValueDeserializer<?>
findMapDeserializer(MapType type, DeserializationConfig config, BeanDescription.Supplier beanDescRef, KeyDeserializer keyDeserializer, TypeDeserializer elementTypeDeserializer, ValueDeserializer<?> elementDeserializer)

Overrides default tools.jackson.databind.deser.Deserializers.findMapDeserializer.

Method called to locate deserializer for specified java.util.Map type.

public ValueDeserializer<?>
findMapLikeDeserializer(MapLikeType type, DeserializationConfig config, BeanDescription.Supplier beanDescRef, KeyDeserializer keyDeserializer, TypeDeserializer elementTypeDeserializer, ValueDeserializer<?> elementDeserializer)

Overrides default tools.jackson.databind.deser.Deserializers.findMapLikeDeserializer.

Method called to locate deserializer for specified "Map-like" type (one that acts like java.util.Map but does not implement it).

public ValueDeserializer<?>
findReferenceDeserializer(ReferenceType refType, DeserializationConfig config, BeanDescription.Supplier beanDescRef, TypeDeserializer contentTypeDeserializer, ValueDeserializer<?> contentDeserializer)

Overrides default tools.jackson.databind.deser.Deserializers.findReferenceDeserializer.

Method called to locate deserializer for value that is of referential type,

private ValueDeserializer<?>
findReferenceDeserializer(JavaType containerType, JavaType elementType, TypeDeserializer elementTypeDeserializer, ValueDeserializer<?> elementDeserializer)

public boolean
hasDeserializerFor(DeserializationConfig config, Class<?> valueType)

Implements abstract tools.jackson.databind.deser.Deserializers.Base.hasDeserializerFor.

Implements tools.jackson.databind.deser.Deserializers.hasDeserializerFor.

Method that may be called to check whether this deserializer provider would provide deserializer for values of given type, without attempting to construct (and possibly fail in some cases) actual deserializer.

Field Detail

PRIMITIVE_DESERIALIZERSback to summary
private static final Map<Class<? extends PrimitiveIterable>, ValueDeserializer<?>> PRIMITIVE_DESERIALIZERS
REFERENCE_TYPESback to summary
private static final Set<Class<? extends InternalIterable<T>>> REFERENCE_TYPES
Annotations
@SuppressWarnings:rawtypes

Constructor Detail

EclipseCollectionsDeserializersback to summary
public EclipseCollectionsDeserializers()

Method Detail

findAnyEclipseDeserializerback to summary
private ValueDeserializer<?> findAnyEclipseDeserializer(JavaType type, TypeDeserializer elementTypeDeserializer, ValueDeserializer<?> elementDeserializer)
Parameters
elementTypeDeserializer:TypeDeserializer

may be null

elementDeserializer:ValueDeserializer<?>

may be null

findBeanDeserializerback to summary
public ValueDeserializer<?> findBeanDeserializer(JavaType type, DeserializationConfig config, BeanDescription.Supplier beanDescRef)

Overrides default tools.jackson.databind.deser.Deserializers.findBeanDeserializer.

Doc from tools.jackson.databind.deser.Deserializers.findBeanDeserializer.

Method called to locate deserializer for specified value type which does not belong to any other category (not an Enum, Collection, Map, Array, reference value or tree node)

Annotations
@Override
findCollectionDeserializerback to summary
public ValueDeserializer<?> findCollectionDeserializer(CollectionType type, DeserializationConfig config, BeanDescription.Supplier beanDescRef, TypeDeserializer elementTypeDeserializer, ValueDeserializer<?> elementDeserializer)

Overrides default tools.jackson.databind.deser.Deserializers.findCollectionDeserializer.

Doc from tools.jackson.databind.deser.Deserializers.findCollectionDeserializer.

Method called to locate deserializer for specified java.util.Collection (List, Set etc) type.

Deserializer for element type may be passed, if configured explicitly at higher level (by annotations, typically), but usually are not. Type deserializer for element is passed if one is needed based on contextual information (annotations on declared element class; or on field or method type is associated with).

Annotations
@Override
findCollectionLikeDeserializerback to summary
public ValueDeserializer<?> findCollectionLikeDeserializer(CollectionLikeType type, DeserializationConfig config, BeanDescription.Supplier beanDescRef, TypeDeserializer elementTypeDeserializer, ValueDeserializer<?> elementDeserializer)

Overrides default tools.jackson.databind.deser.Deserializers.findCollectionLikeDeserializer.

Doc from tools.jackson.databind.deser.Deserializers.findCollectionLikeDeserializer.

Method called to locate deserializer for specified "Collection-like" type (one that acts like java.util.Collection but does not implement it).

Deserializer for element type may be passed, if configured explicitly at higher level (by annotations, typically), but usually are not. Type deserializer for element is passed if one is needed based on contextual information (annotations on declared element class; or on field or method type is associated with).

Annotations
@Override
findMapDeserializerback to summary
public ValueDeserializer<?> findMapDeserializer(MapType type, DeserializationConfig config, BeanDescription.Supplier beanDescRef, KeyDeserializer keyDeserializer, TypeDeserializer elementTypeDeserializer, ValueDeserializer<?> elementDeserializer)

Overrides default tools.jackson.databind.deser.Deserializers.findMapDeserializer.

Doc from tools.jackson.databind.deser.Deserializers.findMapDeserializer.

Method called to locate deserializer for specified java.util.Map type.

Deserializer for element type may be passed, if configured explicitly at higher level (by annotations, typically), but usually are not. Type deserializer for element is passed if one is needed based on contextual information (annotations on declared element class; or on field or method type is associated with).

Similarly, a KeyDeserializer may be passed, but this is only done if there is a specific configuration override (annotations) to indicate instance to use. Otherwise null is passed, and key deserializer needs to be obtained later during resolution of map serializer constructed here.

Annotations
@Override
findMapLikeDeserializerback to summary
public ValueDeserializer<?> findMapLikeDeserializer(MapLikeType type, DeserializationConfig config, BeanDescription.Supplier beanDescRef, KeyDeserializer keyDeserializer, TypeDeserializer elementTypeDeserializer, ValueDeserializer<?> elementDeserializer)

Overrides default tools.jackson.databind.deser.Deserializers.findMapLikeDeserializer.

Doc from tools.jackson.databind.deser.Deserializers.findMapLikeDeserializer.

Method called to locate deserializer for specified "Map-like" type (one that acts like java.util.Map but does not implement it).

Deserializer for element type may be passed, if configured explicitly at higher level (by annotations, typically), but usually are not. Type deserializer for element is passed if one is needed based on contextual information (annotations on declared element class; or on field or method type is associated with).

Similarly, a KeyDeserializer may be passed, but this is only done if there is a specific configuration override (annotations) to indicate instance to use. Otherwise null is passed, and key deserializer needs to be obtained later during resolution, by deserializer constructed here.

Annotations
@Override
findReferenceDeserializerback to summary
public ValueDeserializer<?> findReferenceDeserializer(ReferenceType refType, DeserializationConfig config, BeanDescription.Supplier beanDescRef, TypeDeserializer contentTypeDeserializer, ValueDeserializer<?> contentDeserializer)

Overrides default tools.jackson.databind.deser.Deserializers.findReferenceDeserializer.

Doc from tools.jackson.databind.deser.Deserializers.findReferenceDeserializer.

Method called to locate deserializer for value that is of referential type,

Annotations
@Override
findReferenceDeserializerback to summary
private ValueDeserializer<?> findReferenceDeserializer(JavaType containerType, JavaType elementType, TypeDeserializer elementTypeDeserializer, ValueDeserializer<?> elementDeserializer)
hasDeserializerForback to summary
public boolean hasDeserializerFor(DeserializationConfig config, Class<?> valueType)

Implements abstract tools.jackson.databind.deser.Deserializers.Base.hasDeserializerFor.

Implements tools.jackson.databind.deser.Deserializers.hasDeserializerFor.

Doc from tools.jackson.databind.deser.Deserializers.hasDeserializerFor.

Method that may be called to check whether this deserializer provider would provide deserializer for values of given type, without attempting to construct (and possibly fail in some cases) actual deserializer. Mostly needed to support validation of polymorphic type ids.

Note

implementations should take care NOT to claim supporting types that they do not recognize as this could to incorrect assumption of safe support by caller.

Annotations
@Override