public class MoreArrays
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static boolean[] |
concat(boolean[]... arrays) |
Returns an array concatenated from the given arrays.
|
static byte[] |
concat(byte[]... arrays) |
Returns an array concatenated from the given arrays.
|
static char[] |
concat(char[]... arrays) |
Returns an array concatenated from the given arrays.
|
static double[] |
concat(double[]... arrays) |
Returns an array concatenated from the given arrays.
|
static float[] |
concat(float[]... arrays) |
Returns an array concatenated from the given arrays.
|
static int[] |
concat(int[]... arrays) |
Returns an array concatenated from the given arrays.
|
static long[] |
concat(long[]... arrays) |
Returns an array concatenated from the given arrays.
|
static short[] |
concat(short[]... arrays) |
Returns an array concatenated from the given arrays.
|
static <T> T[] |
concat(T[]... arrays) |
Returns an array concatenated from the given arrays.
|
static boolean |
contains(boolean[] array,
boolean element) |
Checks whether the given array contains the given element.
|
static boolean |
contains(boolean[] array,
int fromIndex,
int toIndex,
boolean element) |
Checks whether the given array contains the given element.
|
static boolean |
contains(byte[] array,
byte element) |
Checks whether the given array contains the given element.
|
static boolean |
contains(byte[] array,
int fromIndex,
int toIndex,
byte element) |
Checks whether the given array contains the given element.
|
static boolean |
contains(char[] array,
char element) |
Checks whether the given array contains the given element.
|
static boolean |
contains(char[] array,
int fromIndex,
int toIndex,
char element) |
Checks whether the given array contains the given element.
|
static boolean |
contains(double[] array,
double element,
double tolerance) |
Checks whether the given array contains the given element.
|
static boolean |
contains(double[] array,
int fromIndex,
int toIndex,
double element,
double tolerance) |
Checks whether the given array contains the given element.
|
static boolean |
contains(float[] array,
float element,
float tolerance) |
Checks whether the given array contains the given element.
|
static boolean |
contains(float[] array,
int fromIndex,
int toIndex,
float element,
float tolerance) |
Checks whether the given array contains the given element.
|
static boolean |
contains(int[] array,
int element) |
Checks whether the given array contains the given element.
|
static boolean |
contains(int[] array,
int fromIndex,
int toIndex,
int element) |
Checks whether the given array contains the given element.
|
static boolean |
contains(long[] array,
int fromIndex,
int toIndex,
long element) |
Checks whether the given array contains the given element.
|
static boolean |
contains(long[] array,
long element) |
Checks whether the given array contains the given element.
|
static boolean |
contains(short[] array,
int fromIndex,
int toIndex,
short element) |
Checks whether the given array contains the given element.
|
static boolean |
contains(short[] array,
short element) |
Checks whether the given array contains the given element.
|
static <T> boolean |
contains(T[] array,
int fromIndex,
int toIndex,
T element) |
Checks whether the given array contains the given element.
|
static <T> boolean |
contains(T[] array,
T element) |
Checks whether the given array contains the given element.
|
static boolean[] |
copyOf(boolean[] array) |
Returns a copy of the given array.
|
static byte[] |
copyOf(byte[] array) |
Returns a copy of the given array.
|
static char[] |
copyOf(char[] array) |
Returns a copy of the given array.
|
static double[] |
copyOf(double[] array) |
Returns a copy of the given array.
|
static float[] |
copyOf(float[] array) |
Returns a copy of the given array.
|
static int[] |
copyOf(int[] array) |
Returns a copy of the given array.
|
static long[] |
copyOf(long[] array) |
Returns a copy of the given array.
|
static short[] |
copyOf(short[] array) |
Returns a copy of the given array.
|
static <T> T[] |
copyOf(T[] array) |
Returns a copy of the given array.
|
static boolean[] |
emptyToNull(boolean[] array) |
Returns the given array if it is non-empty,
null otherwise. |
static byte[] |
emptyToNull(byte[] array) |
Returns the given array if it is non-empty,
null otherwise. |
static char[] |
emptyToNull(char[] array) |
Returns the given array if it is non-empty,
null otherwise. |
static double[] |
emptyToNull(double[] array) |
Returns the given array if it is non-empty,
null otherwise. |
static float[] |
emptyToNull(float[] array) |
Returns the given array if it is non-empty,
null otherwise. |
static int[] |
emptyToNull(int[] array) |
Returns the given array if it is non-empty,
null otherwise. |
static long[] |
emptyToNull(long[] array) |
Returns the given array if it is non-empty,
null otherwise. |
static short[] |
emptyToNull(short[] array) |
Returns the given array if it is non-empty,
null otherwise. |
static <T> T[] |
emptyToNull(T[] array) |
Returns the given array if it is non-empty,
null otherwise. |
static int |
indexOf(boolean[] array,
boolean element) |
Returns the index of the first occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
indexOf(boolean[] array,
int fromIndex,
int toIndex,
boolean element) |
Returns the index of the first occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
indexOf(byte[] array,
byte element) |
Returns the index of the first occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
indexOf(byte[] array,
int fromIndex,
int toIndex,
byte element) |
Returns the index of the first occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
indexOf(char[] array,
char element) |
Returns the index of the first occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
indexOf(char[] array,
int fromIndex,
int toIndex,
char element) |
Returns the index of the first occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
indexOf(double[] array,
double element,
double tolerance) |
Returns the index of the first occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
indexOf(double[] array,
int fromIndex,
int toIndex,
double element,
double tolerance) |
Returns the index of the first occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
indexOf(float[] array,
float element,
float tolerance) |
Returns the index of the first occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
indexOf(float[] array,
int fromIndex,
int toIndex,
float element,
float tolerance) |
Returns the index of the first occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
indexOf(int[] array,
int element) |
Returns the index of the first occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
indexOf(int[] array,
int fromIndex,
int toIndex,
int element) |
Returns the index of the first occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
indexOf(long[] array,
int fromIndex,
int toIndex,
long element) |
Returns the index of the first occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
indexOf(long[] array,
long element) |
Returns the index of the first occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
indexOf(short[] array,
int fromIndex,
int toIndex,
short element) |
Returns the index of the first occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
indexOf(short[] array,
short element) |
Returns the index of the first occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static <T> int |
indexOf(T[] array,
int fromIndex,
int toIndex,
T element) |
Returns the index of the first occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static <T> int |
indexOf(T[] array,
T element) |
Returns the index of the first occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static boolean |
isNullOrEmpty(boolean[] array) |
Checks whether the given array is
null or empty. |
static boolean |
isNullOrEmpty(byte[] array) |
Checks whether the given array is
null or empty. |
static boolean |
isNullOrEmpty(char[] array) |
Checks whether the given array is
null or empty. |
static boolean |
isNullOrEmpty(double[] array) |
Checks whether the given array is
null or empty. |
static boolean |
isNullOrEmpty(float[] array) |
Checks whether the given array is
null or empty. |
static boolean |
isNullOrEmpty(int[] array) |
Checks whether the given array is
null or empty. |
static boolean |
isNullOrEmpty(long[] array) |
Checks whether the given array is
null or empty. |
static boolean |
isNullOrEmpty(short[] array) |
Checks whether the given array is
null or empty. |
static <T> boolean |
isNullOrEmpty(T[] array) |
Checks whether the given array is
null or empty. |
static int |
lastIndexOf(boolean[] array,
boolean element) |
Returns the index of the last occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
lastIndexOf(boolean[] array,
int fromIndex,
int toIndex,
boolean element) |
Returns the index of the last occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
lastIndexOf(byte[] array,
byte element) |
Returns the index of the last occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
lastIndexOf(byte[] array,
int fromIndex,
int toIndex,
byte element) |
Returns the index of the last occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
lastIndexOf(char[] array,
char element) |
Returns the index of the last occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
lastIndexOf(char[] array,
int fromIndex,
int toIndex,
char element) |
Returns the index of the last occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
lastIndexOf(double[] array,
double element,
double tolerance) |
Returns the index of the last occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
lastIndexOf(double[] array,
int fromIndex,
int toIndex,
double element,
double tolerance) |
Returns the index of the last occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
lastIndexOf(float[] array,
float element,
float tolerance) |
Returns the index of the last occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
lastIndexOf(float[] array,
int fromIndex,
int toIndex,
float element,
float tolerance) |
Returns the index of the last occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
lastIndexOf(int[] array,
int element) |
Returns the index of the last occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
lastIndexOf(int[] array,
int fromIndex,
int toIndex,
int element) |
Returns the index of the last occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
lastIndexOf(long[] array,
int fromIndex,
int toIndex,
long element) |
Returns the index of the last occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
lastIndexOf(long[] array,
long element) |
Returns the index of the last occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
lastIndexOf(short[] array,
int fromIndex,
int toIndex,
short element) |
Returns the index of the last occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static int |
lastIndexOf(short[] array,
short element) |
Returns the index of the last occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static <T> int |
lastIndexOf(T[] array,
int fromIndex,
int toIndex,
T element) |
Returns the index of the last occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static <T> int |
lastIndexOf(T[] array,
T element) |
Returns the index of the last occurrence of the given element in the given array or
-1 if the array does not contain the element. |
static boolean[] |
nullToEmpty(boolean[] array) |
Returns the given array if it is non-empty, empty array otherwise.
|
static byte[] |
nullToEmpty(byte[] array) |
Returns the given array if it is non-empty, empty array otherwise.
|
static char[] |
nullToEmpty(char[] array) |
Returns the given array if it is non-empty, empty array otherwise.
|
static double[] |
nullToEmpty(double[] array) |
Returns the given array if it is non-empty, empty array otherwise.
|
static float[] |
nullToEmpty(float[] array) |
Returns the given array if it is non-empty, empty array otherwise.
|
static int[] |
nullToEmpty(int[] array) |
Returns the given array if it is non-empty, empty array otherwise.
|
static long[] |
nullToEmpty(long[] array) |
Returns the given array if it is non-empty, empty array otherwise.
|
static short[] |
nullToEmpty(short[] array) |
Returns the given array if it is non-empty, empty array otherwise.
|
static <T> T[] |
nullToEmpty(T[] array) |
Returns the given array if it is non-empty, empty array otherwise.
|
static void |
reverse(boolean[] array) |
Reverses the elements in the given array.
|
static void |
reverse(byte[] array) |
Reverses the elements in the given array.
|
static void |
reverse(char[] array) |
Reverses the elements in the given array.
|
static void |
reverse(double[] array) |
Reverses the elements in the given array.
|
static void |
reverse(float[] array) |
Reverses the elements in the given array.
|
static void |
reverse(int[] array) |
Reverses the elements in the given array.
|
static void |
reverse(long[] array) |
Reverses the elements in the given array.
|
static void |
reverse(short[] array) |
Reverses the elements in the given array.
|
static <T> void |
reverse(T[] array) |
Reverses the elements in the given array.
|
static boolean |
slowEquals(boolean[] former,
boolean[] latter) |
Checks whether the two given arrays are equal to each other.
|
static boolean |
slowEquals(byte[] former,
byte[] latter) |
Checks whether the two given arrays are equal to each other.
|
static boolean |
slowEquals(char[] former,
char[] latter) |
Checks whether the two given arrays are equal to each other.
|
static boolean |
slowEquals(double[] former,
double[] latter) |
Checks whether the two given arrays are equal to each other.
|
static boolean |
slowEquals(float[] former,
float[] latter) |
Checks whether the two given arrays are equal to each other.
|
static boolean |
slowEquals(int[] former,
int[] latter) |
Checks whether the two given arrays are equal to each other.
|
static boolean |
slowEquals(long[] former,
long[] latter) |
Checks whether the two given arrays are equal to each other.
|
static boolean |
slowEquals(short[] former,
short[] latter) |
Checks whether the two given arrays are equal to each other.
|
static <T> boolean |
slowEquals(T[] former,
T[] latter) |
Checks whether the two given arrays are equal to each other.
|
static void |
swap(boolean[] array,
int formerIndex,
int latterIndex) |
Swaps the elements at the given positions in the given array.
|
static void |
swap(byte[] array,
int formerIndex,
int latterIndex) |
Swaps the elements at the given positions in the given array.
|
static void |
swap(char[] array,
int formerIndex,
int latterIndex) |
Swaps the elements at the given positions in the given array.
|
static void |
swap(double[] array,
int formerIndex,
int latterIndex) |
Swaps the elements at the given positions in the given array.
|
static void |
swap(float[] array,
int formerIndex,
int latterIndex) |
Swaps the elements at the given positions in the given array.
|
static void |
swap(int[] array,
int formerIndex,
int latterIndex) |
Swaps the elements at the given positions in the given array.
|
static void |
swap(long[] array,
int formerIndex,
int latterIndex) |
Swaps the elements at the given positions in the given array.
|
static void |
swap(short[] array,
int formerIndex,
int latterIndex) |
Swaps the elements at the given positions in the given array.
|
static <T> void |
swap(T[] array,
int formerIndex,
int latterIndex) |
Swaps the elements at the given positions in the given array.
|
public static boolean[] concat(boolean[]... arrays)
java.lang.IllegalArgumentException - if arrays are nulljava.lang.IllegalArgumentException - if arrays contain nullpublic static byte[] concat(byte[]... arrays)
java.lang.IllegalArgumentException - if arrays are nulljava.lang.IllegalArgumentException - if arrays contain nullpublic static char[] concat(char[]... arrays)
java.lang.IllegalArgumentException - if arrays are nulljava.lang.IllegalArgumentException - if arrays contain nullpublic static double[] concat(double[]... arrays)
java.lang.IllegalArgumentException - if arrays are nulljava.lang.IllegalArgumentException - if arrays contain nullpublic static float[] concat(float[]... arrays)
java.lang.IllegalArgumentException - if arrays are nulljava.lang.IllegalArgumentException - if arrays contain nullpublic static int[] concat(int[]... arrays)
java.lang.IllegalArgumentException - if arrays are nulljava.lang.IllegalArgumentException - if arrays contain nullpublic static long[] concat(long[]... arrays)
java.lang.IllegalArgumentException - if arrays are nulljava.lang.IllegalArgumentException - if arrays contain nullpublic static short[] concat(short[]... arrays)
java.lang.IllegalArgumentException - if arrays are nulljava.lang.IllegalArgumentException - if arrays contain null@SafeVarargs public static <T> T[] concat(T[]... arrays)
java.lang.IllegalArgumentException - if arrays are nulljava.lang.IllegalArgumentException - if arrays contain nullpublic static boolean contains(boolean[] array,
boolean element)
java.lang.IllegalArgumentException - if array is nullpublic static boolean contains(boolean[] array,
int fromIndex,
int toIndex,
boolean element)
java.lang.IllegalArgumentException - if array is nullpublic static boolean contains(byte[] array,
byte element)
java.lang.IllegalArgumentException - if array is nullpublic static boolean contains(byte[] array,
int fromIndex,
int toIndex,
byte element)
java.lang.IllegalArgumentException - if array is nullpublic static boolean contains(char[] array,
char element)
java.lang.IllegalArgumentException - if array is nullpublic static boolean contains(char[] array,
int fromIndex,
int toIndex,
char element)
java.lang.IllegalArgumentException - if array is nullpublic static boolean contains(double[] array,
double element,
double tolerance)
java.lang.IllegalArgumentException - if array is nulljava.lang.IllegalArgumentException - if tolerance is negativepublic static boolean contains(double[] array,
int fromIndex,
int toIndex,
double element,
double tolerance)
java.lang.IllegalArgumentException - if array is nulljava.lang.IllegalArgumentException - if tolerance is negativepublic static boolean contains(float[] array,
float element,
float tolerance)
java.lang.IllegalArgumentException - if array is nulljava.lang.IllegalArgumentException - if tolerance is negativepublic static boolean contains(float[] array,
int fromIndex,
int toIndex,
float element,
float tolerance)
java.lang.IllegalArgumentException - if array is nulljava.lang.IllegalArgumentException - if tolerance is negativepublic static boolean contains(int[] array,
int element)
java.lang.IllegalArgumentException - if array is nullpublic static boolean contains(int[] array,
int fromIndex,
int toIndex,
int element)
java.lang.IllegalArgumentException - if array is nullpublic static boolean contains(long[] array,
long element)
java.lang.IllegalArgumentException - if array is nullpublic static boolean contains(long[] array,
int fromIndex,
int toIndex,
long element)
java.lang.IllegalArgumentException - if array is nullpublic static boolean contains(short[] array,
short element)
java.lang.IllegalArgumentException - if array is nullpublic static boolean contains(short[] array,
int fromIndex,
int toIndex,
short element)
java.lang.IllegalArgumentException - if array is nullpublic static <T> boolean contains(T[] array,
T element)
java.lang.IllegalArgumentException - if array is nullpublic static <T> boolean contains(T[] array,
int fromIndex,
int toIndex,
T element)
java.lang.IllegalArgumentException - if array is nullpublic static boolean[] copyOf(boolean[] array)
java.lang.IllegalArgumentException - if array is nullpublic static byte[] copyOf(byte[] array)
java.lang.IllegalArgumentException - if array is nullpublic static char[] copyOf(char[] array)
java.lang.IllegalArgumentException - if array is nullpublic static double[] copyOf(double[] array)
java.lang.IllegalArgumentException - if array is nullpublic static float[] copyOf(float[] array)
java.lang.IllegalArgumentException - if array is nullpublic static int[] copyOf(int[] array)
java.lang.IllegalArgumentException - if array is nullpublic static long[] copyOf(long[] array)
java.lang.IllegalArgumentException - if array is nullpublic static short[] copyOf(short[] array)
java.lang.IllegalArgumentException - if array is nullpublic static <T> T[] copyOf(T[] array)
java.lang.IllegalArgumentException - if array is nullpublic static boolean[] emptyToNull(boolean[] array)
null otherwise.public static byte[] emptyToNull(byte[] array)
null otherwise.public static char[] emptyToNull(char[] array)
null otherwise.public static double[] emptyToNull(double[] array)
null otherwise.public static float[] emptyToNull(float[] array)
null otherwise.public static int[] emptyToNull(int[] array)
null otherwise.public static long[] emptyToNull(long[] array)
null otherwise.public static short[] emptyToNull(short[] array)
null otherwise.public static <T> T[] emptyToNull(T[] array)
null otherwise.public static int indexOf(boolean[] array,
boolean element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int indexOf(boolean[] array,
int fromIndex,
int toIndex,
boolean element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int indexOf(byte[] array,
byte element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int indexOf(byte[] array,
int fromIndex,
int toIndex,
byte element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int indexOf(char[] array,
char element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int indexOf(char[] array,
int fromIndex,
int toIndex,
char element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int indexOf(double[] array,
double element,
double tolerance)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nulljava.lang.IllegalArgumentException - if tolerance is negativepublic static int indexOf(double[] array,
int fromIndex,
int toIndex,
double element,
double tolerance)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nulljava.lang.IllegalArgumentException - if tolerance is negativepublic static int indexOf(float[] array,
float element,
float tolerance)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nulljava.lang.IllegalArgumentException - if tolerance is negativepublic static int indexOf(float[] array,
int fromIndex,
int toIndex,
float element,
float tolerance)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nulljava.lang.IllegalArgumentException - if tolerance is negativepublic static int indexOf(int[] array,
int element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int indexOf(int[] array,
int fromIndex,
int toIndex,
int element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int indexOf(long[] array,
long element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int indexOf(long[] array,
int fromIndex,
int toIndex,
long element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int indexOf(short[] array,
short element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int indexOf(short[] array,
int fromIndex,
int toIndex,
short element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static <T> int indexOf(T[] array,
T element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static <T> int indexOf(T[] array,
int fromIndex,
int toIndex,
T element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static boolean isNullOrEmpty(boolean[] array)
null or empty.public static boolean isNullOrEmpty(byte[] array)
null or empty.public static boolean isNullOrEmpty(char[] array)
null or empty.public static boolean isNullOrEmpty(double[] array)
null or empty.public static boolean isNullOrEmpty(float[] array)
null or empty.public static boolean isNullOrEmpty(int[] array)
null or empty.public static boolean isNullOrEmpty(long[] array)
null or empty.public static boolean isNullOrEmpty(short[] array)
null or empty.public static <T> boolean isNullOrEmpty(T[] array)
null or empty.public static int lastIndexOf(boolean[] array,
boolean element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int lastIndexOf(boolean[] array,
int fromIndex,
int toIndex,
boolean element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int lastIndexOf(byte[] array,
byte element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int lastIndexOf(byte[] array,
int fromIndex,
int toIndex,
byte element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int lastIndexOf(char[] array,
char element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int lastIndexOf(char[] array,
int fromIndex,
int toIndex,
char element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int lastIndexOf(double[] array,
double element,
double tolerance)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nulljava.lang.IllegalArgumentException - if tolerance is negativepublic static int lastIndexOf(double[] array,
int fromIndex,
int toIndex,
double element,
double tolerance)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nulljava.lang.IllegalArgumentException - if tolerance is negativepublic static int lastIndexOf(float[] array,
float element,
float tolerance)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nulljava.lang.IllegalArgumentException - if tolerance is negativepublic static int lastIndexOf(float[] array,
int fromIndex,
int toIndex,
float element,
float tolerance)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nulljava.lang.IllegalArgumentException - if tolerance is negativepublic static int lastIndexOf(int[] array,
int element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int lastIndexOf(int[] array,
int fromIndex,
int toIndex,
int element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int lastIndexOf(long[] array,
long element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int lastIndexOf(long[] array,
int fromIndex,
int toIndex,
long element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int lastIndexOf(short[] array,
short element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static int lastIndexOf(short[] array,
int fromIndex,
int toIndex,
short element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static <T> int lastIndexOf(T[] array,
T element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static <T> int lastIndexOf(T[] array,
int fromIndex,
int toIndex,
T element)
-1 if the array does not contain the element.java.lang.IllegalArgumentException - if array is nullpublic static boolean[] nullToEmpty(boolean[] array)
public static byte[] nullToEmpty(byte[] array)
public static char[] nullToEmpty(char[] array)
public static double[] nullToEmpty(double[] array)
public static float[] nullToEmpty(float[] array)
public static int[] nullToEmpty(int[] array)
public static long[] nullToEmpty(long[] array)
public static short[] nullToEmpty(short[] array)
public static <T> T[] nullToEmpty(T[] array)
public static void reverse(boolean[] array)
java.lang.IllegalArgumentException - if array is nullpublic static void reverse(byte[] array)
java.lang.IllegalArgumentException - if array is nullpublic static void reverse(char[] array)
java.lang.IllegalArgumentException - if array is nullpublic static void reverse(double[] array)
java.lang.IllegalArgumentException - if array is nullpublic static void reverse(float[] array)
java.lang.IllegalArgumentException - if array is nullpublic static void reverse(int[] array)
java.lang.IllegalArgumentException - if array is nullpublic static void reverse(long[] array)
java.lang.IllegalArgumentException - if array is nullpublic static void reverse(short[] array)
java.lang.IllegalArgumentException - if array is nullpublic static <T> void reverse(T[] array)
java.lang.IllegalArgumentException - if array is nullpublic static boolean slowEquals(boolean[] former,
boolean[] latter)
java.lang.IllegalArgumentException - if former is nulljava.lang.IllegalArgumentException - if latter is nullpublic static boolean slowEquals(byte[] former,
byte[] latter)
java.lang.IllegalArgumentException - if former is nulljava.lang.IllegalArgumentException - if latter is nullpublic static boolean slowEquals(char[] former,
char[] latter)
java.lang.IllegalArgumentException - if former is nulljava.lang.IllegalArgumentException - if latter is nullpublic static boolean slowEquals(double[] former,
double[] latter)
java.lang.IllegalArgumentException - if former is nulljava.lang.IllegalArgumentException - if latter is nullpublic static boolean slowEquals(float[] former,
float[] latter)
java.lang.IllegalArgumentException - if former is nulljava.lang.IllegalArgumentException - if latter is nullpublic static boolean slowEquals(int[] former,
int[] latter)
java.lang.IllegalArgumentException - if former is nulljava.lang.IllegalArgumentException - if latter is nullpublic static boolean slowEquals(long[] former,
long[] latter)
java.lang.IllegalArgumentException - if former is nulljava.lang.IllegalArgumentException - if latter is nullpublic static boolean slowEquals(short[] former,
short[] latter)
java.lang.IllegalArgumentException - if former is nulljava.lang.IllegalArgumentException - if latter is nullpublic static <T> boolean slowEquals(T[] former,
T[] latter)
java.lang.IllegalArgumentException - if former is nulljava.lang.IllegalArgumentException - if latter is nullpublic static void swap(boolean[] array,
int formerIndex,
int latterIndex)
java.lang.IllegalArgumentException - if array is nullpublic static void swap(byte[] array,
int formerIndex,
int latterIndex)
java.lang.IllegalArgumentException - if array is nullpublic static void swap(char[] array,
int formerIndex,
int latterIndex)
java.lang.IllegalArgumentException - if array is nullpublic static void swap(double[] array,
int formerIndex,
int latterIndex)
java.lang.IllegalArgumentException - if array is nullpublic static void swap(float[] array,
int formerIndex,
int latterIndex)
java.lang.IllegalArgumentException - if array is nullpublic static void swap(int[] array,
int formerIndex,
int latterIndex)
java.lang.IllegalArgumentException - if array is nullpublic static void swap(long[] array,
int formerIndex,
int latterIndex)
java.lang.IllegalArgumentException - if array is nullpublic static void swap(short[] array,
int formerIndex,
int latterIndex)
java.lang.IllegalArgumentException - if array is nullpublic static <T> void swap(T[] array,
int formerIndex,
int latterIndex)
java.lang.IllegalArgumentException - if array is null