public final class CollectionType extends CollectionLikeType
JsonSerializable.Base_elementType_bindings, _superClass, _superInterfaces_asStatic, _class, _hash, _typeHandler, _valueHandler| Modifier | Constructor and Description |
|---|---|
protected |
CollectionType(TypeBase base,
JavaType elemT) |
| Modifier and Type | Method and Description |
|---|---|
protected JavaType |
_narrow(Class<?> subclass)
Deprecated.
|
static CollectionType |
construct(Class<?> rawType,
JavaType elemT)
Deprecated.
Since 2.7, remove from 2.9
|
static CollectionType |
construct(Class<?> rawType,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInts,
JavaType elemT) |
JavaType |
refine(Class<?> rawType,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInterfaces)
Mutant factory method that will try to create and return a sub-type instance
for known parameterized types; for other types will return `null` to indicate
that no just refinement makes necessary sense, without trying to detect
special status through implemented interfaces.
|
String |
toString() |
JavaType |
withContentType(JavaType contentType)
Mutant factory method that may be called on structured types
that have a so-called content type (element of arrays, value type
of Maps, referenced type of referential types),
and will construct a new instance that is identical to
this instance, except that it has specified content type, instead of current
one.
|
CollectionType |
withContentTypeHandler(Object h)
Internal method that should not be used by any code outside of
jackson-databind: only used internally by databind.
|
CollectionType |
withContentValueHandler(Object h)
Internal method that should not be used by any code outside of
jackson-databind: only used internally by databind.
|
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)
Internal method that should not be used by any code outside of
jackson-databind: only used internally by databind.
|
CollectionType |
withValueHandler(Object h)
Internal method that should not be used by any code outside of
jackson-databind: only used internally by databind.
|
buildCanonicalName, equals, getContentType, getContentTypeHandler, getContentValueHandler, getErasedSignature, getGenericSignature, hasHandlers, isCollectionLikeType, isContainerType, isTrueCollectionType, upgradeFrom, withHandlersFrom_bogusSuperClass, _classSignature, _hasNTypeParameters, containedType, containedTypeCount, containedTypeName, findSuperType, findTypeParameters, getBindings, getInterfaces, getSuperClass, serialize, serializeWithType, toCanonicalcontainedTypeOrUnknown, forcedNarrowBy, getErasedSignature, getGenericSignature, getKeyType, getParameterSource, getRawClass, getReferencedType, getTypeHandler, getValueHandler, hasContentType, hasGenericTypes, hashCode, hasRawClass, hasValueHandler, isAbstract, isArrayType, isConcrete, isEnumImplType, isEnumType, isFinal, isInterface, isJavaLangObject, isMapLikeType, isPrimitive, isRecordType, isThrowable, isTypeOrSubTypeOf, isTypeOrSuperTypeOf, useStaticTypeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypeNamepublic static CollectionType construct(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType elemT)
@Deprecated public static CollectionType construct(Class<?> rawType, JavaType elemT)
@Deprecated protected JavaType _narrow(Class<?> subclass)
_narrow in class CollectionLikeTypepublic JavaType withContentType(JavaType contentType)
JavaTypethis is returned.
If type does not have a content type (which is the case with
SimpleType), IllegalArgumentException
will be thrown.withContentType in class CollectionLikeTypepublic CollectionType withTypeHandler(Object h)
JavaTypeThis mutant factory method will construct a new instance that is identical to this instance, except that it will have specified type handler assigned.
withTypeHandler in class CollectionLikeTypeh - Handler to pass to new instance createdpublic CollectionType withContentTypeHandler(Object h)
JavaTypeThis mutant factory method will construct a new instance that is identical to this instance, except that it will have specified content type (element type for arrays, value type for Maps and so forth) handler assigned.
withContentTypeHandler in class CollectionLikeTypeh - Handler to pass to new instance createdpublic CollectionType withValueHandler(Object h)
JavaTypeThis mutant factory method will construct a new instance that is identical to this instance, except that it will have specified value handler assigned.
withValueHandler in class CollectionLikeTypeh - Handler to pass to new instance createdpublic CollectionType withContentValueHandler(Object h)
JavaTypeMutant factory method that will construct a new instance that is identical to this instance, except that it will have specified content value handler assigned.
withContentValueHandler in class CollectionLikeTypeh - Handler to pass to new instance createdpublic CollectionType withStaticTyping()
JavaTypewithStaticTyping in class CollectionLikeTypepublic JavaType refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces)
JavaTyperefine in class CollectionLikeTypepublic String toString()
toString in class CollectionLikeTypeCopyright © 2008–2023 FasterXML. All rights reserved.