Java-Type简单分类

(1)ParameterizedType:

参数化类型,例如List<T>。

(2)GenericArrayType:

泛型数组类型,例如T[]。

(3)TypeVariable:

泛型的类型变量,例如T。

(4)Class:

类型对象,实现了type接口,例如T.class。

(5)WildcardType:

通配符,例如?。

发布了477 篇原创文章 · 获赞 588 · 访问量 267万+

猜你喜欢

转载自blog.csdn.net/qq_15037231/article/details/96028658