Package org.codehaus.jackson.map.type
Class MapType
java.lang.Object
org.codehaus.jackson.type.JavaType
org.codehaus.jackson.map.type.TypeBase
org.codehaus.jackson.map.type.MapLikeType
org.codehaus.jackson.map.type.MapType
- All Implemented Interfaces:
JsonSerializable
,JsonSerializableWithType
Type that represents "true" Java Map types.
-
Field Summary
Fields inherited from class org.codehaus.jackson.map.type.MapLikeType
_keyType, _valueType
Fields inherited from class org.codehaus.jackson.type.JavaType
_class, _hashCode, _typeHandler, _valueHandler
-
Method Summary
Modifier and TypeMethodDescriptionprotected JavaType
static MapType
narrowContentsBy
(Class<?> contentClass) toString()
widenContentsBy
(Class<?> contentClass) "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."Copy method" that will construct a new instance that is identical to this instance, except that it will have specified type handler assigned.Methods inherited from class org.codehaus.jackson.map.type.MapLikeType
buildCanonicalName, containedType, containedTypeCount, containedTypeName, equals, getContentType, getErasedSignature, getGenericSignature, getKeyType, isContainerType, isMapLikeType, isTrueMapType
Methods inherited from class org.codehaus.jackson.map.type.TypeBase
_classSignature, getTypeHandler, getValueHandler, serialize, serializeWithType, toCanonical
Methods inherited from class org.codehaus.jackson.type.JavaType
_assertSubclass, _widen, forcedNarrowBy, getErasedSignature, getGenericSignature, getRawClass, hasGenericTypes, hashCode, hasRawClass, isAbstract, isArrayType, isCollectionLikeType, isConcrete, isEnumType, isFinal, isInterface, isPrimitive, isThrowable, narrowBy, setValueHandler, widenBy
-
Method Details
-
construct
-
_narrow
- Overrides:
_narrow
in classMapLikeType
-
narrowContentsBy
- Overrides:
narrowContentsBy
in classMapLikeType
-
widenContentsBy
- Overrides:
widenContentsBy
in classMapLikeType
-
narrowKey
- Overrides:
narrowKey
in classMapLikeType
-
widenKey
- Overrides:
widenKey
in classMapLikeType
- Since:
- 1.8
-
withTypeHandler
Description copied from class:JavaType
"Copy method" that will construct a new instance that is identical to this instance, except that it will have specified type handler assigned.- Overrides:
withTypeHandler
in classMapLikeType
- Returns:
- Newly created type instance
-
withContentTypeHandler
Description copied from class:JavaType
"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.- Overrides:
withContentTypeHandler
in classMapLikeType
- Returns:
- Newly created type instance
-
withValueHandler
- Overrides:
withValueHandler
in classMapLikeType
-
withContentValueHandler
- Overrides:
withContentValueHandler
in classMapLikeType
-
withKeyTypeHandler
- Overrides:
withKeyTypeHandler
in classMapLikeType
- Since:
- 1.9
-
withKeyValueHandler
- Overrides:
withKeyValueHandler
in classMapLikeType
- Since:
- 1.9
-
toString
- Overrides:
toString
in classMapLikeType
-