public final class MapType extends MapLikeType
_keyType, _valueType
_asStatic, _class, _hash, _typeHandler, _valueHandler
Modifier and Type | Method and Description |
---|---|
protected JavaType |
_narrow(Class<?> subclass) |
static MapType |
construct(Class<?> rawType,
JavaType keyT,
JavaType valueT) |
JavaType |
narrowContentsBy(Class<?> contentClass) |
JavaType |
narrowKey(Class<?> keySubclass) |
String |
toString() |
JavaType |
widenContentsBy(Class<?> contentClass) |
JavaType |
widenKey(Class<?> keySubclass) |
MapType |
withContentTypeHandler(Object h)
"Copy method" that will construct a new instance that is identical to
this instance, except that its content type will have specified
type handler assigned.
|
MapType |
withContentValueHandler(Object h)
"Copy method" that will construct a new instance that is identical to
this instance, except that it will have specified content value handler assigned.
|
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)
"Copy method" that will construct a new instance that is identical to
this instance, except that it will have specified value handler assigned.
|
buildCanonicalName, containedType, containedTypeCount, containedTypeName, equals, getContentType, getErasedSignature, getGenericSignature, getKeyType, isContainerType, isMapLikeType, isTrueMapType
_classSignature, getTypeHandler, getValueHandler, serialize, serializeWithType, toCanonical
_assertSubclass, _widen, forcedNarrowBy, getErasedSignature, getGenericSignature, getRawClass, hasGenericTypes, hashCode, hasRawClass, isAbstract, isArrayType, isCollectionLikeType, isConcrete, isEnumType, isFinal, isInterface, isPrimitive, isThrowable, narrowBy, useStaticType, widenBy
protected JavaType _narrow(Class<?> subclass)
_narrow
in class MapLikeType
public JavaType narrowContentsBy(Class<?> contentClass)
narrowContentsBy
in class MapLikeType
public JavaType widenContentsBy(Class<?> contentClass)
widenContentsBy
in class MapLikeType
public JavaType narrowKey(Class<?> keySubclass)
narrowKey
in class MapLikeType
public JavaType widenKey(Class<?> keySubclass)
widenKey
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 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 © 2014 FasterXML. All Rights Reserved.