类 TypeReference<T>

java.lang.Object
com.dtflys.forest.utils.TypeReference<T>
所有已实现的接口:
Type

public abstract class TypeReference<T> extends Object implements Type
Type 泛型参数类型引用工具类

用于获取带泛型的类型 Type 接口实例 该工具类使用方式如下:

     Type type = new TypeReference<Map<String, Integer>>() {}.getType();
 
这里的 type 即为 Map<String, Integer>
从以下版本开始:
1.5.2
作者:
gongjun[dt_flys@hotmail.com]
  • 构造器详细资料

    • TypeReference

      public TypeReference()
  • 方法详细资料