Here you can find the source of getGenericParameterClass(Field field)
public static Class getGenericParameterClass(Field field)
//package com.java2s; //License from project: Apache License import java.lang.reflect.*; public class Main { public static Class getGenericParameterClass(Field field) { Type genericType = field.getGenericType(); return (Class) ((ParameterizedType) genericType).getActualTypeArguments()[0]; }/*from w ww. j a v a2 s .c om*/ }