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)
Mutant factory method that 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.
|
MapType |
withContentValueHandler(Object h)
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.
|
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)
"Copy method" that will construct a new instance that is identical to
this instance, except that it will have specified type handler assigned.
|
MapType |
withValueHandler(Object h)
Mutant factory method that will construct a new instance that is identical to
this instance, except that it will have specified value handler assigned.
|
buildCanonicalName, equals, getContentType, getContentTypeHandler, getContentValueHandler, getErasedSignature, getGenericSignature, getKeyType, hasHandlers, isContainerType, isMapLikeType, isTrueMapType, upgradeFrom, withHandlersFrom
_bogusSuperClass, _classSignature, containedType, containedTypeCount, containedTypeName, findSuperType, findTypeParameters, getBindings, getInterfaces, getSuperClass, serialize, serializeWithType, toCanonical
containedTypeOrUnknown, forcedNarrowBy, getErasedSignature, getGenericSignature, getParameterSource, getRawClass, getReferencedType, getTypeHandler, getValueHandler, hasContentType, hasGenericTypes, hashCode, hasRawClass, hasValueHandler, isAbstract, isArrayType, isCollectionLikeType, isConcrete, isEnumType, isFinal, isInterface, isJavaLangObject, isPrimitive, isThrowable, isTypeOrSubTypeOf, useStaticType
isReferenceType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getTypeName
public 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 MapLikeType
public MapType withTypeHandler(Object h)
JavaType
withTypeHandler
in class MapLikeType
public MapType withContentTypeHandler(Object h)
JavaType
withContentTypeHandler
in class MapLikeType
public MapType withValueHandler(Object h)
JavaType
withValueHandler
in class MapLikeType
public MapType withContentValueHandler(Object h)
JavaType
withContentValueHandler
in class MapLikeType
public MapType withStaticTyping()
JavaType
withStaticTyping
in class MapLikeType
public JavaType withContentType(JavaType contentType)
JavaType
this
is returned.
If type does not have a content type (which is the case with
SimpleType
), IllegalArgumentException
will be thrown.withContentType
in class MapLikeType
public MapType withKeyType(JavaType keyType)
withKeyType
in class MapLikeType
public JavaType refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces)
JavaType
refine
in class MapLikeType
public MapType withKeyTypeHandler(Object h)
withKeyTypeHandler
in class MapLikeType
public MapType withKeyValueHandler(Object h)
withKeyValueHandler
in class MapLikeType
public String toString()
toString
in class MapLikeType
Copyright © 2017 JBoss by Red Hat. All rights reserved.