org.codehaus.jackson.map.type
Class CollectionType

java.lang.Object
  extended by org.codehaus.jackson.type.JavaType
      extended by org.codehaus.jackson.map.type.CollectionType

public final class CollectionType
extends JavaType

Type that represents Java Collection types (Lists, Sets).


Field Summary
 
Fields inherited from class org.codehaus.jackson.type.JavaType
_class, _hashCode
 
Method Summary
protected  JavaType _narrow(Class<?> subclass)
           
static CollectionType construct(Class<?> rawType, JavaType elemT)
           
 boolean equals(Object o)
           
 JavaType getContentType()
          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)
 boolean isContainerType()
           
 JavaType narrowContentsBy(Class<?> contentClass)
           
 String toString()
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

_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