org.codehaus.jackson.map.type
Class ArrayType
java.lang.Object
org.codehaus.jackson.type.JavaType
org.codehaus.jackson.map.type.ArrayType
public final class ArrayType
- extends JavaType
Array types represent Java arrays, both primitive and object valued.
Further, Object-valued arrays can have element type of any other
legal JavaType
.
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 |
construct
public static ArrayType construct(JavaType componentType)
_narrow
protected JavaType _narrow(Class<?> subclass)
- Handling of narrowing conversions for arrays is trickier: for now,
it is not even allowed.
- Specified by:
_narrow
in class JavaType
narrowContentsBy
public JavaType narrowContentsBy(Class<?> contentClass)
- For array types, both main type and content type can be modified;
but ultimately they are interchangeable.
- Specified by:
narrowContentsBy
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.
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
toString
public String toString()
- Specified by:
toString
in class JavaType
equals
public boolean equals(Object o)
- Specified by:
equals
in class JavaType