Generated by
JDiff

Class org.springframework.core.convert.TypeDescriptor

Changed Constructors
TypeDescriptor(MethodParameter) Documentation changed from old to new.
Create a new type descriptor from a MethodParameter.
 

Added Methods
boolean hasAnnotation(Class<Annotation>) Determine if this type descriptor has the specified annotation.
TypeDescriptor upcast(Class<?>) Cast this TypeDescriptor to a superclass or implemented interface preserving annotations and nested type context.
 

Changed Methods
TypeDescriptor elementTypeDescriptor(Object) Documentation changed from old to new.
If this type is a Collection or an Array, creates a element TypeDescriptor from the provided collection or array element.
TypeDescriptor forObject(Object) Documentation changed from old to new.
Create a new type descriptor for an object.
Annotation getAnnotation(Class<T>) Change in return type from java.lang.annotation.Annotation to (T extends java.lang.annotation.Annotation).
Change in signature from Class<Annotation> to Class<T>.
Documentation changed from old to new.
Obtain the annotation associated with this type descriptor of the specified type.
Annotation[] getAnnotations() Documentation changed from old to new.
The annotations associated with this type descriptor, if any.
Class<?> getElementType() Documentation changed from old to new.
in Spring 3.1 in favor of {@link #getElementTypeDescriptor()}
TypeDescriptor getElementTypeDescriptor() Documentation changed from old to new.
If this type is an array, returns the array's component type.
Class<?> getMapKeyType() Documentation changed from old to new.
in Spring 3.1 in favor of {@link #getMapKeyTypeDescriptor()}
Class<?> getMapValueType() Documentation changed from old to new.
in Spring 3.1 in favor of {@link #getMapValueTypeDescriptor()}
Class<?> getObjectType() Documentation changed from old to new.
Variation of .getType() that accounts for a primitive type by returning its object wrapper type.
Class<?> getType() Documentation changed from old to new.
The type of the backing class, method parameter, field, or property described by this TypeDescriptor.
boolean isAssignableTo(TypeDescriptor) Documentation changed from old to new.
Returns true if an object of this type descriptor can be assigned to the location described by the given type descriptor.
TypeDescriptor map(Class<?>, TypeDescriptor, TypeDescriptor) Documentation changed from old to new.
Create a new type descriptor from a java.util.Map type.
TypeDescriptor narrow(Object) Documentation changed from old to new.
Narrows this TypeDescriptor by setting its type to the class of the provided value.
TypeDescriptor getMapKeyTypeDescriptor() Documentation changed from old to new.
If this type is a Map and its key type is parameterized, returns the map's key type.
TypeDescriptor getMapKeyTypeDescriptor(Object) Documentation changed from old to new.
If this type is a Map, creates a mapKey TypeDescriptor from the provided map key.
TypeDescriptor getMapValueTypeDescriptor() Documentation changed from old to new.
If this type is a Map and its value type is parameterized, returns the map's value type.
TypeDescriptor getMapValueTypeDescriptor(Object) Documentation changed from old to new.
If this type is a Map, creates a mapValue TypeDescriptor from the provided map value.
TypeDescriptor nested(Field, int) Documentation changed from old to new.
Creates a type descriptor for a nested type declared within the field.
TypeDescriptor nested(MethodParameter, int) Documentation changed from old to new.
Creates a type descriptor for a nested type declared within the method parameter.
TypeDescriptor nested(Property, int) Documentation changed from old to new.
Creates a type descriptor for a nested type declared within the property.