public final class MapType extends MapLikeType
JsonSerializable.Base_keyType, _valueType_bindings, _superClass, _superInterfaces_asStatic, _class, _hash, _typeHandler, _valueHandler| Modifier | Constructor and Description |
|---|---|
protected |
MapType(TypeBase base,
JavaType keyT,
JavaType valueT) |
| Modifier and Type | Method and Description |
|---|---|
protected JavaType |
_narrow(Class<?> subclass)
Deprecated.
|
static MapType |
construct(Class<?> rawType,
JavaType keyT,
JavaType valueT)
Deprecated.
|
static MapType |
construct(Class<?> rawType,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInts,
JavaType keyT,
JavaType valueT) |
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.
|
MapType |
withContentTypeHandler(Object h)
Internal method that should not be used by any code outside of
jackson-databind: only used internally by databind.
|
MapType |
withContentValueHandler(Object h)
Internal method that should not be used by any code outside of
jackson-databind: only used internally by databind.
|
MapType |
withKeyType(JavaType keyType) |
MapType |
withKeyTypeHandler(Object h) |
MapType |
withKeyValueHandler(Object h) |
MapType |
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.
|
MapType |
withTypeHandler(Object h)
Internal method that should not be used by any code outside of
jackson-databind: only used internally by databind.
|
MapType |
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, getKeyType, hasHandlers, isContainerType, isMapLikeType, isTrueMapType, upgradeFrom, withHandlersFrom_bogusSuperClass, _classSignature, _hasNTypeParameters, containedType, containedTypeCount, containedTypeName, findSuperType, findTypeParameters, getBindings, getInterfaces, getSuperClass, serialize, serializeWithType, toCanonicalcontainedTypeOrUnknown, forcedNarrowBy, getErasedSignature, getGenericSignature, getParameterSource, getRawClass, getReferencedType, getTypeHandler, getValueHandler, hasContentType, hasGenericTypes, hashCode, hasRawClass, hasValueHandler, isAbstract, isArrayType, isCollectionLikeType, isConcrete, isEnumImplType, isEnumType, isFinal, isInterface, isJavaLangObject, isPrimitive, isRecordType, isThrowable, isTypeOrSubTypeOf, isTypeOrSuperTypeOf, useStaticTypeisReferenceTypeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypeNamepublic static MapType construct(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType keyT, JavaType valueT)
@Deprecated public static MapType construct(Class<?> rawType, JavaType keyT, JavaType valueT)
@Deprecated protected JavaType _narrow(Class<?> subclass)
_narrow in class MapLikeTypepublic MapType 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 MapLikeTypeh - Handler to pass to new instance createdpublic MapType 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 MapLikeTypeh - Handler to pass to new instance createdpublic MapType 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 MapLikeTypeh - Handler to pass to new instance createdpublic MapType 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 MapLikeTypeh - Handler to pass to new instance createdpublic MapType withStaticTyping()
JavaTypewithStaticTyping in class MapLikeTypepublic 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 MapLikeTypepublic MapType withKeyType(JavaType keyType)
withKeyType in class MapLikeTypepublic JavaType refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces)
JavaTyperefine in class MapLikeTypepublic MapType withKeyTypeHandler(Object h)
withKeyTypeHandler in class MapLikeTypepublic MapType withKeyValueHandler(Object h)
withKeyValueHandler in class MapLikeTypepublic String toString()
toString in class MapLikeTypeCopyright © 2008–2023 FasterXML. All rights reserved.