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, getHandler, getKeyType, getRawClass, hashCode, hasRawClass, isAbstract, isArrayType, isConcrete, isEnumType, isInterface, isPrimitive, isThrowable, narrowBy, setHandler, 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
construct
public static CollectionType construct(Class<?> rawType,
JavaType elemT)
getContentType
public JavaType getContentType()
- Description copied from class:
JavaType
- Method for accessing content type of this type, if type has
such a thing: simple types do not, structured types do
(like arrays, Collections and Maps)
- Overrides:
getContentType
in class JavaType
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