Java Code Examples for org.springframework.core.GenericCollectionTypeResolver#getCollectionFieldType()
The following examples show how to use
org.springframework.core.GenericCollectionTypeResolver#getCollectionFieldType() .
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 |
/** * Determine the generic element type of the wrapped Collection parameter/field, if any. * @return the generic type, or {@code null} if none */ public Class<?> getCollectionType() { return (this.field != null ? GenericCollectionTypeResolver.getCollectionFieldType(this.field, this.nestingLevel) : GenericCollectionTypeResolver.getCollectionParameterType(this.methodParameter)); }
Example 2
Source File: DependencyDescriptor.java From spring4-understanding with Apache License 2.0 | 4 votes |
/** * Determine the generic element type of the wrapped Collection parameter/field, if any. * @return the generic type, or {@code null} if none */ public Class<?> getCollectionType() { return (this.field != null ? GenericCollectionTypeResolver.getCollectionFieldType(this.field, this.nestingLevel) : GenericCollectionTypeResolver.getCollectionParameterType(this.methodParameter)); }