Java Code Examples for org.springframework.core.GenericCollectionTypeResolver#getMapValueParameterType()

The following examples show how to use org.springframework.core.GenericCollectionTypeResolver#getMapValueParameterType() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DependencyDescriptor.java    From blog_demos with Apache License 2.0 4 votes vote down vote up
/**
 * Determine the generic value type of the wrapped Map parameter/field, if any.
 * @return the generic type, or {@code null} if none
 */
public Class<?> getMapValueType() {
	return (this.field != null ?
			GenericCollectionTypeResolver.getMapValueFieldType(this.field, this.nestingLevel) :
			GenericCollectionTypeResolver.getMapValueParameterType(this.methodParameter));
}
 
Example 2
Source File: DependencyDescriptor.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
/**
 * Determine the generic value type of the wrapped Map parameter/field, if any.
 * @return the generic type, or {@code null} if none
 */
public Class<?> getMapValueType() {
	return (this.field != null ?
			GenericCollectionTypeResolver.getMapValueFieldType(this.field, this.nestingLevel) :
			GenericCollectionTypeResolver.getMapValueParameterType(this.methodParameter));
}