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
public final class MapType extends MapLikeType
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JavaType_narrow(Class<?> subclass)static MapTypeconstruct(Class<?> rawType, JavaType keyT, JavaType valueT)JavaTypenarrowContentsBy(Class<?> contentClass)JavaTypenarrowKey(Class<?> keySubclass)StringtoString()JavaTypewidenContentsBy(Class<?> contentClass)JavaTypewidenKey(Class<?> keySubclass)MapTypewithContentTypeHandler(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.MapTypewithContentValueHandler(Object h)MapTypewithKeyTypeHandler(Object h)MapTypewithKeyValueHandler(Object h)MapTypewithTypeHandler(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.MapTypewithValueHandler(Object h)-
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, isTypeOrSubTypeOf, narrowBy, setValueHandler, widenBy
-
-
-
-
Method Detail
-
_narrow
protected JavaType _narrow(Class<?> subclass)
- Overrides:
_narrowin classMapLikeType
-
narrowContentsBy
public JavaType narrowContentsBy(Class<?> contentClass)
- Overrides:
narrowContentsByin classMapLikeType
-
widenContentsBy
public JavaType widenContentsBy(Class<?> contentClass)
- Overrides:
widenContentsByin classMapLikeType
-
narrowKey
public JavaType narrowKey(Class<?> keySubclass)
- Overrides:
narrowKeyin classMapLikeType
-
widenKey
public JavaType widenKey(Class<?> keySubclass)
- Overrides:
widenKeyin classMapLikeType- Since:
- 1.8
-
withTypeHandler
public MapType withTypeHandler(Object h)
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:
withTypeHandlerin classMapLikeType- Returns:
- Newly created type instance
-
withContentTypeHandler
public MapType withContentTypeHandler(Object h)
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:
withContentTypeHandlerin classMapLikeType- Returns:
- Newly created type instance
-
withValueHandler
public MapType withValueHandler(Object h)
- Overrides:
withValueHandlerin classMapLikeType
-
withContentValueHandler
public MapType withContentValueHandler(Object h)
- Overrides:
withContentValueHandlerin classMapLikeType
-
withKeyTypeHandler
public MapType withKeyTypeHandler(Object h)
- Overrides:
withKeyTypeHandlerin classMapLikeType- Since:
- 1.9
-
withKeyValueHandler
public MapType withKeyValueHandler(Object h)
- Overrides:
withKeyValueHandlerin classMapLikeType- Since:
- 1.9
-
toString
public String toString()
- Overrides:
toStringin classMapLikeType
-
-