类 ArrayUtil

java.lang.Object
cn.jrack.core.util.collection.ArrayUtil

public class ArrayUtil extends Object
Array 工具类
作者:
ZhaoYang
  • 构造器详细资料

    • ArrayUtil

      public ArrayUtil()
  • 方法详细资料

    • append

      @SafeVarargs public static <T> Consumer<T>[] append(Consumer<T> object, Consumer<T>... newElements)
      将 object 和 newElements 合并成一个数组
      类型参数:
      T - 泛型
      参数:
      object - 对象
      newElements - 数组
      返回:
      结果数组
    • toArray

      public static <T, V> V[] toArray(Collection<T> from, Function<T,V> mapper)
    • toArray

      public static <T> T[] toArray(Collection<T> from)