java.util.Map , but that do not
have enough introspection functionality to allow for some level of generic
handling. This specifically allows framework to check for configuration and
annotation settings used for Map types, and pass these to custom handlers
that may be more familiar with actual type.
| Modifier and Type | Field and Description |
|---|---|
| protected final JavaType | _keyType
Type of keys of Map. |
| protected final JavaType | _valueType
Type of values of Map. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected | MapLikeType(Class<?> mapType, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType keyT, JavaType valueT, Object valueHandler, Object typeHandler, boolean asStatic)
|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected String | |
| public static MapLikeType | |
| public boolean | equals(Object
the reference object with which to compare. o)Implements abstract com. |
| public JavaType | getContentType()
Overrides com. |
| public Object | getContentTypeHandler()
Overrides com. |
| public Object | getContentValueHandler()
Overrides com. |
| public StringBuilder | getErasedSignature(StringBuilder
StringBuilder to append signature to sb)Implements abstract com. |
| public StringBuilder | getGenericSignature(StringBuilder
StringBuilder to append signature to sb)Implements abstract com. |
| public JavaType | getKeyType()
Overrides com. |
| public boolean | hasHandlers()
Overrides com. getValueHandler or getTypeHandler();
that is, are there any non-standard handlers associated with this
type object.
|
| public boolean | |
| public boolean | |
| public boolean | isTrueMapType()
Deprecated
Since 2.12 just use instanceof
Method that can be used for checking whether this type is a "real"
Collection type; meaning whether it represents a parameterized subtype of
java. or just something that acts like one.
|
| public JavaType | refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces)
Implements abstract com. |
| public String | toString()
Implements abstract com. |
| public static MapLikeType | upgradeFrom(JavaType baseType, JavaType keyT, JavaType valueT)
Factory method that can be used to "upgrade" a basic type into
collection-like one; usually done via |
| public JavaType | withContentType(JavaType contentType)
Implements abstract com. |
| public MapLikeType | withContentTypeHandler(Object
Handler to pass to new instance created h)Implements abstract com. |
| public MapLikeType | withContentValueHandler(Object
Handler to pass to new instance created h)Implements abstract com. |
| public JavaType | withHandlersFrom(JavaType src)
Overrides com. |
| public MapLikeType | |
| public MapLikeType | |
| public MapLikeType | |
| public MapLikeType | withStaticTyping()
Implements abstract com. |
| public MapLikeType | withTypeHandler(Object
Handler to pass to new instance created h)Implements abstract com. |
| public MapLikeType | withValueHandler(Object
Handler to pass to new instance created h)Implements abstract com. |
| _keyType | back to summary |
|---|---|
| protected final JavaType _keyType Type of keys of Map. | |
| _valueType | back to summary |
|---|---|
| protected final JavaType _valueType Type of values of Map. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| MapLikeType | back to summary |
|---|---|
| protected MapLikeType(Class<?> mapType, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType keyT, JavaType valueT, Object valueHandler, Object typeHandler, boolean asStatic) | |
| MapLikeType | back to summary |
|---|---|
protected MapLikeType(TypeBase base, JavaType keyT, JavaType valueT)
| |
| buildCanonicalName | back to summary |
|---|---|
| protected String buildCanonicalName() Overrides com.
| |
| construct | back to summary |
|---|---|
| public static MapLikeType construct(Class<?> rawType, JavaType keyT, JavaType valueT)
Deprecated
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Implements abstract com. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getContentType | back to summary |
|---|---|
| public JavaType getContentType() Overrides com. Doc from com. Method for accessing content type of this type, if type has such a thing: simple types do not, structured types do (like arrays, Collections and Maps) | |
| getContentTypeHandler | back to summary |
|---|---|
| public Object getContentTypeHandler() Overrides com. Doc from com. Internal accessor that should not be used by any code outside of jackson-databind: only used internally by databind. May be removed from Jackson 3.0. | |
| getContentValueHandler | back to summary |
|---|---|
| public Object getContentValueHandler() Overrides com. Doc from com. Internal accessor that should not be used by any code outside of jackson-databind: only used internally by databind. May be removed from Jackson 3.0. | |
| getErasedSignature | back to summary |
|---|---|
| public StringBuilder getErasedSignature(StringBuilder sb) Implements abstract com. Doc from com. Method for accessing signature without generic type information, in form compatible with all versions of JVM, and specifically used for type descriptions when generating byte code.
| |
| getGenericSignature | back to summary |
|---|---|
| public StringBuilder getGenericSignature(StringBuilder sb) Implements abstract com.
| |
| getKeyType | back to summary |
|---|---|
| public JavaType getKeyType() Overrides com. Doc from com. Method for accessing key type for this type, assuming type has such a concept (only Map types do) | |
| hasHandlers | back to summary |
|---|---|
| public boolean hasHandlers() Overrides com. Doc from com. Helper method that checks whether this type, or its (optional) key
or content type has
| |
| isContainerType | back to summary |
|---|---|
| public boolean isContainerType() Implements abstract com.
| |
| isMapLikeType | back to summary |
|---|---|
| public boolean isMapLikeType() Overrides com.
| |
| isTrueMapType | back to summary |
|---|---|
| public boolean isTrueMapType()
Deprecated Since 2.12 just use instanceof Method that can be used for checking whether this type is a "real"
Collection type; meaning whether it represents a parameterized subtype of
| |
| refine | back to summary |
|---|---|
| public JavaType refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) Implements abstract com. Doc from com. 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.
| |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract com. Doc from java. Returns a string representation of the object. | |
| upgradeFrom | back to summary |
|---|---|
| public static MapLikeType upgradeFrom(JavaType baseType, JavaType keyT, JavaType valueT) Factory method that can be used to "upgrade" a basic type into
collection-like one; usually done via
| |
| withContentType | back to summary |
|---|---|
| public JavaType withContentType(JavaType contentType) Implements abstract com. Doc from com. 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, | |
| withContentTypeHandler | back to summary |
|---|---|
| public MapLikeType withContentTypeHandler(Object h) Implements abstract com. Doc from com. 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.
| |
| withContentValueHandler | back to summary |
|---|---|
| public MapLikeType withContentValueHandler(Object h) Implements abstract com. Doc from com. 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.
| |
| withHandlersFrom | back to summary |
|---|---|
| public JavaType withHandlersFrom(JavaType src) Overrides com. Doc from com. 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 try to copy handlers that the specified source type instance had, if any; this must be done recursively where necessary (as content types may be structured).
| |
| withKeyType | back to summary |
|---|---|
public MapLikeType withKeyType(JavaType keyType)
| |
| withKeyTypeHandler | back to summary |
|---|---|
| public MapLikeType withKeyTypeHandler(Object h) | |
| withKeyValueHandler | back to summary |
|---|---|
| public MapLikeType withKeyValueHandler(Object h) | |
| withStaticTyping | back to summary |
|---|---|
| public MapLikeType withStaticTyping() Implements abstract com. Doc from com. 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).
| |
| withTypeHandler | back to summary |
|---|---|
| public MapLikeType withTypeHandler(Object h) Implements abstract com. Doc from com. 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.
| |
| withValueHandler | back to summary |
|---|---|
| public MapLikeType withValueHandler(Object h) Implements abstract com. Doc from com. 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.
| |