Package jodd.util

Class ArraysUtil


  • public class ArraysUtil
    extends java.lang.Object
    Array utilities.
    • Constructor Summary

      Constructors 
      Constructor Description
      ArraysUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean[] append​(boolean[] buffer, boolean newElement)
      Appends an element to boolean array.
      static byte[] append​(byte[] buffer, byte newElement)
      Appends an element to byte array.
      static char[] append​(char[] buffer, char newElement)
      Appends an element to char array.
      static double[] append​(double[] buffer, double newElement)
      Appends an element to double array.
      static float[] append​(float[] buffer, float newElement)
      Appends an element to float array.
      static int[] append​(int[] buffer, int newElement)
      Appends an element to int array.
      static long[] append​(long[] buffer, long newElement)
      Appends an element to long array.
      static short[] append​(short[] buffer, short newElement)
      Appends an element to short array.
      static java.lang.String[] append​(java.lang.String[] buffer, java.lang.String newElement)
      Appends an element to String array.
      static <T> T[] append​(T[] buffer, T newElement)
      Appends an element to array.
      static <T> T[] array​(T... elements)
      Wraps elements into an array.
      static boolean[] booleans​(boolean... elements)
      Wraps elements into an array.
      static byte[] bytes​(byte... elements)
      Wraps elements into an array.
      static char[] chars​(char... elements)
      Wraps elements into an array.
      static boolean contains​(boolean[] array, boolean value)
      Returns true if an array contains given value.
      static boolean contains​(boolean[] array, boolean[] sub)  
      static boolean contains​(byte[] array, byte value)
      Returns true if an array contains given value.
      static boolean contains​(byte[] array, byte[] sub)  
      static boolean contains​(char[] array, char value)
      Returns true if an array contains given value.
      static boolean contains​(char[] array, char[] sub)  
      static boolean contains​(double[] array, double value)
      Returns true if double array contains given value.
      static boolean contains​(double[] array, double[] sub)  
      static boolean contains​(float[] array, float value)
      Returns true if float array contains given value.
      static boolean contains​(float[] array, float[] sub)  
      static boolean contains​(int[] array, int value)
      Returns true if an array contains given value.
      static boolean contains​(int[] array, int[] sub)  
      static boolean contains​(long[] array, long value)
      Returns true if an array contains given value.
      static boolean contains​(long[] array, long[] sub)  
      static boolean contains​(short[] array, short value)
      Returns true if an array contains given value.
      static boolean contains​(short[] array, short[] sub)  
      static boolean contains​(java.lang.Object[] array, java.lang.Object value)  
      static boolean contains​(java.lang.Object[] array, java.lang.Object value, int startIndex)  
      static double[] doubles​(double... elements)
      Wraps elements into an array.
      static float[] floats​(float... elements)
      Wraps elements into an array.
      static int indexOf​(boolean[] array, boolean value)
      Finds the first occurrence of an element in an array.
      static int indexOf​(boolean[] array, boolean[] sub)
      Finds the first occurrence in an array.
      static int indexOf​(boolean[] array, boolean[] sub, int startIndex)
      Finds the first occurrence in an array from specified given position.
      static int indexOf​(boolean[] array, boolean[] sub, int startIndex, int endIndex)
      Finds the first occurrence in an array from specified given position and upto given length.
      static int indexOf​(boolean[] array, boolean value, int startIndex)
      Finds the first occurrence of given value in an array from specified given position.
      static int indexOf​(boolean[] array, boolean value, int startIndex, int endIndex)
      Finds the first occurrence in an array from specified given position and upto given length.
      static int indexOf​(byte[] array, byte value)
      Finds the first occurrence of an element in an array.
      static int indexOf​(byte[] array, byte[] sub)
      Finds the first occurrence in an array.
      static int indexOf​(byte[] array, byte[] sub, int startIndex)
      Finds the first occurrence in an array from specified given position.
      static int indexOf​(byte[] array, byte[] sub, int startIndex, int endIndex)
      Finds the first occurrence in an array from specified given position and upto given length.
      static int indexOf​(byte[] array, byte value, int startIndex)
      Finds the first occurrence of given value in an array from specified given position.
      static int indexOf​(byte[] array, byte value, int startIndex, int endIndex)
      Finds the first occurrence in an array from specified given position and upto given length.
      static int indexOf​(char[] array, char value)
      Finds the first occurrence of an element in an array.
      static int indexOf​(char[] array, char[] sub)
      Finds the first occurrence in an array.
      static int indexOf​(char[] array, char[] sub, int startIndex)
      Finds the first occurrence in an array from specified given position.
      static int indexOf​(char[] array, char[] sub, int startIndex, int endIndex)
      Finds the first occurrence in an array from specified given position and upto given length.
      static int indexOf​(char[] array, char value, int startIndex)
      Finds the first occurrence of given value in an array from specified given position.
      static int indexOf​(char[] array, char value, int startIndex, int endIndex)
      Finds the first occurrence in an array from specified given position and upto given length.
      static int indexOf​(double[] array, double value)
      Finds the first occurrence of value in double array.
      static int indexOf​(double[] array, double[] sub)
      Finds the first occurrence in an array.
      static int indexOf​(double[] array, double[] sub, int startIndex)
      Finds the first occurrence in an array from specified given position.
      static int indexOf​(double[] array, double[] sub, int startIndex, int endIndex)
      Finds the first occurrence in an array from specified given position and upto given length.
      static int indexOf​(double[] array, double value, int startIndex)
      Finds the first occurrence of given value in double array from specified given position.
      static int indexOf​(double[] array, double value, int startIndex, int endIndex)
      Finds the first occurrence in double array from specified given position and upto given length.
      static int indexOf​(float[] array, float value)
      Finds the first occurrence of value in float array.
      static int indexOf​(float[] array, float[] sub)
      Finds the first occurrence in an array.
      static int indexOf​(float[] array, float[] sub, int startIndex)
      Finds the first occurrence in an array from specified given position.
      static int indexOf​(float[] array, float[] sub, int startIndex, int endIndex)
      Finds the first occurrence in an array from specified given position and upto given length.
      static int indexOf​(float[] array, float value, int startIndex)
      Finds the first occurrence of given value in float array from specified given position.
      static int indexOf​(float[] array, float value, int startIndex, int endIndex)
      Finds the first occurrence in float array from specified given position and upto given length.
      static int indexOf​(int[] array, int value)
      Finds the first occurrence of an element in an array.
      static int indexOf​(int[] array, int[] sub)
      Finds the first occurrence in an array.
      static int indexOf​(int[] array, int[] sub, int startIndex)
      Finds the first occurrence in an array from specified given position.
      static int indexOf​(int[] array, int[] sub, int startIndex, int endIndex)
      Finds the first occurrence in an array from specified given position and upto given length.
      static int indexOf​(int[] array, int value, int startIndex)
      Finds the first occurrence of given value in an array from specified given position.
      static int indexOf​(int[] array, int value, int startIndex, int endIndex)
      Finds the first occurrence in an array from specified given position and upto given length.
      static int indexOf​(long[] array, long value)
      Finds the first occurrence of an element in an array.
      static int indexOf​(long[] array, long[] sub)
      Finds the first occurrence in an array.
      static int indexOf​(long[] array, long[] sub, int startIndex)
      Finds the first occurrence in an array from specified given position.
      static int indexOf​(long[] array, long[] sub, int startIndex, int endIndex)
      Finds the first occurrence in an array from specified given position and upto given length.
      static int indexOf​(long[] array, long value, int startIndex)
      Finds the first occurrence of given value in an array from specified given position.
      static int indexOf​(long[] array, long value, int startIndex, int endIndex)
      Finds the first occurrence in an array from specified given position and upto given length.
      static int indexOf​(short[] array, short value)
      Finds the first occurrence of an element in an array.
      static int indexOf​(short[] array, short[] sub)
      Finds the first occurrence in an array.
      static int indexOf​(short[] array, short[] sub, int startIndex)
      Finds the first occurrence in an array from specified given position.
      static int indexOf​(short[] array, short[] sub, int startIndex, int endIndex)
      Finds the first occurrence in an array from specified given position and upto given length.
      static int indexOf​(short[] array, short value, int startIndex)
      Finds the first occurrence of given value in an array from specified given position.
      static int indexOf​(short[] array, short value, int startIndex, int endIndex)
      Finds the first occurrence in an array from specified given position and upto given length.
      static int indexOf​(java.lang.Object[] array, java.lang.Object value)
      Finds the first occurrence in an array.
      static int indexOf​(java.lang.Object[] array, java.lang.Object value, int startIndex)
      Finds the first occurrence in an array from specified given position.
      static boolean[] insert​(boolean[] dest, boolean[] src, int offset)
      Inserts one array into another boolean array.
      static boolean[] insert​(boolean[] dest, boolean src, int offset)
      Inserts one element into another boolean array.
      static byte[] insert​(byte[] dest, byte[] src, int offset)
      Inserts one array into another byte array.
      static byte[] insert​(byte[] dest, byte src, int offset)
      Inserts one element into another byte array.
      static char[] insert​(char[] dest, char[] src, int offset)
      Inserts one array into another char array.
      static char[] insert​(char[] dest, char src, int offset)
      Inserts one element into another char array.
      static double[] insert​(double[] dest, double[] src, int offset)
      Inserts one array into another double array.
      static double[] insert​(double[] dest, double src, int offset)
      Inserts one element into another double array.
      static float[] insert​(float[] dest, float[] src, int offset)
      Inserts one array into another float array.
      static float[] insert​(float[] dest, float src, int offset)
      Inserts one element into another float array.
      static int[] insert​(int[] dest, int[] src, int offset)
      Inserts one array into another int array.
      static int[] insert​(int[] dest, int src, int offset)
      Inserts one element into another int array.
      static long[] insert​(long[] dest, long[] src, int offset)
      Inserts one array into another long array.
      static long[] insert​(long[] dest, long src, int offset)
      Inserts one element into another long array.
      static short[] insert​(short[] dest, short[] src, int offset)
      Inserts one array into another short array.
      static short[] insert​(short[] dest, short src, int offset)
      Inserts one element into another short array.
      static java.lang.String[] insert​(java.lang.String[] dest, java.lang.String[] src, int offset)
      Inserts one array into another String array.
      static java.lang.String[] insert​(java.lang.String[] dest, java.lang.String src, int offset)
      Inserts one element into another String array.
      static <T> T[] insert​(T[] dest, T[] src, int offset)
      Inserts one array into another array.
      static <T> T[] insert​(T[] dest, T[] src, int offset, java.lang.Class componentType)
      Inserts one array into another array.
      static <T> T[] insert​(T[] dest, T src, int offset)
      Inserts one element into an array.
      static <T> T[] insert​(T[] dest, T src, int offset, java.lang.Class componentType)
      Inserts one element into another array.
      static boolean[] insertAt​(boolean[] dest, boolean[] src, int offset)
      Inserts one array into another by replacing specified offset.
      static byte[] insertAt​(byte[] dest, byte[] src, int offset)
      Inserts one array into another by replacing specified offset.
      static char[] insertAt​(char[] dest, char[] src, int offset)
      Inserts one array into another by replacing specified offset.
      static double[] insertAt​(double[] dest, double[] src, int offset)
      Inserts one array into another by replacing specified offset.
      static float[] insertAt​(float[] dest, float[] src, int offset)
      Inserts one array into another by replacing specified offset.
      static int[] insertAt​(int[] dest, int[] src, int offset)
      Inserts one array into another by replacing specified offset.
      static long[] insertAt​(long[] dest, long[] src, int offset)
      Inserts one array into another by replacing specified offset.
      static short[] insertAt​(short[] dest, short[] src, int offset)
      Inserts one array into another by replacing specified offset.
      static java.lang.String[] insertAt​(java.lang.String[] dest, java.lang.String[] src, int offset)
      Inserts one array into another by replacing specified offset.
      static <T> T[] insertAt​(T[] dest, T[] src, int offset)
      Inserts one array into another at given offset.
      static <T> T[] insertAt​(T[] dest, T[] src, int offset, java.lang.Class componentType)
      Inserts one array into another at given offset.
      static int[] ints​(int... elements)
      Wraps elements into an array.
      static boolean[] join​(boolean[]... arrays)
      Join boolean arrays.
      static byte[] join​(byte[]... arrays)
      Join byte arrays.
      static char[] join​(char[]... arrays)
      Join char arrays.
      static double[] join​(double[]... arrays)
      Join double arrays.
      static float[] join​(float[]... arrays)
      Join float arrays.
      static int[] join​(int[]... arrays)
      Join int arrays.
      static long[] join​(long[]... arrays)
      Join long arrays.
      static short[] join​(short[]... arrays)
      Join short arrays.
      static <T> T[] join​(java.lang.Class<T> componentType, T[][] arrays)
      Joins arrays using provided component type.
      static java.lang.String[] join​(java.lang.String[]... arrays)
      Join String arrays.
      static <T> T[] join​(T[]... arrays)
      Joins arrays.
      static long[] longs​(long... elements)
      Wraps elements into an array.
      static boolean[] remove​(boolean[] buffer, int offset, int length)
      Removes sub-array from boolean array.
      static byte[] remove​(byte[] buffer, int offset, int length)
      Removes sub-array from byte array.
      static char[] remove​(char[] buffer, int offset, int length)
      Removes sub-array from char array.
      static double[] remove​(double[] buffer, int offset, int length)
      Removes sub-array from double array.
      static float[] remove​(float[] buffer, int offset, int length)
      Removes sub-array from float array.
      static int[] remove​(int[] buffer, int offset, int length)
      Removes sub-array from int array.
      static long[] remove​(long[] buffer, int offset, int length)
      Removes sub-array from long array.
      static short[] remove​(short[] buffer, int offset, int length)
      Removes sub-array from short array.
      static java.lang.String[] remove​(java.lang.String[] buffer, int offset, int length)
      Removes sub-array from String array.
      static <T> T[] remove​(T[] buffer, int offset, int length)
      Removes sub-array.
      static <T> T[] remove​(T[] buffer, int offset, int length, java.lang.Class<T> componentType)
      Removes sub-array.
      static boolean[] resize​(boolean[] buffer, int newSize)
      Resizes a boolean array.
      static byte[] resize​(byte[] buffer, int newSize)
      Resizes a byte array.
      static char[] resize​(char[] buffer, int newSize)
      Resizes a char array.
      static double[] resize​(double[] buffer, int newSize)
      Resizes a double array.
      static float[] resize​(float[] buffer, int newSize)
      Resizes a float array.
      static int[] resize​(int[] buffer, int newSize)
      Resizes a int array.
      static long[] resize​(long[] buffer, int newSize)
      Resizes a long array.
      static short[] resize​(short[] buffer, int newSize)
      Resizes a short array.
      static java.lang.String[] resize​(java.lang.String[] buffer, int newSize)
      Resizes a String array.
      static <T> T[] resize​(T[] buffer, int newSize)
      Resizes an array.
      static short[] shorts​(short... elements)
      Wraps elements into an array.
      static boolean[] subarray​(boolean[] buffer, int offset, int length)
      Returns subarray.
      static byte[] subarray​(byte[] buffer, int offset, int length)
      Returns subarray.
      static char[] subarray​(char[] buffer, int offset, int length)
      Returns subarray.
      static double[] subarray​(double[] buffer, int offset, int length)
      Returns subarray.
      static float[] subarray​(float[] buffer, int offset, int length)
      Returns subarray.
      static int[] subarray​(int[] buffer, int offset, int length)
      Returns subarray.
      static long[] subarray​(long[] buffer, int offset, int length)
      Returns subarray.
      static short[] subarray​(short[] buffer, int offset, int length)
      Returns subarray.
      static java.lang.String[] subarray​(java.lang.String[] buffer, int offset, int length)
      Returns subarray.
      static <T> T[] subarray​(T[] buffer, int offset, int length)
      Returns subarray.
      static <T> T[] subarray​(T[] buffer, int offset, int length, java.lang.Class<T> componentType)
      Returns subarray.
      static java.lang.String toString​(boolean[] array)
      Converts an array to string.
      static java.lang.String toString​(byte[] array)
      Converts an array to string.
      static java.lang.String toString​(char[] array)
      Converts an array to string.
      static java.lang.String toString​(double[] array)
      Converts an array to string.
      static java.lang.String toString​(float[] array)
      Converts an array to string.
      static java.lang.String toString​(int[] array)
      Converts an array to string.
      static java.lang.String toString​(long[] array)
      Converts an array to string.
      static java.lang.String toString​(short[] array)
      Converts an array to string.
      static java.lang.String toString​(java.lang.Object[] array)
      Converts an array to string.
      static java.lang.String toString​(java.lang.String[] array)
      Converts an array to string.
      static java.lang.String[] toStringArray​(boolean[] array)
      Converts an array to string array.
      static java.lang.String[] toStringArray​(byte[] array)
      Converts an array to string array.
      static java.lang.String[] toStringArray​(char[] array)
      Converts an array to string array.
      static java.lang.String[] toStringArray​(double[] array)
      Converts an array to string array.
      static java.lang.String[] toStringArray​(float[] array)
      Converts an array to string array.
      static java.lang.String[] toStringArray​(int[] array)
      Converts an array to string array.
      static java.lang.String[] toStringArray​(long[] array)
      Converts an array to string array.
      static java.lang.String[] toStringArray​(short[] array)
      Converts an array to string array.
      static java.lang.String[] toStringArray​(java.lang.Object[] array)
      Converts an array to string array.
      static java.lang.String[] toStringArray​(java.lang.String[] array)
      Converts an array to string array.
      static boolean[] values​(java.lang.Boolean[] array)
      Converts to primitive array.
      static byte[] values​(java.lang.Byte[] array)
      Converts to primitive array.
      static char[] values​(java.lang.Character[] array)
      Converts to primitive array.
      static double[] values​(java.lang.Double[] array)
      Converts to primitive array.
      static float[] values​(java.lang.Float[] array)
      Converts to primitive array.
      static int[] values​(java.lang.Integer[] array)
      Converts to primitive array.
      static long[] values​(java.lang.Long[] array)
      Converts to primitive array.
      static short[] values​(java.lang.Short[] array)
      Converts to primitive array.
      static java.lang.Boolean[] valuesOf​(boolean[] array)
      Converts to object array.
      static java.lang.Byte[] valuesOf​(byte[] array)
      Converts to object array.
      static java.lang.Character[] valuesOf​(char[] array)
      Converts to object array.
      static java.lang.Double[] valuesOf​(double[] array)
      Converts to object array.
      static java.lang.Float[] valuesOf​(float[] array)
      Converts to object array.
      static java.lang.Integer[] valuesOf​(int[] array)
      Converts to object array.
      static java.lang.Long[] valuesOf​(long[] array)
      Converts to object array.
      static java.lang.Short[] valuesOf​(short[] array)
      Converts to object array.
      • Methods inherited from class java.lang.Object

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

      • ArraysUtil

        public ArraysUtil()
    • Method Detail

      • array

        public static <T> T[] array​(T... elements)
        Wraps elements into an array.
      • bytes

        public static byte[] bytes​(byte... elements)
        Wraps elements into an array.
      • chars

        public static char[] chars​(char... elements)
        Wraps elements into an array.
      • shorts

        public static short[] shorts​(short... elements)
        Wraps elements into an array.
      • ints

        public static int[] ints​(int... elements)
        Wraps elements into an array.
      • longs

        public static long[] longs​(long... elements)
        Wraps elements into an array.
      • floats

        public static float[] floats​(float... elements)
        Wraps elements into an array.
      • doubles

        public static double[] doubles​(double... elements)
        Wraps elements into an array.
      • booleans

        public static boolean[] booleans​(boolean... elements)
        Wraps elements into an array.
      • join

        public static <T> T[] join​(T[]... arrays)
        Joins arrays. Component type is resolved from the array argument.
      • join

        public static <T> T[] join​(java.lang.Class<T> componentType,
                                   T[][] arrays)
        Joins arrays using provided component type.
      • join

        public static java.lang.String[] join​(java.lang.String[]... arrays)
        Join String arrays.
      • join

        public static byte[] join​(byte[]... arrays)
        Join byte arrays.
      • join

        public static char[] join​(char[]... arrays)
        Join char arrays.
      • join

        public static short[] join​(short[]... arrays)
        Join short arrays.
      • join

        public static int[] join​(int[]... arrays)
        Join int arrays.
      • join

        public static long[] join​(long[]... arrays)
        Join long arrays.
      • join

        public static float[] join​(float[]... arrays)
        Join float arrays.
      • join

        public static double[] join​(double[]... arrays)
        Join double arrays.
      • join

        public static boolean[] join​(boolean[]... arrays)
        Join boolean arrays.
      • resize

        public static <T> T[] resize​(T[] buffer,
                                     int newSize)
        Resizes an array.
      • resize

        public static java.lang.String[] resize​(java.lang.String[] buffer,
                                                int newSize)
        Resizes a String array.
      • resize

        public static byte[] resize​(byte[] buffer,
                                    int newSize)
        Resizes a byte array.
      • resize

        public static char[] resize​(char[] buffer,
                                    int newSize)
        Resizes a char array.
      • resize

        public static short[] resize​(short[] buffer,
                                     int newSize)
        Resizes a short array.
      • resize

        public static int[] resize​(int[] buffer,
                                   int newSize)
        Resizes a int array.
      • resize

        public static long[] resize​(long[] buffer,
                                    int newSize)
        Resizes a long array.
      • resize

        public static float[] resize​(float[] buffer,
                                     int newSize)
        Resizes a float array.
      • resize

        public static double[] resize​(double[] buffer,
                                      int newSize)
        Resizes a double array.
      • resize

        public static boolean[] resize​(boolean[] buffer,
                                       int newSize)
        Resizes a boolean array.
      • append

        public static <T> T[] append​(T[] buffer,
                                     T newElement)
        Appends an element to array.
      • append

        public static java.lang.String[] append​(java.lang.String[] buffer,
                                                java.lang.String newElement)
        Appends an element to String array.
      • append

        public static byte[] append​(byte[] buffer,
                                    byte newElement)
        Appends an element to byte array.
      • append

        public static char[] append​(char[] buffer,
                                    char newElement)
        Appends an element to char array.
      • append

        public static short[] append​(short[] buffer,
                                     short newElement)
        Appends an element to short array.
      • append

        public static int[] append​(int[] buffer,
                                   int newElement)
        Appends an element to int array.
      • append

        public static long[] append​(long[] buffer,
                                    long newElement)
        Appends an element to long array.
      • append

        public static float[] append​(float[] buffer,
                                     float newElement)
        Appends an element to float array.
      • append

        public static double[] append​(double[] buffer,
                                      double newElement)
        Appends an element to double array.
      • append

        public static boolean[] append​(boolean[] buffer,
                                       boolean newElement)
        Appends an element to boolean array.
      • remove

        public static <T> T[] remove​(T[] buffer,
                                     int offset,
                                     int length)
        Removes sub-array.
      • remove

        public static <T> T[] remove​(T[] buffer,
                                     int offset,
                                     int length,
                                     java.lang.Class<T> componentType)
        Removes sub-array.
      • remove

        public static java.lang.String[] remove​(java.lang.String[] buffer,
                                                int offset,
                                                int length)
        Removes sub-array from String array.
      • remove

        public static byte[] remove​(byte[] buffer,
                                    int offset,
                                    int length)
        Removes sub-array from byte array.
      • remove

        public static char[] remove​(char[] buffer,
                                    int offset,
                                    int length)
        Removes sub-array from char array.
      • remove

        public static short[] remove​(short[] buffer,
                                     int offset,
                                     int length)
        Removes sub-array from short array.
      • remove

        public static int[] remove​(int[] buffer,
                                   int offset,
                                   int length)
        Removes sub-array from int array.
      • remove

        public static long[] remove​(long[] buffer,
                                    int offset,
                                    int length)
        Removes sub-array from long array.
      • remove

        public static float[] remove​(float[] buffer,
                                     int offset,
                                     int length)
        Removes sub-array from float array.
      • remove

        public static double[] remove​(double[] buffer,
                                      int offset,
                                      int length)
        Removes sub-array from double array.
      • remove

        public static boolean[] remove​(boolean[] buffer,
                                       int offset,
                                       int length)
        Removes sub-array from boolean array.
      • subarray

        public static <T> T[] subarray​(T[] buffer,
                                       int offset,
                                       int length)
        Returns subarray.
      • subarray

        public static <T> T[] subarray​(T[] buffer,
                                       int offset,
                                       int length,
                                       java.lang.Class<T> componentType)
        Returns subarray.
      • subarray

        public static java.lang.String[] subarray​(java.lang.String[] buffer,
                                                  int offset,
                                                  int length)
        Returns subarray.
      • subarray

        public static byte[] subarray​(byte[] buffer,
                                      int offset,
                                      int length)
        Returns subarray.
      • subarray

        public static char[] subarray​(char[] buffer,
                                      int offset,
                                      int length)
        Returns subarray.
      • subarray

        public static short[] subarray​(short[] buffer,
                                       int offset,
                                       int length)
        Returns subarray.
      • subarray

        public static int[] subarray​(int[] buffer,
                                     int offset,
                                     int length)
        Returns subarray.
      • subarray

        public static long[] subarray​(long[] buffer,
                                      int offset,
                                      int length)
        Returns subarray.
      • subarray

        public static float[] subarray​(float[] buffer,
                                       int offset,
                                       int length)
        Returns subarray.
      • subarray

        public static double[] subarray​(double[] buffer,
                                        int offset,
                                        int length)
        Returns subarray.
      • subarray

        public static boolean[] subarray​(boolean[] buffer,
                                         int offset,
                                         int length)
        Returns subarray.
      • insert

        public static <T> T[] insert​(T[] dest,
                                     T[] src,
                                     int offset)
        Inserts one array into another array.
      • insert

        public static <T> T[] insert​(T[] dest,
                                     T src,
                                     int offset)
        Inserts one element into an array.
      • insert

        public static <T> T[] insert​(T[] dest,
                                     T[] src,
                                     int offset,
                                     java.lang.Class componentType)
        Inserts one array into another array.
      • insert

        public static <T> T[] insert​(T[] dest,
                                     T src,
                                     int offset,
                                     java.lang.Class componentType)
        Inserts one element into another array.
      • insert

        public static java.lang.String[] insert​(java.lang.String[] dest,
                                                java.lang.String[] src,
                                                int offset)
        Inserts one array into another String array.
      • insert

        public static java.lang.String[] insert​(java.lang.String[] dest,
                                                java.lang.String src,
                                                int offset)
        Inserts one element into another String array.
      • insert

        public static byte[] insert​(byte[] dest,
                                    byte[] src,
                                    int offset)
        Inserts one array into another byte array.
      • insert

        public static byte[] insert​(byte[] dest,
                                    byte src,
                                    int offset)
        Inserts one element into another byte array.
      • insert

        public static char[] insert​(char[] dest,
                                    char[] src,
                                    int offset)
        Inserts one array into another char array.
      • insert

        public static char[] insert​(char[] dest,
                                    char src,
                                    int offset)
        Inserts one element into another char array.
      • insert

        public static short[] insert​(short[] dest,
                                     short[] src,
                                     int offset)
        Inserts one array into another short array.
      • insert

        public static short[] insert​(short[] dest,
                                     short src,
                                     int offset)
        Inserts one element into another short array.
      • insert

        public static int[] insert​(int[] dest,
                                   int[] src,
                                   int offset)
        Inserts one array into another int array.
      • insert

        public static int[] insert​(int[] dest,
                                   int src,
                                   int offset)
        Inserts one element into another int array.
      • insert

        public static long[] insert​(long[] dest,
                                    long[] src,
                                    int offset)
        Inserts one array into another long array.
      • insert

        public static long[] insert​(long[] dest,
                                    long src,
                                    int offset)
        Inserts one element into another long array.
      • insert

        public static float[] insert​(float[] dest,
                                     float[] src,
                                     int offset)
        Inserts one array into another float array.
      • insert

        public static float[] insert​(float[] dest,
                                     float src,
                                     int offset)
        Inserts one element into another float array.
      • insert

        public static double[] insert​(double[] dest,
                                      double[] src,
                                      int offset)
        Inserts one array into another double array.
      • insert

        public static double[] insert​(double[] dest,
                                      double src,
                                      int offset)
        Inserts one element into another double array.
      • insert

        public static boolean[] insert​(boolean[] dest,
                                       boolean[] src,
                                       int offset)
        Inserts one array into another boolean array.
      • insert

        public static boolean[] insert​(boolean[] dest,
                                       boolean src,
                                       int offset)
        Inserts one element into another boolean array.
      • insertAt

        public static <T> T[] insertAt​(T[] dest,
                                       T[] src,
                                       int offset)
        Inserts one array into another at given offset.
      • insertAt

        public static <T> T[] insertAt​(T[] dest,
                                       T[] src,
                                       int offset,
                                       java.lang.Class componentType)
        Inserts one array into another at given offset.
      • insertAt

        public static java.lang.String[] insertAt​(java.lang.String[] dest,
                                                  java.lang.String[] src,
                                                  int offset)
        Inserts one array into another by replacing specified offset.
      • insertAt

        public static byte[] insertAt​(byte[] dest,
                                      byte[] src,
                                      int offset)
        Inserts one array into another by replacing specified offset.
      • insertAt

        public static char[] insertAt​(char[] dest,
                                      char[] src,
                                      int offset)
        Inserts one array into another by replacing specified offset.
      • insertAt

        public static short[] insertAt​(short[] dest,
                                       short[] src,
                                       int offset)
        Inserts one array into another by replacing specified offset.
      • insertAt

        public static int[] insertAt​(int[] dest,
                                     int[] src,
                                     int offset)
        Inserts one array into another by replacing specified offset.
      • insertAt

        public static long[] insertAt​(long[] dest,
                                      long[] src,
                                      int offset)
        Inserts one array into another by replacing specified offset.
      • insertAt

        public static float[] insertAt​(float[] dest,
                                       float[] src,
                                       int offset)
        Inserts one array into another by replacing specified offset.
      • insertAt

        public static double[] insertAt​(double[] dest,
                                        double[] src,
                                        int offset)
        Inserts one array into another by replacing specified offset.
      • insertAt

        public static boolean[] insertAt​(boolean[] dest,
                                         boolean[] src,
                                         int offset)
        Inserts one array into another by replacing specified offset.
      • values

        public static byte[] values​(java.lang.Byte[] array)
        Converts to primitive array.
      • valuesOf

        public static java.lang.Byte[] valuesOf​(byte[] array)
        Converts to object array.
      • values

        public static char[] values​(java.lang.Character[] array)
        Converts to primitive array.
      • valuesOf

        public static java.lang.Character[] valuesOf​(char[] array)
        Converts to object array.
      • values

        public static short[] values​(java.lang.Short[] array)
        Converts to primitive array.
      • valuesOf

        public static java.lang.Short[] valuesOf​(short[] array)
        Converts to object array.
      • values

        public static int[] values​(java.lang.Integer[] array)
        Converts to primitive array.
      • valuesOf

        public static java.lang.Integer[] valuesOf​(int[] array)
        Converts to object array.
      • values

        public static long[] values​(java.lang.Long[] array)
        Converts to primitive array.
      • valuesOf

        public static java.lang.Long[] valuesOf​(long[] array)
        Converts to object array.
      • values

        public static float[] values​(java.lang.Float[] array)
        Converts to primitive array.
      • valuesOf

        public static java.lang.Float[] valuesOf​(float[] array)
        Converts to object array.
      • values

        public static double[] values​(java.lang.Double[] array)
        Converts to primitive array.
      • valuesOf

        public static java.lang.Double[] valuesOf​(double[] array)
        Converts to object array.
      • values

        public static boolean[] values​(java.lang.Boolean[] array)
        Converts to primitive array.
      • valuesOf

        public static java.lang.Boolean[] valuesOf​(boolean[] array)
        Converts to object array.
      • indexOf

        public static int indexOf​(byte[] array,
                                  byte value)
        Finds the first occurrence of an element in an array.
      • contains

        public static boolean contains​(byte[] array,
                                       byte value)
        Returns true if an array contains given value.
      • indexOf

        public static int indexOf​(byte[] array,
                                  byte value,
                                  int startIndex)
        Finds the first occurrence of given value in an array from specified given position.
      • indexOf

        public static int indexOf​(byte[] array,
                                  byte value,
                                  int startIndex,
                                  int endIndex)
        Finds the first occurrence in an array from specified given position and upto given length.
      • indexOf

        public static int indexOf​(char[] array,
                                  char value)
        Finds the first occurrence of an element in an array.
      • contains

        public static boolean contains​(char[] array,
                                       char value)
        Returns true if an array contains given value.
      • indexOf

        public static int indexOf​(char[] array,
                                  char value,
                                  int startIndex)
        Finds the first occurrence of given value in an array from specified given position.
      • indexOf

        public static int indexOf​(char[] array,
                                  char value,
                                  int startIndex,
                                  int endIndex)
        Finds the first occurrence in an array from specified given position and upto given length.
      • indexOf

        public static int indexOf​(short[] array,
                                  short value)
        Finds the first occurrence of an element in an array.
      • contains

        public static boolean contains​(short[] array,
                                       short value)
        Returns true if an array contains given value.
      • indexOf

        public static int indexOf​(short[] array,
                                  short value,
                                  int startIndex)
        Finds the first occurrence of given value in an array from specified given position.
      • indexOf

        public static int indexOf​(short[] array,
                                  short value,
                                  int startIndex,
                                  int endIndex)
        Finds the first occurrence in an array from specified given position and upto given length.
      • indexOf

        public static int indexOf​(int[] array,
                                  int value)
        Finds the first occurrence of an element in an array.
      • contains

        public static boolean contains​(int[] array,
                                       int value)
        Returns true if an array contains given value.
      • indexOf

        public static int indexOf​(int[] array,
                                  int value,
                                  int startIndex)
        Finds the first occurrence of given value in an array from specified given position.
      • indexOf

        public static int indexOf​(int[] array,
                                  int value,
                                  int startIndex,
                                  int endIndex)
        Finds the first occurrence in an array from specified given position and upto given length.
      • indexOf

        public static int indexOf​(long[] array,
                                  long value)
        Finds the first occurrence of an element in an array.
      • contains

        public static boolean contains​(long[] array,
                                       long value)
        Returns true if an array contains given value.
      • indexOf

        public static int indexOf​(long[] array,
                                  long value,
                                  int startIndex)
        Finds the first occurrence of given value in an array from specified given position.
      • indexOf

        public static int indexOf​(long[] array,
                                  long value,
                                  int startIndex,
                                  int endIndex)
        Finds the first occurrence in an array from specified given position and upto given length.
      • indexOf

        public static int indexOf​(boolean[] array,
                                  boolean value)
        Finds the first occurrence of an element in an array.
      • contains

        public static boolean contains​(boolean[] array,
                                       boolean value)
        Returns true if an array contains given value.
      • indexOf

        public static int indexOf​(boolean[] array,
                                  boolean value,
                                  int startIndex)
        Finds the first occurrence of given value in an array from specified given position.
      • indexOf

        public static int indexOf​(boolean[] array,
                                  boolean value,
                                  int startIndex,
                                  int endIndex)
        Finds the first occurrence in an array from specified given position and upto given length.
      • indexOf

        public static int indexOf​(float[] array,
                                  float value)
        Finds the first occurrence of value in float array.
      • contains

        public static boolean contains​(float[] array,
                                       float value)
        Returns true if float array contains given value.
      • indexOf

        public static int indexOf​(float[] array,
                                  float value,
                                  int startIndex)
        Finds the first occurrence of given value in float array from specified given position.
      • indexOf

        public static int indexOf​(float[] array,
                                  float value,
                                  int startIndex,
                                  int endIndex)
        Finds the first occurrence in float array from specified given position and upto given length.
      • indexOf

        public static int indexOf​(double[] array,
                                  double value)
        Finds the first occurrence of value in double array.
      • contains

        public static boolean contains​(double[] array,
                                       double value)
        Returns true if double array contains given value.
      • indexOf

        public static int indexOf​(double[] array,
                                  double value,
                                  int startIndex)
        Finds the first occurrence of given value in double array from specified given position.
      • indexOf

        public static int indexOf​(double[] array,
                                  double value,
                                  int startIndex,
                                  int endIndex)
        Finds the first occurrence in double array from specified given position and upto given length.
      • indexOf

        public static int indexOf​(java.lang.Object[] array,
                                  java.lang.Object value)
        Finds the first occurrence in an array.
      • contains

        public static boolean contains​(java.lang.Object[] array,
                                       java.lang.Object value)
      • indexOf

        public static int indexOf​(java.lang.Object[] array,
                                  java.lang.Object value,
                                  int startIndex)
        Finds the first occurrence in an array from specified given position.
      • contains

        public static boolean contains​(java.lang.Object[] array,
                                       java.lang.Object value,
                                       int startIndex)
      • indexOf

        public static int indexOf​(byte[] array,
                                  byte[] sub)
        Finds the first occurrence in an array.
      • contains

        public static boolean contains​(byte[] array,
                                       byte[] sub)
      • indexOf

        public static int indexOf​(byte[] array,
                                  byte[] sub,
                                  int startIndex)
        Finds the first occurrence in an array from specified given position.
      • indexOf

        public static int indexOf​(byte[] array,
                                  byte[] sub,
                                  int startIndex,
                                  int endIndex)
        Finds the first occurrence in an array from specified given position and upto given length.
      • indexOf

        public static int indexOf​(char[] array,
                                  char[] sub)
        Finds the first occurrence in an array.
      • contains

        public static boolean contains​(char[] array,
                                       char[] sub)
      • indexOf

        public static int indexOf​(char[] array,
                                  char[] sub,
                                  int startIndex)
        Finds the first occurrence in an array from specified given position.
      • indexOf

        public static int indexOf​(char[] array,
                                  char[] sub,
                                  int startIndex,
                                  int endIndex)
        Finds the first occurrence in an array from specified given position and upto given length.
      • indexOf

        public static int indexOf​(short[] array,
                                  short[] sub)
        Finds the first occurrence in an array.
      • contains

        public static boolean contains​(short[] array,
                                       short[] sub)
      • indexOf

        public static int indexOf​(short[] array,
                                  short[] sub,
                                  int startIndex)
        Finds the first occurrence in an array from specified given position.
      • indexOf

        public static int indexOf​(short[] array,
                                  short[] sub,
                                  int startIndex,
                                  int endIndex)
        Finds the first occurrence in an array from specified given position and upto given length.
      • indexOf

        public static int indexOf​(int[] array,
                                  int[] sub)
        Finds the first occurrence in an array.
      • contains

        public static boolean contains​(int[] array,
                                       int[] sub)
      • indexOf

        public static int indexOf​(int[] array,
                                  int[] sub,
                                  int startIndex)
        Finds the first occurrence in an array from specified given position.
      • indexOf

        public static int indexOf​(int[] array,
                                  int[] sub,
                                  int startIndex,
                                  int endIndex)
        Finds the first occurrence in an array from specified given position and upto given length.
      • indexOf

        public static int indexOf​(long[] array,
                                  long[] sub)
        Finds the first occurrence in an array.
      • contains

        public static boolean contains​(long[] array,
                                       long[] sub)
      • indexOf

        public static int indexOf​(long[] array,
                                  long[] sub,
                                  int startIndex)
        Finds the first occurrence in an array from specified given position.
      • indexOf

        public static int indexOf​(long[] array,
                                  long[] sub,
                                  int startIndex,
                                  int endIndex)
        Finds the first occurrence in an array from specified given position and upto given length.
      • indexOf

        public static int indexOf​(boolean[] array,
                                  boolean[] sub)
        Finds the first occurrence in an array.
      • contains

        public static boolean contains​(boolean[] array,
                                       boolean[] sub)
      • indexOf

        public static int indexOf​(boolean[] array,
                                  boolean[] sub,
                                  int startIndex)
        Finds the first occurrence in an array from specified given position.
      • indexOf

        public static int indexOf​(boolean[] array,
                                  boolean[] sub,
                                  int startIndex,
                                  int endIndex)
        Finds the first occurrence in an array from specified given position and upto given length.
      • indexOf

        public static int indexOf​(float[] array,
                                  float[] sub)
        Finds the first occurrence in an array.
      • contains

        public static boolean contains​(float[] array,
                                       float[] sub)
      • indexOf

        public static int indexOf​(float[] array,
                                  float[] sub,
                                  int startIndex)
        Finds the first occurrence in an array from specified given position.
      • indexOf

        public static int indexOf​(float[] array,
                                  float[] sub,
                                  int startIndex,
                                  int endIndex)
        Finds the first occurrence in an array from specified given position and upto given length.
      • indexOf

        public static int indexOf​(double[] array,
                                  double[] sub)
        Finds the first occurrence in an array.
      • contains

        public static boolean contains​(double[] array,
                                       double[] sub)
      • indexOf

        public static int indexOf​(double[] array,
                                  double[] sub,
                                  int startIndex)
        Finds the first occurrence in an array from specified given position.
      • indexOf

        public static int indexOf​(double[] array,
                                  double[] sub,
                                  int startIndex,
                                  int endIndex)
        Finds the first occurrence in an array from specified given position and upto given length.
      • toString

        public static java.lang.String toString​(java.lang.Object[] array)
        Converts an array to string. Elements are separated by comma. Returned string contains no brackets.
      • toString

        public static java.lang.String toString​(java.lang.String[] array)
        Converts an array to string. Elements are separated by comma. Returned string contains no brackets.
      • toString

        public static java.lang.String toString​(byte[] array)
        Converts an array to string. Elements are separated by comma. Returned string contains no brackets.
      • toString

        public static java.lang.String toString​(char[] array)
        Converts an array to string. Elements are separated by comma. Returned string contains no brackets.
      • toString

        public static java.lang.String toString​(short[] array)
        Converts an array to string. Elements are separated by comma. Returned string contains no brackets.
      • toString

        public static java.lang.String toString​(int[] array)
        Converts an array to string. Elements are separated by comma. Returned string contains no brackets.
      • toString

        public static java.lang.String toString​(long[] array)
        Converts an array to string. Elements are separated by comma. Returned string contains no brackets.
      • toString

        public static java.lang.String toString​(float[] array)
        Converts an array to string. Elements are separated by comma. Returned string contains no brackets.
      • toString

        public static java.lang.String toString​(double[] array)
        Converts an array to string. Elements are separated by comma. Returned string contains no brackets.
      • toString

        public static java.lang.String toString​(boolean[] array)
        Converts an array to string. Elements are separated by comma. Returned string contains no brackets.
      • toStringArray

        public static java.lang.String[] toStringArray​(java.lang.Object[] array)
        Converts an array to string array.
      • toStringArray

        public static java.lang.String[] toStringArray​(java.lang.String[] array)
        Converts an array to string array.
      • toStringArray

        public static java.lang.String[] toStringArray​(byte[] array)
        Converts an array to string array.
      • toStringArray

        public static java.lang.String[] toStringArray​(char[] array)
        Converts an array to string array.
      • toStringArray

        public static java.lang.String[] toStringArray​(short[] array)
        Converts an array to string array.
      • toStringArray

        public static java.lang.String[] toStringArray​(int[] array)
        Converts an array to string array.
      • toStringArray

        public static java.lang.String[] toStringArray​(long[] array)
        Converts an array to string array.
      • toStringArray

        public static java.lang.String[] toStringArray​(float[] array)
        Converts an array to string array.
      • toStringArray

        public static java.lang.String[] toStringArray​(double[] array)
        Converts an array to string array.
      • toStringArray

        public static java.lang.String[] toStringArray​(boolean[] array)
        Converts an array to string array.