Class ArrayUtil


  • public class ArrayUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ArrayUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T[] addAll​(T[] array1, T[] array2)  
      private static <T> T[] clone​(T[] array)  
      private static <T> T[] createNewArrayWithSameType​(T[] arrayPrototype, int newLength)  
      private static <T> boolean isEmpty​(T[] a)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArrayUtil

        public ArrayUtil()
    • Method Detail

      • addAll

        public static <T> T[] addAll​(T[] array1,
                                     T[] array2)
      • isEmpty

        private static <T> boolean isEmpty​(T[] a)
      • clone

        private static <T> T[] clone​(T[] array)
      • createNewArrayWithSameType

        private static <T> T[] createNewArrayWithSameType​(T[] arrayPrototype,
                                                          int newLength)