Class ArrayUtils

    • Constructor Detail

      • ArrayUtils

        public ArrayUtils()
    • Method Detail

      • append

        public static byte[] append​(byte[] src1,
                                    byte[] src2)
      • append

        public static byte[] append​(byte[] src1,
                                    byte[] src2,
                                    byte[] src3)
      • copy

        public static void copy​(byte[] src,
                                byte[] dest1)
      • copy

        public static void copy​(byte[] src,
                                byte[] dest1,
                                byte[] dest2)
      • copy

        public static void copy​(byte[] src,
                                byte[] dest1,
                                byte[] dest2,
                                byte[] dest3)
      • append

        public static char[] append​(char[] src1,
                                    char[] src2)
      • append

        public static char[] append​(char[] src1,
                                    char[] src2,
                                    char[] src3)
      • copy

        public static byte[] copy​(byte[] src)
      • copy

        public static char[] copy​(char[] src)
      • shuffle

        public static <T> void shuffle​(T[] src,
                                       Random random)
      • shuffle

        public static void shuffle​(int[] src,
                                   Random random)
      • shuffle

        public static void shuffle​(char[] src,
                                   Random random)
      • swap

        public static void swap​(int[] src,
                                int i,
                                int j)
      • swap

        public static void swap​(char[] src,
                                int i,
                                int j)
      • swap

        public static <T> void swap​(T[] src,
                                    int i,
                                    int j)
      • hasElements

        public static <T> boolean hasElements​(T[] elements)
      • fill

        public static void fill​(int[][] matrix,
                                int value)
      • endsWith

        public static boolean endsWith​(byte[] arr,
                                       byte[] suffix,
                                       int fromIndex)
      • min

        public static int min​(int[] arr)
      • max

        public static int max​(int[] arr)
      • min

        public static <T> T min​(T[] arr,
                                Comparator<T> comparator)
      • max

        public static <T> T max​(T[] arr,
                                Comparator<T> comparator)