程序包 dev.utils.common

类 CollectionUtils.ArrayWithTypeToken<T>

java.lang.Object
dev.utils.common.CollectionUtils.ArrayWithTypeToken<T>
封闭类:
CollectionUtils

public static class CollectionUtils.ArrayWithTypeToken<T> extends Object
detail: 持有数组 TypeToken 实体类
作者:
Ttt
  • 构造器详细资料

    • ArrayWithTypeToken

      public ArrayWithTypeToken(Collection<T> collection)
    • ArrayWithTypeToken

      public ArrayWithTypeToken(Class<T> type, int size)
  • 方法详细资料

    • put

      public void put(int index, T item)
      添加数据
      参数:
      index - 索引
      item - 数据
    • get

      public T get(int index)
      获取对应索引的数据
      参数:
      index - 索引
      返回:
      对应索引的数据
    • create

      public T[] create()
      获取数组
      返回:
      泛型数组