Class JavaUtilCollectionsDeserializers
- java.lang.Object
-
- com.fasterxml.jackson.databind.deser.impl.JavaUtilCollectionsDeserializers
-
public abstract class JavaUtilCollectionsDeserializers extends java.lang.Object
Helper class used to contain logic for deserializing "special" containers fromjava.util.Collections
andjava.util.Arrays
. This is needed because they do not have usable no-arguments constructor: however, are easy enough to deserialize using delegating deserializer.- Since:
- 2.9.4
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
JavaUtilCollectionsDeserializers.JavaUtilCollectionsConverter
Implementation used for converting from various generic container types (Set
,List
,Map
) into more specific implementations accessible viajava.util.Collections
.
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.Class<?>
CLASS_AS_ARRAYS_LIST
private static java.lang.Class<?>
CLASS_SINGLETON_LIST
private static java.lang.Class<?>
CLASS_SINGLETON_MAP
private static java.lang.Class<?>
CLASS_SINGLETON_SET
private static java.lang.Class<?>
CLASS_UNMODIFIABLE_LIST
private static java.lang.Class<?>
CLASS_UNMODIFIABLE_LIST_ALIAS
private static java.lang.Class<?>
CLASS_UNMODIFIABLE_MAP
private static java.lang.Class<?>
CLASS_UNMODIFIABLE_SET
static int
TYPE_AS_LIST
private static int
TYPE_SINGLETON_LIST
private static int
TYPE_SINGLETON_MAP
private static int
TYPE_SINGLETON_SET
private static int
TYPE_UNMODIFIABLE_LIST
private static int
TYPE_UNMODIFIABLE_MAP
private static int
TYPE_UNMODIFIABLE_SET
-
Constructor Summary
Constructors Constructor Description JavaUtilCollectionsDeserializers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static JavaUtilCollectionsDeserializers.JavaUtilCollectionsConverter
converter(int kind, JavaType concreteType, java.lang.Class<?> rawSuper)
static JsonDeserializer<?>
findForCollection(DeserializationContext ctxt, JavaType type)
static JsonDeserializer<?>
findForMap(DeserializationContext ctxt, JavaType type)
-
-
-
Field Detail
-
TYPE_SINGLETON_SET
private static final int TYPE_SINGLETON_SET
- See Also:
- Constant Field Values
-
TYPE_SINGLETON_LIST
private static final int TYPE_SINGLETON_LIST
- See Also:
- Constant Field Values
-
TYPE_SINGLETON_MAP
private static final int TYPE_SINGLETON_MAP
- See Also:
- Constant Field Values
-
TYPE_UNMODIFIABLE_SET
private static final int TYPE_UNMODIFIABLE_SET
- See Also:
- Constant Field Values
-
TYPE_UNMODIFIABLE_LIST
private static final int TYPE_UNMODIFIABLE_LIST
- See Also:
- Constant Field Values
-
TYPE_UNMODIFIABLE_MAP
private static final int TYPE_UNMODIFIABLE_MAP
- See Also:
- Constant Field Values
-
TYPE_AS_LIST
public static final int TYPE_AS_LIST
- See Also:
- Constant Field Values
-
CLASS_AS_ARRAYS_LIST
private static final java.lang.Class<?> CLASS_AS_ARRAYS_LIST
-
CLASS_SINGLETON_SET
private static final java.lang.Class<?> CLASS_SINGLETON_SET
-
CLASS_SINGLETON_LIST
private static final java.lang.Class<?> CLASS_SINGLETON_LIST
-
CLASS_SINGLETON_MAP
private static final java.lang.Class<?> CLASS_SINGLETON_MAP
-
CLASS_UNMODIFIABLE_SET
private static final java.lang.Class<?> CLASS_UNMODIFIABLE_SET
-
CLASS_UNMODIFIABLE_LIST
private static final java.lang.Class<?> CLASS_UNMODIFIABLE_LIST
-
CLASS_UNMODIFIABLE_LIST_ALIAS
private static final java.lang.Class<?> CLASS_UNMODIFIABLE_LIST_ALIAS
-
CLASS_UNMODIFIABLE_MAP
private static final java.lang.Class<?> CLASS_UNMODIFIABLE_MAP
-
-
Method Detail
-
findForCollection
public static JsonDeserializer<?> findForCollection(DeserializationContext ctxt, JavaType type) throws JsonMappingException
- Throws:
JsonMappingException
-
findForMap
public static JsonDeserializer<?> findForMap(DeserializationContext ctxt, JavaType type) throws JsonMappingException
- Throws:
JsonMappingException
-
converter
static JavaUtilCollectionsDeserializers.JavaUtilCollectionsConverter converter(int kind, JavaType concreteType, java.lang.Class<?> rawSuper)
-
-