|
|
|
@ -37,7 +37,7 @@ import org.springframework.util.ObjectUtils;
@@ -37,7 +37,7 @@ import org.springframework.util.ObjectUtils;
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Contextual descriptor about a type to convert from or to. |
|
|
|
|
* Capable of representing arrays and generic collection types. |
|
|
|
|
* <p>Capable of representing arrays and generic collection types. |
|
|
|
|
* |
|
|
|
|
* @author Keith Donald |
|
|
|
|
* @author Andy Clement |
|
|
|
@ -345,9 +345,9 @@ public class TypeDescriptor implements Serializable {
@@ -345,9 +345,9 @@ public class TypeDescriptor implements Serializable {
|
|
|
|
|
* from the provided collection or array element. |
|
|
|
|
* <p>Narrows the {@link #getElementTypeDescriptor() elementType} property to the class |
|
|
|
|
* of the provided collection or array element. For example, if this describes a |
|
|
|
|
* {@code java.util.List<java.lang.Number<} and the element argument is an |
|
|
|
|
* {@code java.util.List<java.lang.Number>} and the element argument is a |
|
|
|
|
* {@code java.lang.Integer}, the returned TypeDescriptor will be {@code java.lang.Integer}. |
|
|
|
|
* If this describes a {@code java.util.List<?>} and the element argument is an |
|
|
|
|
* If this describes a {@code java.util.List<?>} and the element argument is a |
|
|
|
|
* {@code java.lang.Integer}, the returned TypeDescriptor will be {@code java.lang.Integer} |
|
|
|
|
* as well. |
|
|
|
|
* <p>Annotation and nested type context will be preserved in the narrowed |
|
|
|
@ -388,9 +388,9 @@ public class TypeDescriptor implements Serializable {
@@ -388,9 +388,9 @@ public class TypeDescriptor implements Serializable {
|
|
|
|
|
* from the provided map key. |
|
|
|
|
* <p>Narrows the {@link #getMapKeyTypeDescriptor() mapKeyType} property |
|
|
|
|
* to the class of the provided map key. For example, if this describes a |
|
|
|
|
* {@code java.util.Map<java.lang.Number, java.lang.String<} and the key |
|
|
|
|
* {@code java.util.Map<java.lang.Number, java.lang.String>} and the key |
|
|
|
|
* argument is a {@code java.lang.Integer}, the returned TypeDescriptor will be |
|
|
|
|
* {@code java.lang.Integer}. If this describes a {@code java.util.Map<?, ?>} |
|
|
|
|
* {@code java.lang.Integer}. If this describes a {@code java.util.Map<?, ?>} |
|
|
|
|
* and the key argument is a {@code java.lang.Integer}, the returned |
|
|
|
|
* TypeDescriptor will be {@code java.lang.Integer} as well. |
|
|
|
|
* <p>Annotation and nested type context will be preserved in the narrowed |
|
|
|
@ -425,9 +425,9 @@ public class TypeDescriptor implements Serializable {
@@ -425,9 +425,9 @@ public class TypeDescriptor implements Serializable {
|
|
|
|
|
* from the provided map value. |
|
|
|
|
* <p>Narrows the {@link #getMapValueTypeDescriptor() mapValueType} property |
|
|
|
|
* to the class of the provided map value. For example, if this describes a |
|
|
|
|
* {@code java.util.Map<java.lang.String, java.lang.Number<} and the value |
|
|
|
|
* {@code java.util.Map<java.lang.String, java.lang.Number>} and the value |
|
|
|
|
* argument is a {@code java.lang.Integer}, the returned TypeDescriptor will be |
|
|
|
|
* {@code java.lang.Integer}. If this describes a {@code java.util.Map<?, ?>} |
|
|
|
|
* {@code java.lang.Integer}. If this describes a {@code java.util.Map<?, ?>} |
|
|
|
|
* and the value argument is a {@code java.lang.Integer}, the returned |
|
|
|
|
* TypeDescriptor will be {@code java.lang.Integer} as well. |
|
|
|
|
* <p>Annotation and nested type context will be preserved in the narrowed |
|
|
|
|