@Test public void testCollectionFieldType() throws Exception { final Class<?> collectionFieldType = GenericCollectionTypeResolver.getCollectionFieldType(getCollectionField()); assertEquals(String.class, collectionFieldType); }
public static Class<?> getCollectionFieldType(Field collectionField) { return getGenericFieldType(collectionField, Collection.class, 0, getNestingLevel(collectionField.getGenericType(), 0)); }
GenericCollectionTypeResolver { public static Class<?> getCollectionFieldType(Field collectionField) { return getGenericFieldType(collectionField, Collection.class, 0, getNestingLevel(collectionField.getGenericType(), 0)); } }
GenericCollectionTypeResolver { public static Class<?> getCollectionFieldType(Field collectionField) { return getGenericFieldType(collectionField, Collection.class, 0, getNestingLevel(collectionField.getGenericType(), 0)); }  }
GenericCollectionTypeResolver { public static Class<?> getCollectionFieldType(Field collectionField) { return getGenericFieldType(collectionField, Collection.class, 0, getNestingLevel(collectionField.getGenericType(), 0)); }  static Class<?> getCollectionFieldType(Field collectionField); static Class<?> getMapKeyFieldType(Field mapField); static Class<?> getMapValueFieldType(Field mapField); static Class<?> getCollectionParameterType(MethodParameter methodParam); static Class<?> getMapKeyParameterType(MethodParameter methodParam); static Class<?> getMapValueParameterType(MethodParameter methodParam); }
GenericCollectionTypeResolver { public static Class<?> getCollectionFieldType(Field collectionField) { return getGenericFieldType(collectionField, Collection.class, 0, getNestingLevel(collectionField.getGenericType(), 0)); }  static Class<?> getCollectionFieldType(Field collectionField); static Class<?> getMapKeyFieldType(Field mapField); static Class<?> getMapValueFieldType(Field mapField); static Class<?> getCollectionParameterType(MethodParameter methodParam); static Class<?> getMapKeyParameterType(MethodParameter methodParam); static Class<?> getMapValueParameterType(MethodParameter methodParam);  }