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
public final class MapType
- extends MapLikeType
Type that represents "true" Java Map types.
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.type.JavaType |
_assertSubclass, _widen, forcedNarrowBy, getErasedSignature, getGenericSignature, getRawClass, getTypeHandler, getValueHandler, hasGenericTypes, hashCode, hasRawClass, isAbstract, isArrayType, isCollectionLikeType, isConcrete, isEnumType, isFinal, isInterface, isPrimitive, isThrowable, narrowBy, setTypeHandler, setValueHandler, widenBy |
construct
public static MapType construct(Class<?> rawType,
JavaType keyT,
JavaType valueT)
_narrow
protected JavaType _narrow(Class<?> subclass)
- Overrides:
_narrow
in class MapLikeType
narrowContentsBy
public JavaType narrowContentsBy(Class<?> contentClass)
- Overrides:
narrowContentsBy
in class MapLikeType
widenContentsBy
public JavaType widenContentsBy(Class<?> contentClass)
- Overrides:
widenContentsBy
in class MapLikeType
narrowKey
public JavaType narrowKey(Class<?> keySubclass)
- Overrides:
narrowKey
in class MapLikeType
widenKey
public JavaType widenKey(Class<?> keySubclass)
- Overrides:
widenKey
in class MapLikeType
- 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:
withTypeHandler
in class MapLikeType
- 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:
withContentTypeHandler
in class MapLikeType
- Returns:
- Newly created type instance
toString
public String toString()
- Overrides:
toString
in class MapLikeType