org.codehaus.jackson.map.type
Class CollectionType
java.lang.Object
org.codehaus.jackson.type.JavaType
org.codehaus.jackson.map.type.CollectionType
public final class CollectionType
- extends JavaType
Type that represents Java Collection types (Lists, Sets).
| Methods inherited from class org.codehaus.jackson.type.JavaType |
_assertSubclass, _widen, findVariableType, getRawClass, hashCode, hasRawClass, isAbstract, isArrayType, isEnumType, isInterface, isPrimitive, narrowBy, widenBy |
_narrow
protected JavaType _narrow(Class<?> subclass)
- Specified by:
_narrow in class JavaType
narrowContentsBy
public JavaType narrowContentsBy(Class<?> contentClass)
- Specified by:
narrowContentsBy in class JavaType
untyped
public static CollectionType untyped(Class<?> rawType,
JavaType elemT)
- Method called to construct a partially typed instance. Partial
means that we can not determine component types, due to type
erasure. Resulting type may or may not be acceptable to caller.
typed
public static CollectionType typed(Class<?> rawType,
JavaType elemT)
isFullyTyped
public boolean isFullyTyped()
- Description copied from class:
JavaType
- Method that can be used to check whether type described is
fully typed, regarding the way JavaTypes are used for
deserialization. For this to be true, all Collection and Map
types must have proper element/value/key type information,
and can not be plain classes.
- Specified by:
isFullyTyped in class JavaType
getElementType
public JavaType getElementType()
isContainerType
public boolean isContainerType()
- Specified by:
isContainerType in class JavaType
- Returns:
- True if type represented is a container type; this includes
array, Map and Collection types.
toString
public String toString()
- Specified by:
toString in class JavaType
equals
public boolean equals(Object o)
- Specified by:
equals in class JavaType