java获取父类范型类型

记录一下:
private Class getParameterClass() {
		return (Class) ((ParameterizedType) this.getClass()
				.getGenericSuperclass()).getActualTypeArguments()[0];
	}




参考:[如果不懂请参考如下]

http://bbs.csdn.net/topics/360169835

http://blog.csdn.net/tanksyg/article/details/49928115

http://blog.csdn.net/liang5630/article/details/40185591

http://blog.sina.com.cn/s/blog_86e34ca8010132ly.html


你可能感兴趣的:(java)