泛型类里面获取到泛型的类型
摘要:
下面的代码可以让你在抽象的泛型类里面获取到泛型的类型abstract class A { Class clazz; void doGetClass() { Type genType = this.getClass().getGenericSuperclass(); ... 阅读全文
posted @ 2012-03-01 10:15 子非鱼焉 阅读(272) 评论(0) 推荐(0) 编辑
posted @ 2012-03-01 10:15 子非鱼焉 阅读(272) 评论(0) 推荐(0) 编辑