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
Type that represents Java Collection types (Lists, Sets).
-
Field Summary
Fields inherited from class org.codehaus.jackson.map.type.CollectionLikeType
_elementTypeFields inherited from class org.codehaus.jackson.type.JavaType
_class, _hashCode, _typeHandler, _valueHandler -
Method Summary
Modifier and TypeMethodDescriptionprotected JavaTypestatic CollectionTypenarrowContentsBy(Class<?> contentClass) toString()widenContentsBy(Class<?> contentClass) "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."Copy method" that will construct a new instance that is identical to this instance, except that it will have specified type handler assigned.Methods inherited from class org.codehaus.jackson.map.type.CollectionLikeType
buildCanonicalName, containedType, containedTypeCount, containedTypeName, equals, getContentType, getErasedSignature, getGenericSignature, isCollectionLikeType, isContainerType, isTrueCollectionTypeMethods inherited from class org.codehaus.jackson.map.type.TypeBase
_classSignature, getTypeHandler, getValueHandler, serialize, serializeWithType, toCanonicalMethods 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, narrowBy, setValueHandler, widenBy
-
Method Details
-
_narrow
- Overrides:
_narrowin classCollectionLikeType
-
narrowContentsBy
- Overrides:
narrowContentsByin classCollectionLikeType
-
widenContentsBy
- Overrides:
widenContentsByin classCollectionLikeType
-
construct
-
withTypeHandler
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
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
- Overrides:
withValueHandlerin classCollectionLikeType
-
withContentValueHandler
- Overrides:
withContentValueHandlerin classCollectionLikeType
-
toString
- Overrides:
toStringin classCollectionLikeType
-