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, widenByprotected JavaType _narrow(Class<?> subclass)
_narrow in class CollectionLikeTypepublic JavaType narrowContentsBy(Class<?> contentClass)
narrowContentsBy in class CollectionLikeTypepublic JavaType widenContentsBy(Class<?> contentClass)
widenContentsBy in class CollectionLikeTypepublic static CollectionType construct(Class<?> rawType, JavaType elemT)
public CollectionType withTypeHandler(Object h)
JavaTypewithTypeHandler in class CollectionLikeTypepublic CollectionType withContentTypeHandler(Object h)
JavaTypewithContentTypeHandler in class CollectionLikeTypepublic CollectionType withValueHandler(Object h)
JavaTypewithValueHandler in class CollectionLikeTypepublic CollectionType withContentValueHandler(Object h)
JavaTypewithContentValueHandler in class CollectionLikeTypepublic CollectionType withStaticTyping()
JavaTypewithStaticTyping in class CollectionLikeTypepublic String toString()
toString in class CollectionLikeTypeCopyright © 2014 FasterXML. All Rights Reserved.