java.lang.Object | |
↳ | org.springframework.core.GenericCollectionTypeResolver |
Helper class for determining element types of collections and maps.
Mainly intended for usage within the framework, determining the target type of values to be added to a collection or map (to be able to attempt type conversion if appropriate).
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determine the generic element type of the given Collection field.
| |||||||||||
Determine the generic element type of the given Collection field.
| |||||||||||
Determine the generic element type of the given Collection parameter.
| |||||||||||
Determine the generic element type of the given Collection return type.
| |||||||||||
Determine the generic element type of the given Collection return type.
| |||||||||||
Determine the generic element type of the given Collection class
(if it declares one through a generic superclass or generic interface).
| |||||||||||
Determine the generic key type of the given Map field.
| |||||||||||
Determine the generic key type of the given Map field.
| |||||||||||
Determine the generic key type of the given Map parameter.
| |||||||||||
Determine the generic key type of the given Map return type.
| |||||||||||
Determine the generic key type of the given Map return type.
| |||||||||||
Determine the generic key type of the given Map class
(if it declares one through a generic superclass or generic interface).
| |||||||||||
Determine the generic value type of the given Map field.
| |||||||||||
Determine the generic value type of the given Map field.
| |||||||||||
Determine the generic value type of the given Map parameter.
| |||||||||||
Determine the generic value type of the given Map return type.
| |||||||||||
Determine the generic value type of the given Map return type.
| |||||||||||
Determine the generic value type of the given Map class
(if it declares one through a generic superclass or generic interface).
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Determine the generic element type of the given Collection field.
collectionField | the collection field to introspect |
---|---|
nestingLevel | the nesting level of the target type (typically 1; e.g. in case of a List of Lists, 1 would indicate the nested List, whereas 2 would indicate the element of the nested List) |
null
if none
Determine the generic element type of the given Collection field.
collectionField | the collection field to introspect |
---|
null
if none
Determine the generic element type of the given Collection parameter.
methodParam | the method parameter specification |
---|
null
if none
Determine the generic element type of the given Collection return type.
If the specified nesting level is higher than 1, the element type of a nested Collection/Map will be analyzed.
method | the method to check the return type for |
---|---|
nestingLevel | the nesting level of the target type (typically 1; e.g. in case of a List of Lists, 1 would indicate the nested List, whereas 2 would indicate the element of the nested List) |
null
if none
Determine the generic element type of the given Collection return type.
method | the method to check the return type for |
---|
null
if none
Determine the generic element type of the given Collection class (if it declares one through a generic superclass or generic interface).
collectionClass | the collection class to introspect |
---|
null
if none
Determine the generic key type of the given Map field.
mapField | the map field to introspect |
---|
null
if none
Determine the generic key type of the given Map field.
mapField | the map field to introspect |
---|---|
nestingLevel | the nesting level of the target type (typically 1; e.g. in case of a List of Lists, 1 would indicate the nested List, whereas 2 would indicate the element of the nested List) |
null
if none
Determine the generic key type of the given Map parameter.
methodParam | the method parameter specification |
---|
null
if none
Determine the generic key type of the given Map return type.
method | the method to check the return type for |
---|---|
nestingLevel | the nesting level of the target type (typically 1; e.g. in case of a List of Lists, 1 would indicate the nested List, whereas 2 would indicate the element of the nested List) |
null
if none
Determine the generic key type of the given Map return type.
method | the method to check the return type for |
---|
null
if none
Determine the generic key type of the given Map class (if it declares one through a generic superclass or generic interface).
mapClass | the map class to introspect |
---|
null
if none
Determine the generic value type of the given Map field.
mapField | the map field to introspect |
---|
null
if none
Determine the generic value type of the given Map field.
mapField | the map field to introspect |
---|---|
nestingLevel | the nesting level of the target type (typically 1; e.g. in case of a List of Lists, 1 would indicate the nested List, whereas 2 would indicate the element of the nested List) |
null
if none
Determine the generic value type of the given Map parameter.
methodParam | the method parameter specification |
---|
null
if none
Determine the generic value type of the given Map return type.
method | the method to check the return type for |
---|---|
nestingLevel | the nesting level of the target type (typically 1; e.g. in case of a List of Lists, 1 would indicate the nested List, whereas 2 would indicate the element of the nested List) |
null
if none
Determine the generic value type of the given Map return type.
method | the method to check the return type for |
---|
null
if none
Determine the generic value type of the given Map class (if it declares one through a generic superclass or generic interface).
mapClass | the map class to introspect |
---|
null
if none