摘要: 泛型不能使用基本类型 Pair<double> //Error Pair<Double> // Right 运行时类型查询只适用于原始类型 虚拟机中的对象总有一个特定的非泛型类型。 因此, 所有的类型查询只产生原始类型。 if (a instanceof Pair<String>) // Error 阅读全文
posted @ 2019-08-26 10:40 知识航海家布尔 阅读(358) 评论(0) 推荐(0) 编辑