public final class CollectionType extends CollectionLikeType
_elementType
_asStatic, _class, _hash, _typeHandler, _valueHandler
Modifier and Type | Method and Description |
---|---|
protected JavaType |
_narrow(Class<?> subclass) |
static CollectionType |
construct(Class<?> rawType,
JavaType elemT) |
JavaType |
narrowContentsBy(Class<?> contentClass) |
String |
toString() |
JavaType |
widenContentsBy(Class<?> contentClass) |
CollectionType |
withContentTypeHandler(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.
|
CollectionType |
withContentValueHandler(Object h)
"Copy method" that will construct a new instance that is identical to
this instance, except that it will have specified content value handler assigned.
|
CollectionType |
withStaticTyping()
Method that can be called to get a type instance that indicates
that values of the type should be handled using "static typing" for purposes
of serialization (as opposed to "dynamic" aka runtime typing):
meaning that no runtime information is needed for determining serializers to use.
|
CollectionType |
withTypeHandler(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.
|
CollectionType |
withValueHandler(Object h)
"Copy method" that will construct a new instance that is identical to
this instance, except that it will have specified value handler assigned.
|
buildCanonicalName, containedType, containedTypeCount, containedTypeName, equals, getContentType, getErasedSignature, getGenericSignature, isCollectionLikeType, isContainerType, isTrueCollectionType
_classSignature, getTypeHandler, getValueHandler, serialize, serializeWithType, toCanonical
_assertSubclass, _widen, forcedNarrowBy, getErasedSignature, getGenericSignature, getKeyType, getRawClass, hasGenericTypes, hashCode, hasRawClass, isAbstract, isArrayType, isConcrete, isEnumType, isFinal, isInterface, isMapLikeType, isPrimitive, isThrowable, narrowBy, useStaticType, widenBy
protected JavaType _narrow(Class<?> subclass)
_narrow
in class CollectionLikeType
public JavaType narrowContentsBy(Class<?> contentClass)
narrowContentsBy
in class CollectionLikeType
public JavaType widenContentsBy(Class<?> contentClass)
widenContentsBy
in class CollectionLikeType
public static CollectionType construct(Class<?> rawType, JavaType elemT)
public CollectionType withTypeHandler(Object h)
JavaType
withTypeHandler
in class CollectionLikeType
public CollectionType withContentTypeHandler(Object h)
JavaType
withContentTypeHandler
in class CollectionLikeType
public CollectionType withValueHandler(Object h)
JavaType
withValueHandler
in class CollectionLikeType
public CollectionType withContentValueHandler(Object h)
JavaType
withContentValueHandler
in class CollectionLikeType
public CollectionType withStaticTyping()
JavaType
withStaticTyping
in class CollectionLikeType
public String toString()
toString
in class CollectionLikeType
Copyright © 2014-2015 FasterXML. All Rights Reserved.