Package org.codehaus.jackson.map.type
Class CollectionType
- java.lang.Object
-
- org.codehaus.jackson.type.JavaType
-
- org.codehaus.jackson.map.type.TypeBase
-
- org.codehaus.jackson.map.type.CollectionLikeType
-
- org.codehaus.jackson.map.type.CollectionType
-
- All Implemented Interfaces:
JsonSerializable,JsonSerializableWithType
public final class CollectionType extends CollectionLikeType
Type that represents Java Collection types (Lists, Sets).
-
-
Field Summary
-
Fields inherited from class org.codehaus.jackson.map.type.CollectionLikeType
_elementType
-
Fields inherited from class org.codehaus.jackson.type.JavaType
_class, _hashCode, _typeHandler, _valueHandler
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JavaType_narrow(Class<?> subclass)static CollectionTypeconstruct(Class<?> rawType, JavaType elemT)JavaTypenarrowContentsBy(Class<?> contentClass)StringtoString()JavaTypewidenContentsBy(Class<?> contentClass)CollectionTypewithContentTypeHandler(Object h)"Copy method" that will construct a new instance that is identical to this instance, except that its content type will have specified type handler assigned.CollectionTypewithContentValueHandler(Object h)CollectionTypewithTypeHandler(Object h)"Copy method" that will construct a new instance that is identical to this instance, except that it will have specified type handler assigned.CollectionTypewithValueHandler(Object h)-
Methods inherited from class org.codehaus.jackson.map.type.CollectionLikeType
buildCanonicalName, containedType, containedTypeCount, containedTypeName, equals, getContentType, getErasedSignature, getGenericSignature, isCollectionLikeType, isContainerType, isTrueCollectionType
-
Methods inherited from class org.codehaus.jackson.map.type.TypeBase
_classSignature, getTypeHandler, getValueHandler, serialize, serializeWithType, toCanonical
-
Methods inherited from class org.codehaus.jackson.type.JavaType
_assertSubclass, _widen, forcedNarrowBy, getErasedSignature, getGenericSignature, getKeyType, getRawClass, hasGenericTypes, hashCode, hasRawClass, isAbstract, isArrayType, isConcrete, isEnumType, isFinal, isInterface, isMapLikeType, isPrimitive, isThrowable, isTypeOrSubTypeOf, narrowBy, setValueHandler, widenBy
-
-
-
-
Method Detail
-
_narrow
protected JavaType _narrow(Class<?> subclass)
- Overrides:
_narrowin classCollectionLikeType
-
narrowContentsBy
public JavaType narrowContentsBy(Class<?> contentClass)
- Overrides:
narrowContentsByin classCollectionLikeType
-
widenContentsBy
public JavaType widenContentsBy(Class<?> contentClass)
- Overrides:
widenContentsByin classCollectionLikeType
-
construct
public static CollectionType construct(Class<?> rawType, JavaType elemT)
-
withTypeHandler
public CollectionType withTypeHandler(Object h)
Description copied from class:JavaType"Copy method" that will construct a new instance that is identical to this instance, except that it will have specified type handler assigned.- Overrides:
withTypeHandlerin classCollectionLikeType- Returns:
- Newly created type instance
-
withContentTypeHandler
public CollectionType withContentTypeHandler(Object h)
Description copied from class:JavaType"Copy method" that will construct a new instance that is identical to this instance, except that its content type will have specified type handler assigned.- Overrides:
withContentTypeHandlerin classCollectionLikeType- Returns:
- Newly created type instance
-
withValueHandler
public CollectionType withValueHandler(Object h)
- Overrides:
withValueHandlerin classCollectionLikeType
-
withContentValueHandler
public CollectionType withContentValueHandler(Object h)
- Overrides:
withContentValueHandlerin classCollectionLikeType
-
toString
public String toString()
- Overrides:
toStringin classCollectionLikeType
-
-