int[]) and
primitive wrapper arrays (like Integer[]).
This class tries to handle null input gracefully.
An exception will not be thrown for a null
array input. However, an Object array that contains a null
element may throw an exception. Each method documents its behavior.
#ThreadSafe#
| Modifier and Type | Field and Description |
|---|---|
| public static final boolean[] | EMPTY_BOOLEAN_ARRAY
An empty immutable |
| public static final Boolean[] | EMPTY_BOOLEAN_OBJECT_ARRAY
An empty immutable |
| public static final byte[] | EMPTY_BYTE_ARRAY
An empty immutable |
| public static final Byte[] | EMPTY_BYTE_OBJECT_ARRAY
An empty immutable |
| public static final char[] | EMPTY_CHAR_ARRAY
An empty immutable |
| public static final Character[] | EMPTY_CHARACTER_OBJECT_ARRAY
An empty immutable |
| public static final Class | EMPTY_CLASS_ARRAY
An empty immutable |
| public static final double[] | EMPTY_DOUBLE_ARRAY
An empty immutable |
| public static final Double[] | EMPTY_DOUBLE_OBJECT_ARRAY
An empty immutable |
| public static final Field[] | EMPTY_FIELD_ARRAY
An empty immutable |
| public static final float[] | EMPTY_FLOAT_ARRAY
An empty immutable |
| public static final Float[] | EMPTY_FLOAT_OBJECT_ARRAY
An empty immutable |
| public static final int[] | EMPTY_INT_ARRAY
An empty immutable |
| public static final Integer[] | EMPTY_INTEGER_OBJECT_ARRAY
An empty immutable |
| public static final long[] | EMPTY_LONG_ARRAY
An empty immutable |
| public static final Long[] | EMPTY_LONG_OBJECT_ARRAY
An empty immutable |
| public static final Method[] | EMPTY_METHOD_ARRAY
An empty immutable |
| public static final Object[] | EMPTY_OBJECT_ARRAY
An empty immutable |
| public static final short[] | EMPTY_SHORT_ARRAY
An empty immutable |
| public static final Short[] | EMPTY_SHORT_OBJECT_ARRAY
An empty immutable |
| public static final String[] | EMPTY_STRING_ARRAY
An empty immutable |
| public static final Throwable[] | EMPTY_THROWABLE_ARRAY
An empty immutable |
| public static final Type[] | EMPTY_TYPE_ARRAY
An empty immutable |
| public static final int | INDEX_NOT_FOUND
The index value when an element is not found in a list or array: |
| public static int | SOFT_MAX_ARRAY_LENGTH
The |
| Access | Constructor and Description |
|---|---|
| public | ArrayUtils()
Deprecated
TODO Make private in 4.0.
ArrayUtils instances should NOT be constructed in standard programming. |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean[] | Returns: A new array containing the existing elements plus the new elementthe array to copy and add the element to, may be array, final boolean nullthe object to add at the last index of the new array element)Copies the given array and adds the given element at the end of the new array. |
| public static boolean[] | Returns: A new array containing the existing elements and the new elementthe array to add the element to, may be array, final int nullthe position of the new object index, final boolean the object to add element)
Deprecated
this method has been superseded by
insert(int, boolean[], boolean. and
may be removed in a future release.
Inserts the specified element at the specified position in the array. |
| public static byte[] | Returns: A new array containing the existing elements plus the new elementthe array to copy and add the element to, may be array, final byte nullthe object to add at the last index of the new array element)Copies the given array and adds the given element at the end of the new array. |
| public static byte[] | Returns: A new array containing the existing elements and the new elementthe array to add the element to, may be array, final int nullthe position of the new object index, final byte the object to add element)
Deprecated
this method has been superseded by
insert(int, byte[], byte. and
may be removed in a future release.
Inserts the specified element at the specified position in the array. |
| public static char[] | Returns: A new array containing the existing elements plus the new elementthe array to copy and add the element to, may be array, final char nullthe object to add at the last index of the new array element)Copies the given array and adds the given element at the end of the new array. |
| public static char[] | Returns: A new array containing the existing elements and the new elementthe array to add the element to, may be array, final int nullthe position of the new object index, final char the object to add element)
Deprecated
this method has been superseded by
insert(int, char[], char. and
may be removed in a future release.
Inserts the specified element at the specified position in the array. |
| public static double[] | Returns: A new array containing the existing elements plus the new elementthe array to copy and add the element to, may be array, final double nullthe object to add at the last index of the new array element)Copies the given array and adds the given element at the end of the new array. |
| public static double[] | Returns: A new array containing the existing elements and the new elementthe array to add the element to, may be array, final int nullthe position of the new object index, final double the object to add element)
Deprecated
this method has been superseded by
insert(int, double[], double. and
may be removed in a future release.
Inserts the specified element at the specified position in the array. |
| public static float[] | Returns: A new array containing the existing elements plus the new elementthe array to copy and add the element to, may be array, final float nullthe object to add at the last index of the new array element)Copies the given array and adds the given element at the end of the new array. |
| public static float[] | Returns: A new array containing the existing elements and the new elementthe array to add the element to, may be array, final int nullthe position of the new object index, final float the object to add element)
Deprecated
this method has been superseded by
insert(int, float[], float. and
may be removed in a future release.
Inserts the specified element at the specified position in the array. |
| public static int[] | Returns: A new array containing the existing elements plus the new elementthe array to copy and add the element to, may be array, final int nullthe object to add at the last index of the new array element)Copies the given array and adds the given element at the end of the new array. |
| public static int[] | Returns: A new array containing the existing elements and the new elementthe array to add the element to, may be array, final int nullthe position of the new object index, final int the object to add element)
Deprecated
this method has been superseded by
insert(int, int[], int. and
may be removed in a future release.
Inserts the specified element at the specified position in the array. |
| public static long[] | Returns: A new array containing the existing elements and the new elementthe array to add the element to, may be array, final int nullthe position of the new object index, final long the object to add element)
Deprecated
this method has been superseded by
insert(int, long[], long. and
may be removed in a future release.
Inserts the specified element at the specified position in the array. |
| public static long[] | Returns: A new array containing the existing elements plus the new elementthe array to copy and add the element to, may be array, final long nullthe object to add at the last index of the new array element)Copies the given array and adds the given element at the end of the new array. |
| private static Object | Returns: A new array containing the existing elements and the new elementthe array to add the element to, may be array, final int nullthe position of the new object index, final Object the object to add element, final Class<?> the type of the element being added clazz)Underlying implementation of add(array, index, element) methods. |
| public static short[] | Returns: A new array containing the existing elements and the new elementthe array to add the element to, may be array, final int nullthe position of the new object index, final short the object to add element)
Deprecated
this method has been superseded by
insert(int, short[], short. and
may be removed in a future release.
Inserts the specified element at the specified position in the array. |
| public static short[] | Returns: A new array containing the existing elements plus the new elementthe array to copy and add the element to, may be array, final short nullthe object to add at the last index of the new array element)Copies the given array and adds the given element at the end of the new array. |
| public static < the component type of the array T> T[] | Returns: A new array containing the existing elements and the new elementthe array to add the element to, may be array, final int nullthe position of the new object index, final T the object to add element)
Deprecated
this method has been superseded by
insert(int, T[], T. and
may be removed in a future release.
Inserts the specified element at the specified position in the array. |
| public static < the component type of the array T> T[] | Returns: A new array containing the existing elements plus the new element The returned array type will be that of the input array (unless null), in which case it will have the same type as the element. If both are null, an IllegalArgumentException is thrownthe array to "add" the element to, may be array, final T nullthe object to add, may be element)nullCopies the given array and adds the given element at the end of the new array. |
| public static boolean[] | Returns: The new boolean[] array ornull.the first array whose elements are added to the new array. array1, final boolean... the second array whose elements are added to the new array. array2)Adds all the elements of the given arrays into a new array. |
| public static byte[] | Returns: The new byte[] array ornull.the first array whose elements are added to the new array. array1, final byte... the second array whose elements are added to the new array. array2)Adds all the elements of the given arrays into a new array. |
| public static char[] | Returns: The new char[] array ornull.the first array whose elements are added to the new array. array1, final char... the second array whose elements are added to the new array. array2)Adds all the elements of the given arrays into a new array. |
| public static double[] | Returns: The new double[] array ornull.the first array whose elements are added to the new array. array1, final double... the second array whose elements are added to the new array. array2)Adds all the elements of the given arrays into a new array. |
| public static float[] | Returns: The new float[] array ornull.the first array whose elements are added to the new array. array1, final float... the second array whose elements are added to the new array. array2)Adds all the elements of the given arrays into a new array. |
| public static int[] | Returns: The new int[] array ornull.the first array whose elements are added to the new array. array1, final int... the second array whose elements are added to the new array. array2)Adds all the elements of the given arrays into a new array. |
| public static long[] | Returns: The new long[] array ornull.the first array whose elements are added to the new array. array1, final long... the second array whose elements are added to the new array. array2)Adds all the elements of the given arrays into a new array. |
| public static short[] | Returns: The new short[] array ornull.the first array whose elements are added to the new array. array1, final short... the second array whose elements are added to the new array. array2)Adds all the elements of the given arrays into a new array. |
| public static < the component type of the array T> T[] | Returns: The new array,null if both arrays are null.
The type of the new array is the type of the first array,
unless the first array is null, in which case the type is the same as the second array.the first array whose elements are added to the new array, may be array1, final T... nullthe second array whose elements are added to the new array, may be array2)nullAdds all the elements of the given arrays into a new array. |
| public static boolean[] | Returns: A new array containing the existing elements plus the new element The returned array type will be that of the input array (unless null), in which case it will have the same type as the element.the array to "add" the element to, may be array, final boolean null.the object to add. element)Copies the given array and adds the given element at the beginning of the new array. |
| public static byte[] | Returns: A new array containing the existing elements plus the new element The returned array type will be that of the input array (unless null), in which case it will have the same type as the element.the array to "add" the element to, may be array, final byte null.the object to add. element)Copies the given array and adds the given element at the beginning of the new array. |
| public static char[] | Returns: A new array containing the existing elements plus the new element The returned array type will be that of the input array (unless null), in which case it will have the same type as the element.the array to "add" the element to, may be array, final char null.the object to add. element)Copies the given array and adds the given element at the beginning of the new array. |
| public static double[] | Returns: A new array containing the existing elements plus the new element The returned array type will be that of the input array (unless null), in which case it will have the same type as the element.the array to "add" the element to, may be array, final double null.the object to add. element)Copies the given array and adds the given element at the beginning of the new array. |
| public static float[] | Returns: A new array containing the existing elements plus the new element The returned array type will be that of the input array (unless null), in which case it will have the same type as the element.the array to "add" the element to, may be array, final float null.the object to add. element)Copies the given array and adds the given element at the beginning of the new array. |
| public static int[] | Returns: A new array containing the existing elements plus the new element The returned array type will be that of the input array (unless null), in which case it will have the same type as the element.the array to "add" the element to, may be array, final int null.the object to add. element)Copies the given array and adds the given element at the beginning of the new array. |
| public static long[] | Returns: A new array containing the existing elements plus the new element The returned array type will be that of the input array (unless null), in which case it will have the same type as the element.the array to "add" the element to, may be array, final long null.the object to add. element)Copies the given array and adds the given element at the beginning of the new array. |
| public static short[] | Returns: A new array containing the existing elements plus the new element The returned array type will be that of the input array (unless null), in which case it will have the same type as the element.the array to "add" the element to, may be array, final short null.the object to add. element)Copies the given array and adds the given element at the beginning of the new array. |
| public static < the component type of the array T> T[] | Returns: A new array containing the existing elements plus the new element The returned array type will be that of the input array (unless null), in which case it will have the same type as the element. If both are null, an IllegalArgumentException is thrownthe array to "add" the element to, may be array, final T nullthe object to add, may be element)nullCopies the given array and adds the given element at the beginning of the new array. |
| public static < the type. T> T | Returns: destthe source array. source, final int starting position in the source array. sourcePos, final int starting position in the destination data. destPos, final int the number of array elements to be copied. length, final Function<Integer, T> allocates the array to populate and return. allocator)A fluent version of |
| public static < the type. T> T | Returns: destthe source array. source, final int starting position in the source array. sourcePos, final int starting position in the destination data. destPos, final int the number of array elements to be copied. length, final Supplier<T> allocates the array to populate and return. allocator)A fluent version of |
| public static < the type T> T | Returns: destthe source array. source, final int starting position in the source array. sourcePos, final T the destination array. dest, final int starting position in the destination data. destPos, final int the number of array elements to be copied. length)A fluent version of |
| public static boolean[] | Returns: the cloned array,null if null inputthe array to clone, may be array)nullClones an array or returns |
| public static byte[] | Returns: the cloned array,null if null inputthe array to clone, may be array)nullClones an array or returns |
| public static char[] | Returns: the cloned array,null if null inputthe array to clone, may be array)nullClones an array or returns |
| public static double[] | Returns: the cloned array,null if null inputthe array to clone, may be array)nullClones an array or returns |
| public static float[] | Returns: the cloned array,null if null inputthe array to clone, may be array)nullClones an array or returns |
| public static int[] | Returns: the cloned array,null if null inputthe array to clone, may be array)nullClones an array or returns |
| public static long[] | Returns: the cloned array,null if null inputthe array to clone, may be array)nullClones an array or returns |
| public static short[] | Returns: the cloned array,null if null inputthe array to clone, may be array)nullClones an array or returns |
| public static < the component type of the array T> T[] | Returns: the cloned array,null if null inputthe array to shallow clone, may be array)nullShallow clones an array or returns |
| public static boolean | Returns: true if the array contains the objectthe array to search array, final boolean the value to find valueToFind)Checks if the value is in the given array. |
| public static boolean | Returns: true if the array contains the objectthe array to search array, final byte the value to find valueToFind)Checks if the value is in the given array. |
| public static boolean | Returns: true if the array contains the objectthe array to search array, final char the value to find valueToFind)Checks if the value is in the given array. |
| public static boolean | Returns: true if the array contains the objectthe array to search array, final double the value to find valueToFind)Checks if the value is in the given array. |
| public static boolean | Returns: true if value falling within tolerance is in arraythe array to search array, final double the value to find valueToFind, final double the array contains the tolerance of the search tolerance)Checks if a value falling within the given tolerance is in the given array. |
| public static boolean | Returns: true if the array contains the objectthe array to search array, final float the value to find valueToFind)Checks if the value is in the given array. |
| public static boolean | Returns: true if the array contains the objectthe array to search array, final int the value to find valueToFind)Checks if the value is in the given array. |
| public static boolean | Returns: true if the array contains the objectthe array to search array, final long the value to find valueToFind)Checks if the value is in the given array. |
| public static boolean | |
| public static boolean | Returns: true if the array contains the objectthe array to search array, final short the value to find valueToFind)Checks if the value is in the given array. |
| public static boolean | Returns: true if the array contains any of the intsthe array to search array, final int... any of the ints to find objectsToFind)Checks if any of the ints are in the given array. |
| public static boolean | Returns: true if the array contains any of the objectsthe array to search, may be array, final Object... null.any of the objects to find, may be objectsToFind)null.Checks if any of the objects are in the given array. |
| private static Object | Returns: A new copy of the array of size 1 greater than the input.The array to copy, must not be array, final Class<?> null.If newArrayComponentType)array is null, create a
size 1 array of this type.Returns a copy of the given array of size 1 greater than the argument. |
| public static < The type of array elements. T> T | Returns: the nTh element of an array or null if the index is out of bounds or the array is null.The array to index. array, final int The index index)Gets the nTh element of an array or null if the index is out of bounds or the array is null. |
| public static < The type of array elements. T> T | Returns: the nTh element of an array or a default value if the index is out of bounds.The array to index. array, final int The index index, final T The return value of the given index is out of bounds. defaultValue)Gets the nTh element of an array or a default value if the index is out of bounds. |
| public static < The array type. T> Class | Returns: The component type.The array. array)Gets an array's component type. |
| public static int | |
| public static int | |
| pack-priv static <K> void | |
| public static BitSet | Returns: a BitSet of all the indices of the value within the array, an empty BitSet if not found ornull array inputthe array to search for the object, may be array, final boolean nullthe value to find valueToFind)Finds the indices of the given value in the array. |
| public static BitSet | Returns: a BitSet of all the indices of the value within the array, an empty BitSet if not found ornull
array inputthe array to search for the object, may be array, final boolean nullthe value to find valueToFind, int the index to start searching at startIndex)Finds the indices of the given value in the array starting at the given index. |
| public static BitSet | Returns: a BitSet of all the indices of the value within the array, an empty BitSet if not found ornull array inputthe array to search for the object, may be array, final byte nullthe value to find valueToFind)Finds the indices of the given value in the array. |
| public static BitSet | Returns: a BitSet of all the indices of the value within the array, an empty BitSet if not found ornull array inputthe array to search for the object, may be array, final byte nullthe value to find valueToFind, int the index to start searching at startIndex)Finds the indices of the given value in the array starting at the given index. |
| public static BitSet | Returns: a BitSet of all the indices of the value within the array, an empty BitSet if not found ornull array inputthe array to search for the object, may be array, final char nullthe value to find valueToFind)Finds the indices of the given value in the array. |
| public static BitSet | Returns: a BitSet of all the indices of the value within the array, an empty BitSet if not found ornull array inputthe array to search for the object, may be array, final char nullthe value to find valueToFind, int the index to start searching at startIndex)Finds the indices of the given value in the array starting at the given index. |
| public static BitSet | Returns: a BitSet of all the indices of the value within the array, an empty BitSet if not found ornull array inputthe array to search for the object, may be array, final double nullthe value to find valueToFind)Finds the indices of the given value in the array. |
| public static BitSet | Returns: a BitSet of all the indices of the value within the array, an empty BitSet if not found ornull array inputthe array to search for the object, may be array, final double nullthe value to find valueToFind, final double tolerance of the search tolerance)Finds the indices of the given value within a given tolerance in the array. |
| public static BitSet | Returns: a BitSet of the indices of the value within the array, an empty BitSet if not found ornull array inputthe array to search for the object, may be array, final double nullthe value to find valueToFind, int the index to start searching at startIndex)Finds the indices of the given value in the array starting at the given index. |
| public static BitSet | Returns: a BitSet of the indices of the value within the array, an empty BitSet if not found ornull array inputthe array to search for the object, may be array, final double nullthe value to find valueToFind, int the index to start searching at startIndex, final double tolerance of the search tolerance)Finds the indices of the given value in the array starting at the given index. |
| public static BitSet | Returns: a BitSet of all the indices of the value within the array, an empty BitSet if not found ornull array inputthe array to search for the object, may be array, final float nullthe value to find valueToFind)Finds the indices of the given value in the array. |
| public static BitSet | Returns: a BitSet of all the indices of the value within the array, an empty BitSet if not found ornull array inputthe array to search for the object, may be array, final float nullthe value to find valueToFind, int the index to start searching at startIndex)Finds the indices of the given value in the array starting at the given index. |
| public static BitSet | Returns: a BitSet of all the indices of the value within the array, an empty BitSet if not found ornull array inputthe array to search for the object, may be array, final int nullthe value to find valueToFind)Finds the indices of the given value in the array. |
| public static BitSet | Returns: a BitSet of all the indices of the value within the array, an empty BitSet if not found ornull array inputthe array to search for the object, may be array, final int nullthe value to find valueToFind, int the index to start searching at startIndex)Finds the indices of the given value in the array starting at the given index. |
| public static BitSet | Returns: a BitSet of all the indices of the value within the array, an empty BitSet if not found ornull array inputthe array to search for the object, may be array, final long nullthe value to find valueToFind)Finds the indices of the given value in the array. |
| public static BitSet | Returns: a BitSet of all the indices of the value within the array, an empty BitSet if not found ornull array inputthe array to search for the object, may be array, final long nullthe value to find valueToFind, int the index to start searching at startIndex)Finds the indices of the given value in the array starting at the given index. |
| public static BitSet | Returns: a BitSet of all the indices of the object within the array, an empty BitSet if not found ornull array inputthe array to search for the object, may be array, final Object null.the object to find, may be objectToFind)null.Finds the indices of the given object in the array. |
| public static BitSet | Returns: a BitSet of all the indices of the object within the array starting at the index, an empty BitSet if not found ornull array inputthe array to search for the object, may be array, final Object null.the object to find, may be objectToFind, int null.the index to start searching at startIndex)Finds the indices of the given object in the array starting at the given index. |
| public static BitSet | Returns: a BitSet of all the indices of the value within the array, an empty BitSet if not found ornull array inputthe array to search for the object, may be array, final short nullthe value to find valueToFind)Finds the indices of the given value in the array. |
| public static BitSet | Returns: a BitSet of all the indices of the value within the array, an empty BitSet if not found ornull array inputthe array to search for the object, may be array, final short nullthe value to find valueToFind, int the index to start searching at startIndex)Finds the indices of the given value in the array starting at the given index. |
| public static int | Returns: the index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to search for the object, may be array, final boolean nullthe value to find valueToFind)Finds the index of the given value in the array. |
| public static int | Returns: the index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null
array inputthe array to search for the object, may be array, final boolean nullthe value to find valueToFind, final int the index to start searching at startIndex)Finds the index of the given value in the array starting at the given index. |
| public static int | Returns: the index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to search for the object, may be array, final byte nullthe value to find valueToFind)Finds the index of the given value in the array. |
| public static int | Returns: the index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to search for the object, may be array, final byte nullthe value to find valueToFind, final int the index to start searching at startIndex)Finds the index of the given value in the array starting at the given index. |
| public static int | Returns: the index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to search for the object, may be array, final char nullthe value to find valueToFind)Finds the index of the given value in the array. |
| public static int | Returns: the index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to search for the object, may be array, final char nullthe value to find valueToFind, final int the index to start searching at startIndex)Finds the index of the given value in the array starting at the given index. |
| public static int | Returns: the index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to search for the object, may be array, final double nullthe value to find valueToFind)Finds the index of the given value in the array. |
| public static int | Returns: the index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to search for the object, may be array, final double nullthe value to find valueToFind, final double tolerance of the search tolerance)Finds the index of the given value within a given tolerance in the array. |
| public static int | Returns: the index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to search for the object, may be array, final double nullthe value to find valueToFind, final int the index to start searching at startIndex)Finds the index of the given value in the array starting at the given index. |
| public static int | Returns: the index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to search for the object, may be array, final double nullthe value to find valueToFind, final int the index to start searching at startIndex, final double tolerance of the search tolerance)Finds the index of the given value in the array starting at the given index. |
| public static int | Returns: the index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to search for the object, may be array, final float nullthe value to find valueToFind)Finds the index of the given value in the array. |
| public static int | Returns: the index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to search for the object, may be array, final float nullthe value to find valueToFind, final int the index to start searching at startIndex)Finds the index of the given value in the array starting at the given index. |
| public static int | Returns: the index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to search for the object, may be array, final int nullthe value to find valueToFind)Finds the index of the given value in the array. |
| public static int | Returns: the index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to search for the object, may be array, final int nullthe value to find valueToFind, final int the index to start searching at startIndex)Finds the index of the given value in the array starting at the given index. |
| public static int | Returns: the index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null
array inputthe array to search for the object, may be array, final long nullthe value to find valueToFind)Finds the index of the given value in the array. |
| public static int | Returns: the index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to search for the object, may be array, final long nullthe value to find valueToFind, final int the index to start searching at startIndex)Finds the index of the given value in the array starting at the given index. |
| public static int | Returns: the index of the object within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to search for the object, may be array, final Object null.the object to find, may be objectToFind)null.Finds the index of the given object in the array. |
| public static int | Returns: the index of the object within the array starting at the index,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to search for the object, may be array, final Object null.the object to find, may be objectToFind, int null.the index to start searching at startIndex)Finds the index of the given object in the array starting at the given index. |
| public static int | Returns: the index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to search for the object, may be array, final short nullthe value to find valueToFind)Finds the index of the given value in the array. |
| public static int | Returns: the index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to search for the object, may be array, final short nullthe value to find valueToFind, final int the index to start searching at startIndex)Finds the index of the given value in the array starting at the given index. |
| public static boolean[] | Returns: The new array ornull if the given array is null.the position within index, final boolean[] array to insert the new valuesthe array to insert the values into, may be array, final boolean... nullthe new values to insert, may be values)nullInserts elements into an array at the given index (starting from zero). |
| public static byte[] | Returns: The new array ornull if the given array is null.the position within index, final byte[] array to insert the new valuesthe array to insert the values into, may be array, final byte... nullthe new values to insert, may be values)nullInserts elements into an array at the given index (starting from zero). |
| public static char[] | Returns: The new array ornull if the given array is null.the position within index, final char[] array to insert the new valuesthe array to insert the values into, may be array, final char... nullthe new values to insert, may be values)nullInserts elements into an array at the given index (starting from zero). |
| public static double[] | Returns: The new array ornull if the given array is null.the position within index, final double[] array to insert the new valuesthe array to insert the values into, may be array, final double... nullthe new values to insert, may be values)nullInserts elements into an array at the given index (starting from zero). |
| public static float[] | Returns: The new array ornull if the given array is null.the position within index, final float[] array to insert the new valuesthe array to insert the values into, may be array, final float... nullthe new values to insert, may be values)nullInserts elements into an array at the given index (starting from zero). |
| public static int[] | Returns: The new array ornull if the given array is null.the position within index, final int[] array to insert the new valuesthe array to insert the values into, may be array, final int... nullthe new values to insert, may be values)nullInserts elements into an array at the given index (starting from zero). |
| public static long[] | Returns: The new array ornull if the given array is null.the position within index, final long[] array to insert the new valuesthe array to insert the values into, may be array, final long... nullthe new values to insert, may be values)nullInserts elements into an array at the given index (starting from zero). |
| public static short[] | Returns: The new array ornull if the given array is null.the position within index, final short[] array to insert the new valuesthe array to insert the values into, may be array, final short... nullthe new values to insert, may be values)nullInserts elements into an array at the given index (starting from zero). |
| public static < The type of elements in T> T[]array and values | Returns: The new array ornull if the given array is null.the position within index, final T[] array to insert the new valuesthe array to insert the values into, may be array, final T... nullthe new values to insert, may be values)nullInserts elements into an array at the given index (starting from zero). |
| private static boolean | Returns: true if the array is empty or nullthe array to test array)Checks if an array is empty or |
| public static < the component type of the array T> boolean | Returns: Whether the given index is safely-accessible in the given arraythe array to inspect, may be array, final int null.the index of the array to be inspected index)Tests whether a given array can safely be accessed at the given index. |
| public static boolean | Returns: true if the array is empty or nullthe array to test array)Tests whether an array of primitive booleans is empty or |
| public static boolean | Returns: true if the array is empty or nullthe array to test array)Tests whether an array of primitive bytes is empty or |
| public static boolean | Returns: true if the array is empty or nullthe array to test array)Tests whether an array of primitive chars is empty or |
| public static boolean | Returns: true if the array is empty or nullthe array to test array)Tests whether an array of primitive doubles is empty or |
| public static boolean | Returns: true if the array is empty or nullthe array to test array)Tests whether an array of primitive floats is empty or |
| public static boolean | Returns: true if the array is empty or nullthe array to test array)Tests whether an array of primitive ints is empty or |
| public static boolean | Returns: true if the array is empty or nullthe array to test array)Tests whether an array of primitive longs is empty or |
| public static boolean | |
| public static boolean | Returns: true if the array is empty or nullthe array to test array)Tests whether an array of primitive shorts is empty or |
| public static boolean | Returns: true if the arrays are equalthe left-hand side array to compare, may be array1, final Object nullthe right-hand side array to compare, may be array2)null
Deprecated
this method has been replaced by
java.util.Objects.deepEquals(Object, Object) and will be
removed from future releases.
Tests whether two arrays have equal content, using equals(), handling multidimensional arrays correctly. |
| public static boolean | Returns: true if the array is not empty and not nullthe array to test array)Tests whether an array of primitive booleans is not empty and not |
| public static boolean | Returns: true if the array is not empty and not nullthe array to test array)Tests whether an array of primitive bytes is not empty and not |
| public static boolean | Returns: true if the array is not empty and not nullthe array to test array)Tests whether an array of primitive chars is not empty and not |
| public static boolean | Returns: true if the array is not empty and not nullthe array to test array)Tests whether an array of primitive doubles is not empty and not |
| public static boolean | Returns: true if the array is not empty and not nullthe array to test array)Tests whether an array of primitive floats is not empty and not |
| public static boolean | Returns: true if the array is not empty and not nullthe array to test array)Tests whether an array of primitive ints is not empty and not |
| public static boolean | Returns: true if the array is not empty and not nullthe array to test array)Tests whether an array of primitive longs is not empty and not |
| public static boolean | Returns: true if the array is not empty and not nullthe array to test array)Tests whether an array of primitive shorts is not empty and not |
| public static < the component type of the array T> boolean | Returns: true if the array is not empty and not nullthe array to test array)Tests whether an array of Objects is not empty and not |
| public static boolean | Returns: true if length of arrays matches, treating
null as an empty arraythe first array, may be array1, final boolean[] nullthe second array, may be array2)nullTests whether two arrays are the same length, treating
|
| public static boolean | Returns: true if length of arrays matches, treating
null as an empty arraythe first array, may be array1, final byte[] nullthe second array, may be array2)nullTests whether two arrays are the same length, treating
|
| public static boolean | Returns: true if length of arrays matches, treating
null as an empty arraythe first array, may be array1, final char[] nullthe second array, may be array2)nullTests whether two arrays are the same length, treating
|
| public static boolean | Returns: true if length of arrays matches, treating
null as an empty arraythe first array, may be array1, final double[] nullthe second array, may be array2)nullTests whether two arrays are the same length, treating
|
| public static boolean | Returns: true if length of arrays matches, treating
null as an empty arraythe first array, may be array1, final float[] nullthe second array, may be array2)nullTests whether two arrays are the same length, treating
|
| public static boolean | Returns: true if length of arrays matches, treating
null as an empty arraythe first array, may be array1, final int[] nullthe second array, may be array2)nullTests whether two arrays are the same length, treating
|
| public static boolean | Returns: true if length of arrays matches, treating
null as an empty arraythe first array, may be array1, final long[] nullthe second array, may be array2)nullTests whether two arrays are the same length, treating
|
| public static boolean | Returns: true if length of arrays matches, treating
null as an empty arraythe first array, may be array1, final Object nullthe second array, may be array2)nullTests whether two arrays are the same length, treating
|
| public static boolean | Returns: true if length of arrays matches, treating
null as an empty arraythe first array, may be array1, final Object[] nullthe second array, may be array2)nullTests whether two arrays are the same length, treating
|
| public static boolean | Returns: true if length of arrays matches, treating
null as an empty arraythe first array, may be array1, final short[] nullthe second array, may be array2)nullTests whether two arrays are the same length, treating
|
| public static boolean | Returns: true if type of arrays matchesthe first array, must not be array1, final Object nullthe second array, must not be array2)nullTests whether two arrays are the same type taking into account multidimensional arrays. |
| public static boolean | Returns: whether the array is sorted according to natural orderingthe array to check array)Tests whether whether the provided array is sorted according to natural ordering
( |
| public static boolean | Returns: whether the array is sorted according to natural orderingthe array to check array)Tests whether the provided array is sorted according to natural ordering. |
| public static boolean | Returns: whether the array is sorted according to natural orderingthe array to check array)Tests whether the provided array is sorted according to natural ordering. |
| public static boolean | Returns: whether the array is sorted according to natural orderingthe array to check array)Tests whether the provided array is sorted according to natural ordering. |
| public static boolean | Returns: whether the array is sorted according to natural orderingthe array to check array)Tests whether the provided array is sorted according to natural ordering. |
| public static boolean | Returns: whether the array is sorted according to natural orderingthe array to check array)Tests whether the provided array is sorted according to natural ordering. |
| public static boolean | Returns: whether the array is sorted according to natural orderingthe array to check array)Tests whether the provided array is sorted according to natural ordering. |
| public static boolean | Returns: whether the array is sorted according to natural orderingthe array to check array)Tests whether the provided array is sorted according to natural ordering. |
| public static < the datatype of the array to check, it must implement T extends ComparableComparable | Returns: whether the array is sortedthe array to check array)Tests whether the provided array is sorted according to the class's
|
| public static < the datatype of the array T> boolean | Returns: whether the array is sortedthe array to check array, final Comparator<T> the comparator)Comparator to compare overTests whether the provided array is sorted according to the provided |
| public static int | Returns: the last index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to traverse backwards looking for the object, may be array, final boolean nullthe object to find valueToFind)Finds the last index of the given value within the array. |
| public static int | Returns: the last index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to traverse for looking for the object, may be array, final boolean nullthe value to find valueToFind, int the start index to traverse backwards from startIndex)Finds the last index of the given value in the array starting at the given index. |
| public static int | Returns: the last index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to traverse backwards looking for the object, may be array, final byte nullthe object to find valueToFind)Finds the last index of the given value within the array. |
| public static int | Returns: the last index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to traverse for looking for the object, may be array, final byte nullthe value to find valueToFind, int the start index to traverse backwards from startIndex)Finds the last index of the given value in the array starting at the given index. |
| public static int | Returns: the last index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to traverse backwards looking for the object, may be array, final char nullthe object to find valueToFind)Finds the last index of the given value within the array. |
| public static int | Returns: the last index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to traverse for looking for the object, may be array, final char nullthe value to find valueToFind, int the start index to traverse backwards from startIndex)Finds the last index of the given value in the array starting at the given index. |
| public static int | Returns: the last index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to traverse backwards looking for the object, may be array, final double nullthe object to find valueToFind)Finds the last index of the given value within the array. |
| public static int | Returns: the index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to search for the object, may be array, final double nullthe value to find valueToFind, final double tolerance of the search tolerance)Finds the last index of the given value within a given tolerance in the array. |
| public static int | Returns: the last index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to traverse for looking for the object, may be array, final double nullthe value to find valueToFind, int the start index to traverse backwards from startIndex)Finds the last index of the given value in the array starting at the given index. |
| public static int | Returns: the last index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to traverse for looking for the object, may be array, final double nullthe value to find valueToFind, int the start index to traverse backwards from startIndex, final double search for value within plus/minus this amount tolerance)Finds the last index of the given value in the array starting at the given index. |
| public static int | Returns: the last index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to traverse backwards looking for the object, may be array, final float nullthe object to find valueToFind)Finds the last index of the given value within the array. |
| public static int | Returns: the last index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to traverse for looking for the object, may be array, final float nullthe value to find valueToFind, int the start index to traverse backwards from startIndex)Finds the last index of the given value in the array starting at the given index. |
| public static int | Returns: the last index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to traverse backwards looking for the object, may be array, final int nullthe object to find valueToFind)Finds the last index of the given value within the array. |
| public static int | Returns: the last index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to traverse for looking for the object, may be array, final int nullthe value to find valueToFind, int the start index to traverse backwards from startIndex)Finds the last index of the given value in the array starting at the given index. |
| public static int | Returns: the last index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to traverse backwards looking for the object, may be array, final long nullthe object to find valueToFind)Finds the last index of the given value within the array. |
| public static int | Returns: the last index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to traverse for looking for the object, may be array, final long nullthe value to find valueToFind, int the start index to traverse backwards from startIndex)Finds the last index of the given value in the array starting at the given index. |
| public static int | Returns: the last index of the object within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to traverse backwards looking for the object, may be array, final Object nullthe object to find, may be objectToFind)nullFinds the last index of the given object within the array. |
| public static int | Returns: the last index of the object within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to traverse for looking for the object, may be array, final Object nullthe object to find, may be objectToFind, int nullthe start index to traverse backwards from startIndex)Finds the last index of the given object in the array starting at the given index. |
| public static int | Returns: the last index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to traverse backwards looking for the object, may be array, final short nullthe object to find valueToFind)Finds the last index of the given value within the array. |
| public static int | Returns: the last index of the value within the array,INDEX_NOT_FOUND (-1) if not found or null array inputthe array to traverse for looking for the object, may be array, final short nullthe value to find valueToFind, int the start index to traverse backwards from startIndex)Finds the last index of the given value in the array starting at the given index. |
| private static < The input array type. T, The output array type. R, The type of exceptions thrown when the mapper function fails. E extends Throwable> R[] | Returns: a new arrayThe input array. array, final Class<R> the component type of the result array. componentType, final FailableFunction<? super T, ? extends R, E> a non-interfering, stateless function to apply to each element mapper)Maps elements from an array into elements of a new array of a given type, while mapping old elements to new elements. |
| private static int | |
| public static < The array type. T> T[] | Returns: The new array.The array class. componentType, final int the array length length)Delegates to |
| public static < The array type. T> T[] | Returns: the same array, or defaultArray ifnull or empty input.the array to check for array, final T[] null or emptyA default array, usually empty. defaultArray)Defensive programming technique to change a |
| public static boolean[] | Returns: the same array,public static empty array if null or empty inputthe array to check for array)null or emptyDefensive programming technique to change a |
| public static Boolean[] | Returns: the same array,public static empty array if null or empty inputthe array to check for array)null or emptyDefensive programming technique to change a |
| public static byte[] | Returns: the same array,public static empty array if null or empty inputthe array to check for array)null or emptyDefensive programming technique to change a |
| public static Byte[] | Returns: the same array,public static empty array if null or empty inputthe array to check for array)null or emptyDefensive programming technique to change a |
| public static char[] | Returns: the same array,public static empty array if null or empty inputthe array to check for array)null or emptyDefensive programming technique to change a |
| public static Character[] | Returns: the same array,public static empty array if null or empty inputthe array to check for array)null or emptyDefensive programming technique to change a |
| public static Class | Returns: the same array,public static empty array if null or empty inputthe array to check for array)null or emptyDefensive programming technique to change a |
| public static double[] | Returns: the same array,public static empty array if null or empty inputthe array to check for array)null or emptyDefensive programming technique to change a |
| public static Double[] | Returns: the same array,public static empty array if null or empty inputthe array to check for array)null or emptyDefensive programming technique to change a |
| public static float[] | Returns: the same array,public static empty array if null or empty inputthe array to check for array)null or emptyDefensive programming technique to change a |
| public static Float[] | Returns: the same array,public static empty array if null or empty inputthe array to check for array)null or emptyDefensive programming technique to change a |
| public static int[] | Returns: the same array,public static empty array if null or empty inputthe array to check for array)null or emptyDefensive programming technique to change a |
| public static Integer[] | Returns: the same array,public static empty array if null or empty inputthe array to check for array)null or emptyDefensive programming technique to change a |
| public static long[] | Returns: the same array,public static empty array if null or empty inputthe array to check for array)null or emptyDefensive programming technique to change a |
| public static Long[] | Returns: the same array,public static empty array if null or empty inputthe array to check for array)null or emptyDefensive programming technique to change a |
| public static Object[] | Returns: the same array,public static empty array if null or empty inputthe array to check for array)null or emptyDefensive programming technique to change a |
| public static short[] | Returns: the same array,public static empty array if null or empty inputthe array to check for array)null or emptyDefensive programming technique to change a |
| public static Short[] | Returns: the same array,public static empty array if null or empty inputthe array to check for array)null or emptyDefensive programming technique to change a |
| public static String[] | Returns: the same array,public static empty array if null or empty inputthe array to check for array)null or emptyDefensive programming technique to change a |
| public static < the class type T> T[] | Returns: the same array,public static empty array if nullthe array to check for array, final Class<T[]> null or emptythe class representation of the desired array type)Defensive programming technique to change a |
| private static ThreadLocalRandom | Returns: the current ThreadLocalRandom.Gets the |
| public static boolean[] | Returns: A new array containing the existing elements except the element at the specified position.the array to remove the element from, may not be array, final int nullthe position of the element to be removed index)Removes the element at the specified position from the specified array. |
| public static byte[] | Returns: A new array containing the existing elements except the element at the specified position.the array to remove the element from, may not be array, final int nullthe position of the element to be removed index)Removes the element at the specified position from the specified array. |
| public static char[] | Returns: A new array containing the existing elements except the element at the specified position.the array to remove the element from, may not be array, final int nullthe position of the element to be removed index)Removes the element at the specified position from the specified array. |
| public static double[] | Returns: A new array containing the existing elements except the element at the specified position.the array to remove the element from, may not be array, final int nullthe position of the element to be removed index)Removes the element at the specified position from the specified array. |
| public static float[] | Returns: A new array containing the existing elements except the element at the specified position.the array to remove the element from, may not be array, final int nullthe position of the element to be removed index)Removes the element at the specified position from the specified array. |
| public static int[] | Returns: A new array containing the existing elements except the element at the specified position.the array to remove the element from, may not be array, final int nullthe position of the element to be removed index)Removes the element at the specified position from the specified array. |
| public static long[] | Returns: A new array containing the existing elements except the element at the specified position.the array to remove the element from, may not be array, final int nullthe position of the element to be removed index)Removes the element at the specified position from the specified array. |
| private static Object | Returns: A new array containing the existing elements except the element at the specified position.the array to remove the element from, may not be array, final int nullthe position of the element to be removed index)Removes the element at the specified position from the specified array. |
| public static short[] | Returns: A new array containing the existing elements except the element at the specified position.the array to remove the element from, may not be array, final int nullthe position of the element to be removed index)Removes the element at the specified position from the specified array. |
| public static < the component type of the array T> T[] | Returns: A new array containing the existing elements except the element at the specified position.the array to remove the element from, may not be array, final int nullthe position of the element to be removed index)Removes the element at the specified position from the specified array. |
| public static boolean[] | Returns: A new array containing the existing elements except those at the specified positions.the array to remove the element from, may not be array, final int... nullthe positions of the elements to be removed indices)Removes the elements at the specified positions from the specified array. |
| public static byte[] | Returns: A new array containing the existing elements except those at the specified positions.the array to remove the element from, may not be array, final int... nullthe positions of the elements to be removed indices)Removes the elements at the specified positions from the specified array. |
| public static char[] | Returns: A new array containing the existing elements except those at the specified positions.the array to remove the element from, may not be array, final int... nullthe positions of the elements to be removed indices)Removes the elements at the specified positions from the specified array. |
| public static double[] | Returns: A new array containing the existing elements except those at the specified positions.the array to remove the element from, may not be array, final int... nullthe positions of the elements to be removed indices)Removes the elements at the specified positions from the specified array. |
| public static float[] | Returns: A new array containing the existing elements except those at the specified positions.the array to remove the element from, may not be array, final int... nullthe positions of the elements to be removed indices)Removes the elements at the specified positions from the specified array. |
| public static int[] | Returns: A new array containing the existing elements except those at the specified positions.the array to remove the element from, may not be array, final int... nullthe positions of the elements to be removed indices)Removes the elements at the specified positions from the specified array. |
| public static long[] | Returns: A new array containing the existing elements except those at the specified positions.the array to remove the element from, may not be array, final int... nullthe positions of the elements to be removed indices)Removes the elements at the specified positions from the specified array. |
| pack-priv static Object | |
| public static short[] | Returns: A new array containing the existing elements except those at the specified positions.the array to remove the element from, may not be array, final int... nullthe positions of the elements to be removed indices)Removes the elements at the specified positions from the specified array. |
| public static < the component type of the array T> T[] | Returns: A new array containing the existing elements except those at the specified positions.the array to remove the element from, may not be array, final int... nullthe positions of the elements to be removed indices)Removes the elements at the specified positions from the specified array. |
| public static boolean[] | Returns: A new array containing the existing elements except the occurrences of the specified element.the input array, will not be modified, and may be array, final boolean null.the element to remove. element)
Deprecated
Use
removeAllOccurrences(boolean[], boolean).
Removes the occurrences of the specified element from the specified boolean array. |
| public static byte[] | Returns: A new array containing the existing elements except the occurrences of the specified element.the input array, will not be modified, and may be array, final byte null.the element to remove. element)
Deprecated
Use
removeAllOccurrences(byte[], byte).
Removes the occurrences of the specified element from the specified byte array. |
| public static char[] | Returns: A new array containing the existing elements except the occurrences of the specified element.the input array, will not be modified, and may be array, final char null.the element to remove. element)
Deprecated
Use
removeAllOccurrences(char[], char).
Removes the occurrences of the specified element from the specified char array. |
| public static double[] | Returns: A new array containing the existing elements except the occurrences of the specified element.the input array, will not be modified, and may be array, final double null.the element to remove. element)
Deprecated
Use
removeAllOccurrences(double[], double).
Removes the occurrences of the specified element from the specified double array. |
| public static float[] | Returns: A new array containing the existing elements except the occurrences of the specified element.the input array, will not be modified, and may be array, final float null.the element to remove. element)
Deprecated
Use
removeAllOccurrences(float[], float).
Removes the occurrences of the specified element from the specified float array. |
| public static int[] | Returns: A new array containing the existing elements except the occurrences of the specified element.the input array, will not be modified, and may be array, final int null.the element to remove. element)
Deprecated
Use
removeAllOccurrences(int[], int).
Removes the occurrences of the specified element from the specified int array. |
| public static long[] | Returns: A new array containing the existing elements except the occurrences of the specified element.the input array, will not be modified, and may be array, final long null.the element to remove. element)
Deprecated
Use
removeAllOccurrences(long[], long).
Removes the occurrences of the specified element from the specified long array. |
| public static short[] | Returns: A new array containing the existing elements except the occurrences of the specified element.the input array, will not be modified, and may be array, final short null.the element to remove. element)
Deprecated
Use
removeAllOccurrences(short[], short).
Removes the occurrences of the specified element from the specified short array. |
| public static < the type of object in the array, may be T> T[]null. | Returns: A new array containing the existing elements except the occurrences of the specified element.the input array, will not be modified, and may be array, final T null.the element to remove, may be element)null.
Deprecated
Use
removeAllOccurrences(Object[], Object).
Removes the occurrences of the specified element from the specified array. |
| public static boolean[] | Returns: A new array containing the existing elements except the occurrences of the specified element.the input array, will not be modified, and may be array, final boolean null.the element to remove. element)Removes the occurrences of the specified element from the specified boolean array. |
| public static byte[] | Returns: A new array containing the existing elements except the occurrences of the specified element.the input array, will not be modified, and may be array, final byte null.the element to remove. element)Removes the occurrences of the specified element from the specified byte array. |
| public static char[] | Returns: A new array containing the existing elements except the occurrences of the specified element.the input array, will not be modified, and may be array, final char null.the element to remove. element)Removes the occurrences of the specified element from the specified char array. |
| public static double[] | Returns: A new array containing the existing elements except the occurrences of the specified element.the input array, will not be modified, and may be array, final double null.the element to remove. element)Removes the occurrences of the specified element from the specified double array. |
| public static float[] | Returns: A new array containing the existing elements except the occurrences of the specified element.the input array, will not be modified, and may be array, final float null.the element to remove. element)Removes the occurrences of the specified element from the specified float array. |
| public static int[] | Returns: A new array containing the existing elements except the occurrences of the specified element.the input array, will not be modified, and may be array, final int null.the element to remove. element)Removes the occurrences of the specified element from the specified int array. |
| public static long[] | Returns: A new array containing the existing elements except the occurrences of the specified element.the input array, will not be modified, and may be array, final long null.the element to remove. element)Removes the occurrences of the specified element from the specified long array. |
| public static short[] | Returns: A new array containing the existing elements except the occurrences of the specified element.the input array, will not be modified, and may be array, final short null.the element to remove. element)Removes the occurrences of the specified element from the specified short array. |
| public static < the type of object in the array, may be T> T[]null. | Returns: A new array containing the existing elements except the occurrences of the specified element.the input array, will not be modified, and may be array, final T null.the element to remove, may be element)null.Removes the occurrences of the specified element from the specified array. |
| pack-priv static Object | |
| public static boolean[] | Returns: A new array containing the existing elements except the first occurrence of the specified element.the input array, may be array, final boolean null.the element to be removed. element)Removes the first occurrence of the specified element from the specified array. |
| public static byte[] | Returns: A new array containing the existing elements except the first occurrence of the specified element.the input array, may be array, final byte null.the element to be removed. element)Removes the first occurrence of the specified element from the specified array. |
| public static char[] | Returns: A new array containing the existing elements except the first occurrence of the specified element.the input array, may be array, final char null.the element to be removed. element)Removes the first occurrence of the specified element from the specified array. |
| public static double[] | Returns: A new array containing the existing elements except the first occurrence of the specified element.the input array, may be array, final double null.the element to be removed. element)Removes the first occurrence of the specified element from the specified array. |
| public static float[] | Returns: A new array containing the existing elements except the first occurrence of the specified element.the input array, may be array, final float null.the element to be removed. element)Removes the first occurrence of the specified element from the specified array. |
| public static int[] | Returns: A new array containing the existing elements except the first occurrence of the specified element.the input array, may be array, final int null.the element to be removed. element)Removes the first occurrence of the specified element from the specified array. |
| public static long[] | Returns: A new array containing the existing elements except the first occurrence of the specified element.the input array, may be array, final long null.the element to be removed. element)Removes the first occurrence of the specified element from the specified array. |
| public static short[] | Returns: A new array containing the existing elements except the first occurrence of the specified element.the input array, may be array, final short null.the element to be removed. element)Removes the first occurrence of the specified element from the specified array. |
| public static < the component type of the array T> T[] | Returns: A new array containing the existing elements except the first occurrence of the specified element.the input array, may be array, final Object null.the element to be removed, may be element)null.Removes the first occurrence of the specified element from the specified array. |
| public static boolean[] | Returns: A new array containing the existing elements except the earliest-encountered occurrences of the specified elements.the input array, will not be modified, and may be array, final boolean... null.the values to be removed. values)Removes occurrences of specified elements, in specified quantities, from the specified array. |
| public static byte[] | Returns: A new array containing the existing elements except the earliest-encountered occurrences of the specified elements.the input array, will not be modified, and may be array, final byte... null.the values to be removed. values)Removes occurrences of specified elements, in specified quantities, from the specified array. |
| public static char[] | Returns: A new array containing the existing elements except the earliest-encountered occurrences of the specified elements.the input array, will not be modified, and may be array, final char... null.the values to be removed. values)Removes occurrences of specified elements, in specified quantities, from the specified array. |
| public static double[] | Returns: A new array containing the existing elements except the earliest-encountered occurrences of the specified elements.the input array, will not be modified, and may be array, final double... null.the values to be removed. values)Removes occurrences of specified elements, in specified quantities, from the specified array. |
| public static float[] | Returns: A new array containing the existing elements except the earliest-encountered occurrences of the specified elements.the input array, will not be modified, and may be array, final float... null.the values to be removed. values)Removes occurrences of specified elements, in specified quantities, from the specified array. |
| public static int[] | Returns: A new array containing the existing elements except the earliest-encountered occurrences of the specified elements.the input array, will not be modified, and may be array, final int... null.the values to be removed. values)Removes occurrences of specified elements, in specified quantities, from the specified array. |
| public static long[] | Returns: A new array containing the existing elements except the earliest-encountered occurrences of the specified elements.the input array, will not be modified, and may be array, final long... null.the values to be removed. values)Removes occurrences of specified elements, in specified quantities, from the specified array. |
| public static short[] | Returns: A new array containing the existing elements except the earliest-encountered occurrences of the specified elements.the input array, will not be modified, and may be array, final short... null.the values to be removed. values)Removes occurrences of specified elements, in specified quantities, from the specified array. |
| public static < the component type of the array T> T[] | Returns: A new array containing the existing elements except the earliest-encountered occurrences of the specified elements.the input array, will not be modified, and may be array, final T... null.the values to be removed. values)Removes occurrences of specified elements, in specified quantities, from the specified array. |
| public static void | reverse(final boolean[]
the array to reverse, may be array)null.Reverses the order of the given array. |
| public static void | reverse(final boolean[]
the array to reverse, may be array, final int null.the starting index. Undervalue (<0) is promoted to 0, overvalue (>array.length) results in no
change. startIndexInclusive, final int elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no
change. Overvalue (>array.length) is demoted to array length. endIndexExclusive)Reverses the order of the given array in the given range. |
| public static void | |
| public static void | reverse(final byte[]
the array to reverse, may be array, final int nullthe starting index. Undervalue (<0) is promoted to 0, overvalue (>array.length) results in no
change. startIndexInclusive, final int elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no
change. Overvalue (>array.length) is demoted to array length. endIndexExclusive)Reverses the order of the given array in the given range. |
| public static void | |
| public static void | reverse(final char[]
the array to reverse, may be array, final int nullthe starting index. Undervalue (<0) is promoted to 0, overvalue (>array.length) results in no
change. startIndexInclusive, final int elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no
change. Overvalue (>array.length) is demoted to array length. endIndexExclusive)Reverses the order of the given array in the given range. |
| public static void | reverse(final double[]
the array to reverse, may be array)nullReverses the order of the given array. |
| public static void | reverse(final double[]
the array to reverse, may be array, final int nullthe starting index. Undervalue (<0) is promoted to 0, overvalue (>array.length) results in no
change. startIndexInclusive, final int elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no
change. Overvalue (>array.length) is demoted to array length. endIndexExclusive)Reverses the order of the given array in the given range. |
| public static void | reverse(final float[]
the array to reverse, may be array)null.Reverses the order of the given array. |
| public static void | reverse(final float[]
the array to reverse, may be array, final int null.the starting index. Undervalue (<0) is promoted to 0, overvalue (>array.length) results in no
change. startIndexInclusive, final int elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no
change. Overvalue (>array.length) is demoted to array length. endIndexExclusive)Reverses the order of the given array in the given range. |
| public static void | |
| public static void | reverse(final int[]
the array to reverse, may be array, final int null.the starting index. Undervalue (<0) is promoted to 0, overvalue (>array.length) results in no
change. startIndexInclusive, final int elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no
change. Overvalue (>array.length) is demoted to array length. endIndexExclusive)Reverses the order of the given array in the given range. |
| public static void | |
| public static void | reverse(final long[]
the array to reverse, may be array, final int null.the starting index. Undervalue (<0) is promoted to 0, overvalue (>array.length) results in no
change. startIndexInclusive, final int elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no
change. Overvalue (>array.length) is demoted to array length. endIndexExclusive)Reverses the order of the given array in the given range. |
| public static void | |
| public static void | reverse(final Object[]
the array to reverse, may be array, final int null.the starting index. Under value (<0) is promoted to 0, over value (>array.length) results in no
change. startIndexInclusive, final int elements up to endIndex-1 are reversed in the array. Under value (< start index) results in no
change. Over value (>array.length) is demoted to array length. endIndexExclusive)Reverses the order of the given array in the given range. |
| public static void | reverse(final short[]
the array to reverse, may be array)null.Reverses the order of the given array. |
| public static void | reverse(final short[]
the array to reverse, may be array, final int null.the starting index. Undervalue (<0) is promoted to 0, overvalue (>array.length) results in no
change. startIndexInclusive, final int elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no
change. Overvalue (>array.length) is demoted to array length. endIndexExclusive)Reverses the order of the given array in the given range. |
| public static < type of elements of the array, may be T> T[]null. | Returns: the input arrayarray to be initialized, may be array, final IntFunction<? extends T> null.a function accepting an index and producing the desired value for that position. generator)Sets all elements of the specified array, using the provided generator supplier to compute each element. |
| public static < type of elements of the array, may be T> T[]null. | Returns: the input arrayarray to be initialized, may be array, final Supplier<? extends T> null.a function accepting an index and producing the desired value for that position. generator)Sets all elements of the specified array, using the provided generator supplier to compute each element. |
| public static void | shift(final boolean[]
the array to shift, may be array, final int null.The number of positions to rotate the elements. If the offset is larger than the number of elements to
rotate, than the effective offset is modulo the number of elements to rotate. offset)Shifts the order of the given boolean array. |
| public static void | shift(final boolean[]
the array to shift, may be array, int null.the starting index. Undervalue (<0) is promoted to 0, overvalue (>array.length) results in no
change. startIndexInclusive, int elements up to endIndex-1 are shifted in the array. Undervalue (< start index) results in no
change. Overvalue (>array.length) is demoted to array length. endIndexExclusive, int The number of positions to rotate the elements. If the offset is larger than the number of elements to
rotate, than the effective offset is modulo the number of elements to rotate. offset)Shifts the order of a series of elements in the given boolean array. |
| public static void | shift(final byte[]
the array to shift, may be array, final int null.The number of positions to rotate the elements. If the offset is larger than the number of elements to
rotate, than the effective offset is modulo the number of elements to rotate. offset)Shifts the order of the given byte array. |
| public static void | shift(final byte[]
the array to shift, may be array, int null.the starting index. Undervalue (<0) is promoted to 0, overvalue (>array.length) results in no
change. startIndexInclusive, int elements up to endIndex-1 are shifted in the array. Undervalue (< start index) results in no
change. Overvalue (>array.length) is demoted to array length. endIndexExclusive, int The number of positions to rotate the elements. If the offset is larger than the number of elements to
rotate, than the effective offset is modulo the number of elements to rotate. offset)Shifts the order of a series of elements in the given byte array. |
| public static void | shift(final char[]
the array to shift, may be array, final int null.The number of positions to rotate the elements. If the offset is larger than the number of elements to
rotate, than the effective offset is modulo the number of elements to rotate. offset)Shifts the order of the given char array. |
| public static void | shift(final char[]
the array to shift, may be array, int null.the starting index. Undervalue (<0) is promoted to 0, overvalue (>array.length) results in no
change. startIndexInclusive, int elements up to endIndex-1 are shifted in the array. Undervalue (< start index) results in no
change. Overvalue (>array.length) is demoted to array length. endIndexExclusive, int The number of positions to rotate the elements. If the offset is larger than the number of elements to
rotate, than the effective offset is modulo the number of elements to rotate. offset)Shifts the order of a series of elements in the given char array. |
| public static void | shift(final double[]
the array to shift, may be array, final int null.The number of positions to rotate the elements. If the offset is larger than the number of elements to
rotate, than the effective offset is modulo the number of elements to rotate. offset)Shifts the order of the given double array. |
| public static void | shift(final double[]
the array to shift, may be array, int null.the starting index. Undervalue (<0) is promoted to 0, overvalue (>array.length) results in no
change. startIndexInclusive, int elements up to endIndex-1 are shifted in the array. Undervalue (< start index) results in no
change. Overvalue (>array.length) is demoted to array length. endIndexExclusive, int The number of positions to rotate the elements. If the offset is larger than the number of elements to
rotate, than the effective offset is modulo the number of elements to rotate. offset)Shifts the order of a series of elements in the given double array. |
| public static void | shift(final float[]
the array to shift, may be array, final int null.The number of positions to rotate the elements. If the offset is larger than the number of elements to
rotate, than the effective offset is modulo the number of elements to rotate. offset)Shifts the order of the given float array. |
| public static void | shift(final float[]
the array to shift, may be array, int null.the starting index. Undervalue (<0) is promoted to 0, overvalue (>array.length) results in no
change. startIndexInclusive, int elements up to endIndex-1 are shifted in the array. Undervalue (< start index) results in no
change. Overvalue (>array.length) is demoted to array length. endIndexExclusive, int The number of positions to rotate the elements. If the offset is larger than the number of elements to
rotate, than the effective offset is modulo the number of elements to rotate. offset)Shifts the order of a series of elements in the given float array. |
| public static void | shift(final int[]
the array to shift, may be array, final int null.The number of positions to rotate the elements. If the offset is larger than the number of elements to
rotate, than the effective offset is modulo the number of elements to rotate. offset)Shifts the order of the given int array. |
| public static void | shift(final int[]
the array to shift, may be array, int null.the starting index. Undervalue (<0) is promoted to 0, overvalue (>array.length) results in no
change. startIndexInclusive, int elements up to endIndex-1 are shifted in the array. Undervalue (< start index) results in no
change. Overvalue (>array.length) is demoted to array length. endIndexExclusive, int The number of positions to rotate the elements. If the offset is larger than the number of elements to
rotate, than the effective offset is modulo the number of elements to rotate. offset)Shifts the order of a series of elements in the given int array. |
| public static void | shift(final long[]
the array to shift, may be array, final int null.The number of positions to rotate the elements. If the offset is larger than the number of elements to
rotate, than the effective offset is modulo the number of elements to rotate. offset)Shifts the order of the given long array. |
| public static void | shift(final long[]
the array to shift, may be array, int null.the starting index. Undervalue (<0) is promoted to 0, overvalue (>array.length) results in no
change. startIndexInclusive, int elements up to endIndex-1 are shifted in the array. Undervalue (< start index) results in no
change. Overvalue (>array.length) is demoted to array length. endIndexExclusive, int The number of positions to rotate the elements. If the offset is larger than the number of elements to
rotate, than the effective offset is modulo the number of elements to rotate. offset)Shifts the order of a series of elements in the given long array. |
| public static void | |
| public static void | shift(final Object[]
the array to shift, may be array, int null.the starting index. Undervalue (<0) is promoted to 0, overvalue (>array.length) results in no
change. startIndexInclusive, int elements up to endIndex-1 are shifted in the array. Undervalue (< start index) results in no
change. Overvalue (>array.length) is demoted to array length. endIndexExclusive, int The number of positions to rotate the elements. If the offset is larger than the number of elements to
rotate, than the effective offset is modulo the number of elements to rotate. offset)Shifts the order of a series of elements in the given array. |
| public static void | shift(final short[]
the array to shift, may be array, final int null.The number of positions to rotate the elements. If the offset is larger than the number of elements to
rotate, than the effective offset is modulo the number of elements to rotate. offset)Shifts the order of the given short array. |
| public static void | shift(final short[]
the array to shift, may be array, int null.the starting index. Undervalue (<0) is promoted to 0, overvalue (>array.length) results in no
change. startIndexInclusive, int elements up to endIndex-1 are shifted in the array. Undervalue (< start index) results in no
change. Overvalue (>array.length) is demoted to array length. endIndexExclusive, int The number of positions to rotate the elements. If the offset is larger than the number of elements to
rotate, than the effective offset is modulo the number of elements to rotate. offset)Shifts the order of a series of elements in the given short array. |
| public static void | shuffle(final boolean[]
the array to shuffle. array)Shuffles randomly the elements of the specified array using the Fisher-Yates shuffle algorithm. |
| public static void | shuffle(final boolean[]
the array to shuffle array, final Random the source of randomness used to permute the elements random)Shuffles randomly the elements of the specified array using the Fisher-Yates shuffle algorithm. |
| public static void | shuffle(final byte[]
the array to shuffle. array)Shuffles randomly the elements of the specified array using the Fisher-Yates shuffle algorithm. |
| public static void | shuffle(final byte[]
the array to shuffle array, final Random the source of randomness used to permute the elements random)Shuffles randomly the elements of the specified array using the Fisher-Yates shuffle algorithm. |
| public static void | shuffle(final char[]
the array to shuffle. array)Shuffles randomly the elements of the specified array using the Fisher-Yates shuffle algorithm. |
| public static void | shuffle(final char[]
the array to shuffle array, final Random the source of randomness used to permute the elements random)Shuffles randomly the elements of the specified array using the Fisher-Yates shuffle algorithm. |
| public static void | shuffle(final double[]
the array to shuffle. array)Shuffles randomly the elements of the specified array using the Fisher-Yates shuffle algorithm. |
| public static void | shuffle(final double[]
the array to shuffle array, final Random the source of randomness used to permute the elements random)Shuffles randomly the elements of the specified array using the Fisher-Yates shuffle algorithm. |
| public static void | shuffle(final float[]
the array to shuffle. array)Shuffles randomly the elements of the specified array using the Fisher-Yates shuffle algorithm. |
| public static void | shuffle(final float[]
the array to shuffle array, final Random the source of randomness used to permute the elements random)Shuffles randomly the elements of the specified array using the Fisher-Yates shuffle algorithm. |
| public static void | shuffle(final int[]
the array to shuffle. array)Shuffles randomly the elements of the specified array using the Fisher-Yates shuffle algorithm. |
| public static void | shuffle(final int[]
the array to shuffle array, final Random the source of randomness used to permute the elements random)Shuffles randomly the elements of the specified array using the Fisher-Yates shuffle algorithm. |
| public static void | shuffle(final long[]
the array to shuffle. array)Shuffles randomly the elements of the specified array using the Fisher-Yates shuffle algorithm. |
| public static void | shuffle(final long[]
the array to shuffle array, final Random the source of randomness used to permute the elements random)Shuffles randomly the elements of the specified array using the Fisher-Yates shuffle algorithm. |
| public static void | shuffle(final Object[]
the array to shuffle. array)Shuffles randomly the elements of the specified array using the Fisher-Yates shuffle algorithm. |
| public static void | shuffle(final Object[]
the array to shuffle array, final Random the source of randomness used to permute the elements random)Shuffles randomly the elements of the specified array using the Fisher-Yates shuffle algorithm. |
| public static void | shuffle(final short[]
the array to shuffle. array)Shuffles randomly the elements of the specified array using the Fisher-Yates shuffle algorithm. |
| public static void | shuffle(final short[]
the array to shuffle array, final Random the source of randomness used to permute the elements random)Shuffles randomly the elements of the specified array using the Fisher-Yates shuffle algorithm. |
| public static boolean | Returns: whether a match was found.The data to search, maybe larger than the expected data. data, final byte[] The expected data to find. expected)Tests whether the given data array starts with an expected array, for example, signature bytes. |
| public static boolean[] | Returns: a new array containing the elements between the start and end indices.the array array, int the starting index. Undervalue (<0)
is promoted to 0, overvalue (>array.length) results
in an empty array. startIndexInclusive, int elements up to endIndex-1 are present in the
returned subarray. Undervalue (< startIndex) produces
empty array, overvalue (>array.length) is demoted to
array length. endIndexExclusive)Produces a new |
| public static byte[] | Returns: a new array containing the elements between the start and end indices.the array array, int the starting index. Undervalue (<0)
is promoted to 0, overvalue (>array.length) results
in an empty array. startIndexInclusive, int elements up to endIndex-1 are present in the
returned subarray. Undervalue (< startIndex) produces
empty array, overvalue (>array.length) is demoted to
array length. endIndexExclusive)Produces a new |
| public static char[] | Returns: a new array containing the elements between the start and end indices.the array array, int the starting index. Undervalue (<0)
is promoted to 0, overvalue (>array.length) results
in an empty array. startIndexInclusive, int elements up to endIndex-1 are present in the
returned subarray. Undervalue (< startIndex) produces
empty array, overvalue (>array.length) is demoted to
array length. endIndexExclusive)Produces a new |
| public static double[] | Returns: a new array containing the elements between the start and end indices.the array array, int the starting index. Undervalue (<0)
is promoted to 0, overvalue (>array.length) results
in an empty array. startIndexInclusive, int elements up to endIndex-1 are present in the
returned subarray. Undervalue (< startIndex) produces
empty array, overvalue (>array.length) is demoted to
array length. endIndexExclusive)Produces a new |
| public static float[] | Returns: a new array containing the elements between the start and end indices.the array array, int the starting index. Undervalue (<0)
is promoted to 0, overvalue (>array.length) results
in an empty array. startIndexInclusive, int elements up to endIndex-1 are present in the
returned subarray. Undervalue (< startIndex) produces
empty array, overvalue (>array.length) is demoted to
array length. endIndexExclusive)Produces a new |
| public static int[] | Returns: a new array containing the elements between the start and end indices.the array array, int the starting index. Undervalue (<0)
is promoted to 0, overvalue (>array.length) results
in an empty array. startIndexInclusive, int elements up to endIndex-1 are present in the
returned subarray. Undervalue (< startIndex) produces
empty array, overvalue (>array.length) is demoted to
array length. endIndexExclusive)Produces a new |
| public static long[] | Returns: a new array containing the elements between the start and end indices.the array array, int the starting index. Undervalue (<0)
is promoted to 0, overvalue (>array.length) results
in an empty array. startIndexInclusive, int elements up to endIndex-1 are present in the
returned subarray. Undervalue (< startIndex) produces
empty array, overvalue (>array.length) is demoted to
array length. endIndexExclusive)Produces a new |
| public static short[] | Returns: a new array containing the elements between the start and end indices.the array array, int the starting index. Undervalue (<0)
is promoted to 0, overvalue (>array.length) results
in an empty array. startIndexInclusive, int elements up to endIndex-1 are present in the
returned subarray. Undervalue (< startIndex) produces
empty array, overvalue (>array.length) is demoted to
array length. endIndexExclusive)Produces a new |
| public static < the component type of the array T> T[] | Returns: a new array containing the elements between the start and end indices.the array array, int the starting index. Undervalue (<0)
is promoted to 0, overvalue (>array.length) results
in an empty array. startIndexInclusive, int elements up to endIndex-1 are present in the
returned subarray. Undervalue (< startIndex) produces
empty array, overvalue (>array.length) is demoted to
array length. endIndexExclusive)Produces a new array containing the elements between the start and end indices. |
| public static void | swap(final boolean[]
the array to swap, may be array, final int null.the index of the first element to swap offset1, final int the index of the second element to swap offset2)Swaps two elements in the given boolean array. |
| public static void | swap(final boolean[]
the array to swap, may be array, int null.the index of the first element in the series to swap offset1, int the index of the second element in the series to swap offset2, int the number of elements to swap starting with the given indices len)Swaps a series of elements in the given boolean array. |
| public static void | swap(final byte[]
the array to swap, may be array, final int null.the index of the first element to swap offset1, final int the index of the second element to swap offset2)Swaps two elements in the given byte array. |
| public static void | swap(final byte[]
the array to swap, may be array, int null.the index of the first element in the series to swap offset1, int the index of the second element in the series to swap offset2, int the number of elements to swap starting with the given indices len)Swaps a series of elements in the given byte array. |
| public static void | swap(final char[]
the array to swap, may be array, final int null.the index of the first element to swap offset1, final int the index of the second element to swap offset2)Swaps two elements in the given char array. |
| public static void | swap(final char[]
the array to swap, may be array, int null.the index of the first element in the series to swap offset1, int the index of the second element in the series to swap offset2, int the number of elements to swap starting with the given indices len)Swaps a series of elements in the given char array. |
| public static void | swap(final double[]
the array to swap, may be array, final int null.the index of the first element to swap offset1, final int the index of the second element to swap offset2)Swaps two elements in the given double array. |
| public static void | swap(final double[]
the array to swap, may be array, int null.the index of the first element in the series to swap offset1, int the index of the second element in the series to swap offset2, int the number of elements to swap starting with the given indices len)Swaps a series of elements in the given double array. |
| public static void | swap(final float[]
the array to swap, may be array, final int null.the index of the first element to swap offset1, final int the index of the second element to swap offset2)Swaps two elements in the given float array. |
| public static void | swap(final float[]
the array to swap, may be array, int null.the index of the first element in the series to swap offset1, int the index of the second element in the series to swap offset2, int the number of elements to swap starting with the given indices len)Swaps a series of elements in the given float array. |
| public static void | swap(final int[]
the array to swap, may be array, final int nullthe index of the first element to swap offset1, final int the index of the second element to swap offset2)Swaps two elements in the given int array. |
| public static void | swap(final int[]
the array to swap, may be array, int nullthe index of the first element in the series to swap offset1, int the index of the second element in the series to swap offset2, int the number of elements to swap starting with the given indices len)Swaps a series of elements in the given int array. |
| public static void | swap(final long[]
the array to swap, may be array, final int nullthe index of the first element to swap offset1, final int the index of the second element to swap offset2)Swaps two elements in the given long array. |
| public static void | swap(final long[]
the array to swap, may be array, int nullthe index of the first element in the series to swap offset1, int the index of the second element in the series to swap offset2, int the number of elements to swap starting with the given indices len)Swaps a series of elements in the given long array. |
| public static void | |
| public static void | swap(final Object[]
the array to swap, may be array, int nullthe index of the first element in the series to swap offset1, int the index of the second element in the series to swap offset2, int the number of elements to swap starting with the given indices len)Swaps a series of elements in the given array. |
| public static void | swap(final short[]
the array to swap, may be array, final int nullthe index of the first element to swap offset1, final int the index of the second element to swap offset2)Swaps two elements in the given short array. |
| public static void | swap(final short[]
the array to swap, may be array, int nullthe index of the first element in the series to swap offset1, int the index of the second element in the series to swap offset2, int the number of elements to swap starting with the given indices len)Swaps a series of elements in the given short array. |
| public static < the array's element type T> T[] | Returns: the array, not null unless a null array is passed inthe varargs array items, null allowed items)Create a type-safe generic array. |
| public static Map | Returns: aMap that was created from the arrayan array whose elements are either a array)java. or
an Array containing at least two elements, may be nullConverts the given array into a |
| public static Boolean[] | |
| public static Byte[] | |
| public static Character[] | |
| public static Double[] | |
| public static Float[] | |
| public static Integer[] | |
| public static Long[] | |
| public static Short[] | |
| public static boolean[] | Returns: aboolean array, null if null array inputa array)Boolean array, may be nullConverts an array of object Booleans to primitives. |
| public static boolean[] | Returns: aboolean array, null if null array inputa array, final boolean Boolean array, may be nullthe value to insert if valueForNull)null foundConverts an array of object Booleans to primitives handling |
| public static byte[] | Returns: abyte array, null if null array inputa array)Byte array, may be nullConverts an array of object Bytes to primitives. |
| public static byte[] | Returns: abyte array, null if null array inputa array, final byte Byte array, may be nullthe value to insert if valueForNull)null foundConverts an array of object Bytes to primitives handling |
| public static char[] | Returns: achar array, null if null array inputa array)Character array, may be nullConverts an array of object Characters to primitives. |
| public static char[] | Returns: achar array, null if null array inputa array, final char Character array, may be nullthe value to insert if valueForNull)null foundConverts an array of object Character to primitives handling |
| public static double[] | Returns: adouble array, null if null array inputa array)Double array, may be nullConverts an array of object Doubles to primitives. |
| public static double[] | Returns: adouble array, null if null array inputa array, final double Double array, may be nullthe value to insert if valueForNull)null foundConverts an array of object Doubles to primitives handling |
| public static float[] | Returns: afloat array, null if null array inputa array)Float array, may be nullConverts an array of object Floats to primitives. |
| public static float[] | Returns: afloat array, null if null array inputa array, final float Float array, may be nullthe value to insert if valueForNull)null foundConverts an array of object Floats to primitives handling |
| public static int[] | Returns: anint array, null if null array inputa array)Integer array, may be nullConverts an array of object Integers to primitives. |
| public static int[] | Returns: anint array, null if null array inputa array, final int Integer array, may be nullthe value to insert if valueForNull)null foundConverts an array of object Integer to primitives handling |
| public static long[] | Returns: along array, null if null array inputa array)Long array, may be nullConverts an array of object Longs to primitives. |
| public static long[] | Returns: along array, null if null array inputa array, final long Long array, may be nullthe value to insert if valueForNull)null foundConverts an array of object Long to primitives handling |
| public static Object | Returns: an array of the corresponding primitive type, or the original arrayan array of wrapper object array)Create an array of primitive type from an array of wrapper types. |
| public static short[] | Returns: abyte array, null if null array inputa array)Short array, may be nullConverts an array of object Shorts to primitives. |
| public static short[] | Returns: abyte array, null if null array inputa array, final short Short array, may be nullthe value to insert if valueForNull)null foundConverts an array of object Short to primitives handling |
| public static String | |
| public static String | |
| public static String[] | Returns: String[] of the same size as the source with its element's string representation,
null if null array inputthe array)Object[] to be processed, may be null.Returns an array containing the string representation of each element in the argument array. |
| public static String[] | toStringArray(final Object[]
the Object[] to be processed, may be array, final String null.the value to insert if valueForNullElements)null is foundReturns an array containing the string representation of each element in the argument
array handling |