Top Description Fields Constructors Methods
tools.jackson.databind.type

public final Class MapType

extends MapLikeType
Class Inheritance
Imports
tools.jackson.databind.JavaType

Type that represents "true" Java Map types.

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from tools.jackson.databind.type.MapLikeType:
_keyType_valueType

Constructor Summary

AccessConstructor and Description
private
MapType(Class<?> mapType, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType keyT, JavaType valueT, Object valueHandler, Object typeHandler, boolean asStatic)

protected
MapType(TypeBase base, JavaType keyT, JavaType valueT)

Method Summary

Modifier and TypeMethod and Description
public static MapType
construct(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType keyT, JavaType valueT)

public JavaType
refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces)

Overrides tools.jackson.databind.type.MapLikeType.refine.

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.

public String
toString()

Overrides tools.jackson.databind.type.MapLikeType.toString.

Returns a string representation of the object.

public JavaType
withContentType(JavaType contentType)

Overrides tools.jackson.databind.type.MapLikeType.withContentType.

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.

public MapType
withContentTypeHandler(Object h)

Overrides tools.jackson.databind.type.MapLikeType.withContentTypeHandler.

Internal method that should not be used by any code outside of jackson-databind: only used internally by databind.

public MapType
withContentValueHandler(Object h)

Overrides tools.jackson.databind.type.MapLikeType.withContentValueHandler.

Internal method that should not be used by any code outside of jackson-databind: only used internally by databind.

public MapType
public MapType
public MapType
public MapType
withStaticTyping()

Overrides tools.jackson.databind.type.MapLikeType.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.

public MapType
withTypeHandler(Object h)

Overrides tools.jackson.databind.type.MapLikeType.withTypeHandler.

Internal method that should not be used by any code outside of jackson-databind: only used internally by databind.

public MapType
withValueHandler(Object h)

Overrides tools.jackson.databind.type.MapLikeType.withValueHandler.

Internal method that should not be used by any code outside of jackson-databind: only used internally by databind.

Inherited from tools.jackson.databind.type.MapLikeType:
buildCanonicalNameequalsgetContentTypegetContentTypeHandlergetContentValueHandlergetErasedSignaturegetGenericSignaturegetKeyTypehasHandlersisContainerTypeisMapLikeTypeupgradeFromwithHandlersFrom

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides tools.jackson.databind.type.MapLikeType.serialVersionUID.

Constructor Detail

MapTypeback to summary
private MapType(Class<?> mapType, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType keyT, JavaType valueT, Object valueHandler, Object typeHandler, boolean asStatic)
MapTypeback to summary
protected MapType(TypeBase base, JavaType keyT, JavaType valueT)

Method Detail

constructback to summary
public static MapType construct(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType keyT, JavaType valueT)
refineback to summary
public JavaType refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces)

Overrides tools.jackson.databind.type.MapLikeType.refine.

Doc from tools.jackson.databind.JavaType.refine.

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.

Annotations
@Override
toStringback to summary
public String toString()

Overrides tools.jackson.databind.type.MapLikeType.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
withContentTypeback to summary
public JavaType withContentType(JavaType contentType)

Overrides tools.jackson.databind.type.MapLikeType.withContentType.

Doc from tools.jackson.databind.JavaType.withContentType.

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. If content type is already set to given type, this is returned. If type does not have a content type (which is the case with SimpleType), IllegalArgumentException will be thrown.

Annotations
@Override
withContentTypeHandlerback to summary
public MapType withContentTypeHandler(Object h)

Overrides tools.jackson.databind.type.MapLikeType.withContentTypeHandler.

Doc from tools.jackson.databind.JavaType.withContentTypeHandler.

Internal method that should not be used by any code outside of jackson-databind: only used internally by databind. May be removed from Jackson 3.0.

This 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.

Annotations
@Override
withContentValueHandlerback to summary
public MapType withContentValueHandler(Object h)

Overrides tools.jackson.databind.type.MapLikeType.withContentValueHandler.

Doc from tools.jackson.databind.JavaType.withContentValueHandler.

Internal method that should not be used by any code outside of jackson-databind: only used internally by databind. May be removed from Jackson 3.0.

Mutant factory method that will construct a new instance that is identical to this instance, except that it will have specified content value handler assigned.

Annotations
@Override
withKeyTypeback to summary
public MapType withKeyType(JavaType keyType)

Overrides tools.jackson.databind.type.MapLikeType.withKeyType.

Annotations
@Override
withKeyTypeHandlerback to summary
public MapType withKeyTypeHandler(Object h)

Overrides tools.jackson.databind.type.MapLikeType.withKeyTypeHandler.

Annotations
@Override
withKeyValueHandlerback to summary
public MapType withKeyValueHandler(Object h)

Overrides tools.jackson.databind.type.MapLikeType.withKeyValueHandler.

Annotations
@Override
withStaticTypingback to summary
public MapType withStaticTyping()

Overrides tools.jackson.databind.type.MapLikeType.withStaticTyping.

Doc from tools.jackson.databind.JavaType.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. The main use case is to allow forcing of specific root value serialization type, and specifically in resolving serializers for contained types (element types for arrays, Collections and Maps).

Annotations
@Override
withTypeHandlerback to summary
public MapType withTypeHandler(Object h)

Overrides tools.jackson.databind.type.MapLikeType.withTypeHandler.

Doc from tools.jackson.databind.JavaType.withTypeHandler.

Internal method that should not be used by any code outside of jackson-databind: only used internally by databind. May be removed from Jackson 3.0.

This mutant factory method will construct a new instance that is identical to this instance, except that it will have specified type handler assigned.

Annotations
@Override
withValueHandlerback to summary
public MapType withValueHandler(Object h)

Overrides tools.jackson.databind.type.MapLikeType.withValueHandler.

Doc from tools.jackson.databind.JavaType.withValueHandler.

Internal method that should not be used by any code outside of jackson-databind: only used internally by databind. May be removed from Jackson 3.0.

This mutant factory method will construct a new instance that is identical to this instance, except that it will have specified value handler assigned.

Annotations
@Override