|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.jackson.type.JavaType
org.codehaus.jackson.map.type.TypeBase
org.codehaus.jackson.map.type.CollectionType
public final class CollectionType
Type that represents Java Collection types (Lists, Sets).
Field Summary |
---|
Fields inherited from class org.codehaus.jackson.type.JavaType |
---|
_class, _hashCode, _typeHandler, _valueHandler |
Method Summary | |
---|---|
protected JavaType |
_narrow(Class<?> subclass)
|
protected String |
buildCanonicalName()
|
static CollectionType |
construct(Class<?> rawType,
JavaType elemT)
|
JavaType |
containedType(int index)
Method for accessing definitions of contained ("child") types. |
int |
containedTypeCount()
Method for checking how many contained types this type has. |
String |
containedTypeName(int index)
Not sure if we should count on this, but type names for core interfaces use "E" for element type |
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.map.type.TypeBase |
---|
copyHandlers, toCanonical |
Methods inherited from class org.codehaus.jackson.type.JavaType |
---|
_assertSubclass, _widen, forcedNarrowBy, getKeyType, getRawClass, getTypeHandler, getValueHandler, hashCode, hasRawClass, isAbstract, isArrayType, isConcrete, isEnumType, isFinal, isInterface, isPrimitive, isThrowable, narrowBy, setTypeHandler, setValueHandler, widenBy |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
protected JavaType _narrow(Class<?> subclass)
_narrow
in class JavaType
public JavaType narrowContentsBy(Class<?> contentClass)
narrowContentsBy
in class JavaType
public static CollectionType construct(Class<?> rawType, JavaType elemT)
protected String buildCanonicalName()
buildCanonicalName
in class TypeBase
public JavaType getContentType()
JavaType
getContentType
in class JavaType
public int containedTypeCount()
JavaType
containedTypeCount
in class JavaType
public JavaType containedType(int index)
JavaType
containedType
in class JavaType
index
- Index of contained type to return
public String containedTypeName(int index)
containedTypeName
in class JavaType
index
- Index of contained type to return
public boolean isContainerType()
isContainerType
in class JavaType
public String toString()
toString
in class JavaType
public boolean equals(Object o)
equals
in class JavaType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |