Class ArrayUtils


  • public class ArrayUtils
    extends java.lang.Object
    Collection of array-related operations
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T[] alloc​(java.lang.Class<T> cls, int n)
      Allocate an array of generic type T (initialized to null)
      static <T> T[] copy​(T[] array)
      Allocation space and copy
      static <T> T[] copy​(T[] array, int start, int finish)
      Allocation space and copy
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • alloc

        public static <T> T[] alloc​(java.lang.Class<T> cls,
                                    int n)
        Allocate an array of generic type T (initialized to null)
      • copy

        public static <T> T[] copy​(T[] array)
        Allocation space and copy
      • copy

        public static <T> T[] copy​(T[] array,
                                   int start,
                                   int finish)
        Allocation space and copy