public abstract class GenericCollectionTypeResolver extends Object
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).
| Constructor and Description |
|---|
GenericCollectionTypeResolver() |
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
getCollectionFieldType(Field collectionField)
Determine the generic element type of the given Collection field.
|
static Class<?> |
getCollectionParameterType(MethodParameter methodParam)
Determine the generic element type of the given Collection parameter.
|
static Class<?> |
getMapKeyFieldType(Field mapField)
Determine the generic key type of the given Map field.
|
static Class<?> |
getMapKeyParameterType(MethodParameter methodParam)
Determine the generic key type of the given Map parameter.
|
static Class<?> |
getMapValueFieldType(Field mapField)
Determine the generic value type of the given Map field.
|
static Class<?> |
getMapValueParameterType(MethodParameter methodParam)
Determine the generic value type of the given Map parameter.
|
public static Class<?> getCollectionFieldType(Field collectionField)
collectionField - the collection field to introspectnull if nonepublic static Class<?> getMapKeyFieldType(Field mapField)
mapField - the map field to introspectnull if nonepublic static Class<?> getMapValueFieldType(Field mapField)
mapField - the map field to introspectnull if nonepublic static Class<?> getCollectionParameterType(MethodParameter methodParam)
methodParam - the method parameter specificationnull if nonepublic static Class<?> getMapKeyParameterType(MethodParameter methodParam)
methodParam - the method parameter specificationnull if nonepublic static Class<?> getMapValueParameterType(MethodParameter methodParam)
methodParam - the method parameter specificationnull if noneCopyright © 2008–2022. All rights reserved.