| Modifier and Type | Method and Description |
|---|---|
static boolean[] |
concat(boolean[]... arrays)
Concatenates the given arrays into a single one.
|
static byte[] |
concat(byte[]... arrays)
Concatenates the given arrays into a single one.
|
static char[] |
concat(char[]... arrays)
Concatenates the given arrays into a single one.
|
static double[] |
concat(double[]... arrays)
Concatenates the given arrays into a single one.
|
static float[] |
concat(float[]... arrays)
Concatenates the given arrays into a single one.
|
static int[] |
concat(int[]... arrays)
Concatenates the given arrays into a single one.
|
static long[] |
concat(long[]... arrays)
Concatenates the given arrays into a single one.
|
static short[] |
concat(short[]... arrays)
Concatenates the given arrays into a single one.
|
static <T> T[] |
concat(T[]... arrays)
Concatenates the given arrays into a single one.
|
static boolean[] |
copyOf(boolean... original)
Returns a copy of the given array.
|
static boolean[] |
copyOf(boolean[] a,
int off,
int len)
Copies the specified range of elements from the given array into a
new array.
|
static byte[] |
copyOf(byte... original)
Returns a copy of the given array.
|
static byte[] |
copyOf(byte[] a,
int off,
int len)
Copies the specified range of elements from the given array into a
new array.
|
static char[] |
copyOf(char... original)
Returns a copy of the given array.
|
static char[] |
copyOf(char[] a,
int off,
int len)
Copies the specified range of elements from the given array into a
new array.
|
static double[] |
copyOf(double... original)
Returns a copy of the given array.
|
static double[] |
copyOf(double[] a,
int off,
int len)
Copies the specified range of elements from the given array into a
new array.
|
static float[] |
copyOf(float... original)
Returns a copy of the given array.
|
static float[] |
copyOf(float[] a,
int off,
int len)
Copies the specified range of elements from the given array into a
new array.
|
static int[] |
copyOf(int... original)
Returns a copy of the given array.
|
static int[] |
copyOf(int[] a,
int off,
int len)
Copies the specified range of elements from the given array into a
new array.
|
static long[] |
copyOf(long... original)
Returns a copy of the given array.
|
static long[] |
copyOf(long[] a,
int off,
int len)
Copies the specified range of elements from the given array into a
new array.
|
static short[] |
copyOf(short... original)
Returns a copy of the given array.
|
static short[] |
copyOf(short[] a,
int off,
int len)
Copies the specified range of elements from the given array into a
new array.
|
static <T> T[] |
copyOf(T[] original)
Returns a copy of the given array.
|
static <T> T[] |
copyOf(T[] a,
int off,
int len)
Copies the specified range of elements from the given array into a
new array.
|
static boolean |
isNullOrEmpty(boolean[] a)
Returns whether the given array is
null or empty,
that is, returns true if a is null or empty
and false otherwise. |
static boolean |
isNullOrEmpty(byte[] a)
Returns whether the given array is
null or empty,
that is, returns true if a is null or empty
and false otherwise. |
static boolean |
isNullOrEmpty(char[] a)
Returns whether the given array is
null or empty,
that is, returns true if a is null or empty
and false otherwise. |
static boolean |
isNullOrEmpty(double[] a)
Returns whether the given array is
null or empty,
that is, returns true if a is null or empty
and false otherwise. |
static boolean |
isNullOrEmpty(float[] a)
Returns whether the given array is
null or empty,
that is, returns true if a is null or empty
and false otherwise. |
static boolean |
isNullOrEmpty(int[] a)
Returns whether the given array is
null or empty,
that is, returns true if a is null or empty
and false otherwise. |
static boolean |
isNullOrEmpty(long[] a)
Returns whether the given array is
null or empty,
that is, returns true if a is null or empty
and false otherwise. |
static boolean |
isNullOrEmpty(Object[] a)
Returns whether the given array is
null or empty,
that is, returns true if a is null or empty
and false otherwise. |
static boolean |
isNullOrEmpty(short[] a)
Returns whether the given array is
null or empty,
that is, returns true if a is null or empty
and false otherwise. |
static boolean[] |
reverse(boolean... a)
Returns a new array containing the same elements as the given one,
but in reverse order.
|
static byte[] |
reverse(byte... a)
Returns a new array containing the same elements as the given one,
but in reverse order.
|
static char[] |
reverse(char... a)
Returns a new array containing the same elements as the given one,
but in reverse order.
|
static double[] |
reverse(double... a)
Returns a new array containing the same elements as the given one,
but in reverse order.
|
static float[] |
reverse(float... a)
Returns a new array containing the same elements as the given one,
but in reverse order.
|
static int[] |
reverse(int... a)
Returns a new array containing the same elements as the given one,
but in reverse order.
|
static long[] |
reverse(long... a)
Returns a new array containing the same elements as the given one,
but in reverse order.
|
static short[] |
reverse(short... a)
Returns a new array containing the same elements as the given one,
but in reverse order.
|
static <T> T[] |
reverse(T[] a)
Returns a new array containing the same elements as the given one,
but in reverse order.
|
static boolean[] |
rotate(boolean[] a,
int distance)
Returns a new array containing the same elements as the given one,
but rotated by the given distance.
|
static byte[] |
rotate(byte[] a,
int distance)
Returns a new array containing the same elements as the given one,
but rotated by the given distance.
|
static char[] |
rotate(char[] a,
int distance)
Returns a new array containing the same elements as the given one,
but rotated by the given distance.
|
static double[] |
rotate(double[] a,
int distance)
Returns a new array containing the same elements as the given one,
but rotated by the given distance.
|
static float[] |
rotate(float[] a,
int distance)
Returns a new array containing the same elements as the given one,
but rotated by the given distance.
|
static int[] |
rotate(int[] a,
int distance)
Returns a new array containing the same elements as the given one,
but rotated by the given distance.
|
static long[] |
rotate(long[] a,
int distance)
Returns a new array containing the same elements as the given one,
but rotated by the given distance.
|
static short[] |
rotate(short[] a,
int distance)
Returns a new array containing the same elements as the given one,
but rotated by the given distance.
|
static <T> T[] |
rotate(T[] a,
int distance)
Returns a new array containing the same elements as the given one,
but rotated by the given distance.
|
static boolean[] |
shuffle(boolean... a)
Returns a copy of the given array where its element have been randomly
permuted.
|
static boolean[] |
shuffle(boolean[] a,
Random rnd)
Returns a copy of the given array where its element have been randomly
permuted using the specified source of randomness.
|
static byte[] |
shuffle(byte... a)
Returns a copy of the given array where its element have been randomly
permuted.
|
static byte[] |
shuffle(byte[] a,
Random rnd)
Returns a copy of the given array where its element have been randomly
permuted using the specified source of randomness.
|
static char[] |
shuffle(char... a)
Returns a copy of the given array where its element have been randomly
permuted.
|
static char[] |
shuffle(char[] a,
Random rnd)
Returns a copy of the given array where its element have been randomly
permuted using the specified source of randomness.
|
static double[] |
shuffle(double... a)
Returns a copy of the given array where its element have been randomly
permuted.
|
static double[] |
shuffle(double[] a,
Random rnd)
Returns a copy of the given array where its element have been randomly
permuted using the specified source of randomness.
|
static float[] |
shuffle(float... a)
Returns a copy of the given array where its element have been randomly
permuted.
|
static float[] |
shuffle(float[] a,
Random rnd)
Returns a copy of the given array where its element have been randomly
permuted using the specified source of randomness.
|
static int[] |
shuffle(int... a)
Returns a copy of the given array where its element have been randomly
permuted.
|
static int[] |
shuffle(int[] a,
Random rnd)
Returns a copy of the given array where its element have been randomly
permuted using the specified source of randomness.
|
static long[] |
shuffle(long... a)
Returns a copy of the given array where its element have been randomly
permuted.
|
static long[] |
shuffle(long[] a,
Random rnd)
Returns a copy of the given array where its element have been randomly
permuted using the specified source of randomness.
|
static short[] |
shuffle(short... a)
Returns a copy of the given array where its element have been randomly
permuted.
|
static short[] |
shuffle(short[] a,
Random rnd)
Returns a copy of the given array where its element have been randomly
permuted using the specified source of randomness.
|
static <T> T[] |
shuffle(T[] a)
Returns a copy of the given array where its element have been randomly
permuted.
|
static <T> T[] |
shuffle(T[] a,
Random rnd)
Returns a copy of the given array where its element have been randomly
permuted using the specified source of randomness.
|
static byte[] |
sort(byte... a)
Returns a sorted copy of the given array into ascending numerical
order.
|
static char[] |
sort(char... a)
Returns a sorted copy of the given array into ascending numerical
order.
|
static double[] |
sort(double... a)
Returns a sorted copy of the given array into ascending numerical
order.
|
static float[] |
sort(float... a)
Returns a sorted copy of the given array into ascending numerical
order.
|
static int[] |
sort(int... a)
Returns a sorted copy of the given array into ascending numerical
order.
|
static long[] |
sort(long... a)
Returns a sorted copy of the given array into ascending numerical
order.
|
static short[] |
sort(short... a)
Returns a sorted copy of the given array into ascending numerical
order.
|
static <T> T[] |
sort(T[] a)
Returns a sorted copy of the given array of objects into ascending
order, according to the natural ordering of its elements (all
elements in the array must implement the
Comparable
interface). |
static <T> T[] |
sort(T[] a,
Comparator<? super T> c)
Returns a sorted copy of the given array of objects into ascending
order, according to the order induced by the given
Comparator. |
static Boolean[] |
toObject(boolean... a)
Converts an array of
booleans to an array of Booleans. |
static Byte[] |
toObject(byte... a)
Converts an array of
bytes to an array of Bytes. |
static Character[] |
toObject(char... a)
Converts an array of
chars to an array of Characters. |
static Double[] |
toObject(double... a)
Converts an array of
doubles to an array of Doubles. |
static Float[] |
toObject(float... a)
Converts an array of
floats to an array of Floats. |
static Integer[] |
toObject(int... a)
Converts an array of
ints to an array of Integers. |
static Long[] |
toObject(long... a)
Converts an array of
longs to an array of Longs. |
static Short[] |
toObject(short... a)
Converts an array of
shorts to an array of Shorts. |
static boolean[] |
toPrimitive(Boolean... a)
Converts an array of
Booleans to an array of booleans. |
static byte[] |
toPrimitive(Byte... a)
Converts an array of
Bytes to an array of bytes. |
static char[] |
toPrimitive(Character... a)
Converts an array of
Characters to an array of chars. |
static double[] |
toPrimitive(Double... a)
Converts an array of
Doubles to an array of doubles. |
static float[] |
toPrimitive(Float... a)
Converts an array of
Floats to an array of floats. |
static int[] |
toPrimitive(Integer... a)
Converts an array of
Integers to an array of ints. |
static long[] |
toPrimitive(Long... a)
Converts an array of
Longs to an array of longs. |
static short[] |
toPrimitive(Short... a)
Converts an array of
Shorts to an array of shorts. |
static String |
toString(boolean... a)
Returns a
String representation of the contents of the given
array. |
static String |
toString(byte... a)
Returns a
String representation of the contents of the given
array. |
static String |
toString(char... a)
Returns a
String representation of the contents of the given
array. |
static String |
toString(double... a)
Returns a
String representation of the contents of the given
array. |
static String |
toString(float... a)
Returns a
String representation of the contents of the given
array. |
static String |
toString(int... a)
Returns a
String representation of the contents of the given
array. |
static String |
toString(long... a)
Returns a
String representation of the contents of the given
array. |
static String |
toString(Object[] a)
Returns a
String representation of the contents of the given
array. |
static String |
toString(short... a)
Returns a
String representation of the contents of the given
array. |
public static boolean isNullOrEmpty(long[] a)
null or empty,
that is, returns true if a is null or empty
and false otherwise.a - the array to test.null or empty.public static boolean isNullOrEmpty(int[] a)
null or empty,
that is, returns true if a is null or empty
and false otherwise.a - the array to test.null or empty.public static boolean isNullOrEmpty(short[] a)
null or empty,
that is, returns true if a is null or empty
and false otherwise.a - the array to test.null or empty.public static boolean isNullOrEmpty(char[] a)
null or empty,
that is, returns true if a is null or empty
and false otherwise.a - the array to test.null or empty.public static boolean isNullOrEmpty(byte[] a)
null or empty,
that is, returns true if a is null or empty
and false otherwise.a - the array to test.null or empty.public static boolean isNullOrEmpty(boolean[] a)
null or empty,
that is, returns true if a is null or empty
and false otherwise.a - the array to test.null or empty.public static boolean isNullOrEmpty(float[] a)
null or empty,
that is, returns true if a is null or empty
and false otherwise.a - the array to test.null or empty.public static boolean isNullOrEmpty(double[] a)
null or empty,
that is, returns true if a is null or empty
and false otherwise.a - the array to test.null or empty.public static boolean isNullOrEmpty(Object[] a)
null or empty,
that is, returns true if a is null or empty
and false otherwise.a - the array to test.null or empty.public static long[] concat(long[]... arrays)
arrays - the arrays to concatenate.NullPointerException - if arrays is null or if
it contains a null reference.public static int[] concat(int[]... arrays)
arrays - the arrays to concatenate.NullPointerException - if arrays is null or if
it contains a null reference.public static short[] concat(short[]... arrays)
arrays - the arrays to concatenate.NullPointerException - if arrays is null or if
it contains a null reference.public static char[] concat(char[]... arrays)
arrays - the arrays to concatenate.NullPointerException - if arrays is null or if
it contains a null reference.public static byte[] concat(byte[]... arrays)
arrays - the arrays to concatenate.NullPointerException - if arrays is null or if
it contains a null reference.public static boolean[] concat(boolean[]... arrays)
arrays - the arrays to concatenate.NullPointerException - if arrays is null or if
it contains a null reference.public static float[] concat(float[]... arrays)
arrays - the arrays to concatenate.NullPointerException - if arrays is null or if
it contains a null reference.public static double[] concat(double[]... arrays)
arrays - the arrays to concatenate.NullPointerException - if arrays is null or if
it contains a null reference.public static <T> T[] concat(T[]... arrays)
T - the type of the elements in the arrays to concatenate.arrays - the arrays to concatenate.IllegalArgumentException - if arrays is empty.NullPointerException - if arrays is null or if
it contains a null reference.public static long[] copyOf(long[] a,
int off,
int len)
0, if
necessary, so that it has an exact length of len.a - the source array.off - the starting position in the source array.len - the number of elements to copy (returned array's length).NullPointerException - if a is null.ArrayIndexOutOfBoundsException - if off is negative.NegativeArraySizeException - if len is negative.public static int[] copyOf(int[] a,
int off,
int len)
0, if
necessary, so that it has an exact length of len.a - the source array.off - the starting position in the source array.len - the number of elements to copy (returned array's length).NullPointerException - if a is null.ArrayIndexOutOfBoundsException - if off is negative.NegativeArraySizeException - if len is negative.public static short[] copyOf(short[] a,
int off,
int len)
0, if
necessary, so that it has an exact length of len.a - the source array.off - the starting position in the source array.len - the number of elements to copy (returned array's length).NullPointerException - if a is null.ArrayIndexOutOfBoundsException - if off is negative.NegativeArraySizeException - if len is negative.public static char[] copyOf(char[] a,
int off,
int len)
0, if
necessary, so that it has an exact length of len.a - the source array.off - the starting position in the source array.len - the number of elements to copy (returned array's length).NullPointerException - if a is null.ArrayIndexOutOfBoundsException - if off is negative.NegativeArraySizeException - if len is negative.public static byte[] copyOf(byte[] a,
int off,
int len)
0, if
necessary, so that it has an exact length of len.a - the source array.off - the starting position in the source array.len - the number of elements to copy (returned array's length).NullPointerException - if a is null.ArrayIndexOutOfBoundsException - if off is negative.NegativeArraySizeException - if len is negative.public static boolean[] copyOf(boolean[] a,
int off,
int len)
false, if
necessary, so that it has an exact length of len.a - the source array.off - the starting position in the source array.len - the number of elements to copy (returned array's length).NullPointerException - if a is null.ArrayIndexOutOfBoundsException - if off is negative.NegativeArraySizeException - if len is negative.public static float[] copyOf(float[] a,
int off,
int len)
0.0, if
necessary, so that it has an exact length of len.a - the source array.off - the starting position in the source array.len - the number of elements to copy (returned array's length).NullPointerException - if a is null.ArrayIndexOutOfBoundsException - if off is negative.NegativeArraySizeException - if len is negative.public static double[] copyOf(double[] a,
int off,
int len)
0.0, if
necessary, so that it has an exact length of len.a - the source array.off - the starting position in the source array.len - the number of elements to copy (returned array's length).NullPointerException - if a is null.ArrayIndexOutOfBoundsException - if off is negative.NegativeArraySizeException - if len is negative.public static <T> T[] copyOf(T[] a,
int off,
int len)
null, if
necessary, so that it has an exact length of len.T - the type of the elements in the array to copy.a - the source array.off - the starting position in the source array.len - the number of elements to copy (returned array's length).NullPointerException - if a is null.ArrayIndexOutOfBoundsException - if off is negative.NegativeArraySizeException - if len is negative.public static long[] copyOf(long... original)
original - the array to be copied.NullPointerException - if original is null.public static int[] copyOf(int... original)
original - the array to be copied.NullPointerException - if original is null.public static short[] copyOf(short... original)
original - the array to be copied.NullPointerException - if original is null.public static char[] copyOf(char... original)
original - the array to be copied.NullPointerException - if original is null.public static byte[] copyOf(byte... original)
original - the array to be copied.NullPointerException - if original is null.public static boolean[] copyOf(boolean... original)
original - the array to be copied.NullPointerException - if original is null.public static float[] copyOf(float... original)
original - the array to be copied.NullPointerException - if original is null.public static double[] copyOf(double... original)
original - the array to be copied.NullPointerException - if original is null.public static <T> T[] copyOf(T[] original)
T - the type of the elements in the array to copy.original - the array to be copied.NullPointerException - if original is null.public static long[] reverse(long... a)
a - the array to reverse.NullPointerException - if a is null.public static int[] reverse(int... a)
a - the array to reverse.NullPointerException - if a is null.public static short[] reverse(short... a)
a - the array to reverse.NullPointerException - if a is null.public static char[] reverse(char... a)
a - the array to reverse.NullPointerException - if a is null.public static byte[] reverse(byte... a)
a - the array to reverse.NullPointerException - if a is null.public static boolean[] reverse(boolean... a)
a - the array to reverse.NullPointerException - if a is null.public static float[] reverse(float... a)
a - the array to reverse.NullPointerException - if a is null.public static double[] reverse(double... a)
a - the array to reverse.NullPointerException - if a is null.public static <T> T[] reverse(T[] a)
T - the type of the elements in the array to reverse.a - the array to reverse.NullPointerException - if a is null.public static long[] rotate(long[] a,
int distance)
i in
the returned array corresponds to the element in the original array
at index (i - distance) mod a.length, for all values
of i between 0 and a.length - 1, inclusive.
Note that rotation by 0 or by a multiple of a.length
is a no-op.a - the array to rotate.distance - the distance to rotate.NullPointerException - if a is null.public static int[] rotate(int[] a,
int distance)
i in
the returned array corresponds to the element in the original array
at index (i - distance) mod a.length, for all values
of i between 0 and a.length - 1, inclusive.
Note that rotation by 0 or by a multiple of a.length
is a no-op.a - the array to rotate.distance - the distance to rotate.NullPointerException - if a is null.public static short[] rotate(short[] a,
int distance)
i in
the returned array corresponds to the element in the original array
at index (i - distance) mod a.length, for all values
of i between 0 and a.length - 1, inclusive.
Note that rotation by 0 or by a multiple of a.length
is a no-op.a - the array to rotate.distance - the distance to rotate.NullPointerException - if a is null.public static char[] rotate(char[] a,
int distance)
i in
the returned array corresponds to the element in the original array
at index (i - distance) mod a.length, for all values
of i between 0 and a.length - 1, inclusive.
Note that rotation by 0 or by a multiple of a.length
is a no-op.a - the array to rotate.distance - the distance to rotate.NullPointerException - if a is null.public static byte[] rotate(byte[] a,
int distance)
i in
the returned array corresponds to the element in the original array
at index (i - distance) mod a.length, for all values
of i between 0 and a.length - 1, inclusive.
Note that rotation by 0 or by a multiple of a.length
is a no-op.a - the array to rotate.distance - the distance to rotate.NullPointerException - if a is null.public static boolean[] rotate(boolean[] a,
int distance)
i in
the returned array corresponds to the element in the original array
at index (i - distance) mod a.length, for all values
of i between 0 and a.length - 1, inclusive.
Note that rotation by 0 or by a multiple of a.length
is a no-op.a - the array to rotate.distance - the distance to rotate.NullPointerException - if a is null.public static float[] rotate(float[] a,
int distance)
i in
the returned array corresponds to the element in the original array
at index (i - distance) mod a.length, for all values
of i between 0 and a.length - 1, inclusive.
Note that rotation by 0 or by a multiple of a.length
is a no-op.a - the array to rotate.distance - the distance to rotate.NullPointerException - if a is null.public static double[] rotate(double[] a,
int distance)
i in
the returned array corresponds to the element in the original array
at index (i - distance) mod a.length, for all values
of i between 0 and a.length - 1, inclusive.
Note that rotation by 0 or by a multiple of a.length
is a no-op.a - the array to rotate.distance - the distance to rotate.NullPointerException - if a is null.public static <T> T[] rotate(T[] a,
int distance)
i in
the returned array corresponds to the element in the original array
at index (i - distance) mod a.length, for all values
of i between 0 and a.length - 1, inclusive.
Note that rotation by 0 or by a multiple of a.length
is a no-op.T - the type of the elements in the array to rotate.a - the array to rotate.distance - the distance to rotate.NullPointerException - if a is null.public static long[] shuffle(long... a)
a - the array whose content will be shuffled.NullPointerException - if a is null.public static long[] shuffle(long[] a,
Random rnd)
a - the array whose content will be shuffled.rnd - the source of randomness to use.NullPointerException - if one of the arguments is null.public static int[] shuffle(int... a)
a - the array whose content will be shuffled.NullPointerException - if a is null.public static int[] shuffle(int[] a,
Random rnd)
a - the array whose content will be shuffled.rnd - the source of randomness to use.NullPointerException - if one of the arguments is null.public static short[] shuffle(short... a)
a - the array whose content will be shuffled.NullPointerException - if a is null.public static short[] shuffle(short[] a,
Random rnd)
a - the array whose content will be shuffled.rnd - the source of randomness to use.NullPointerException - if one of the arguments is null.public static char[] shuffle(char... a)
a - the array whose content will be shuffled.NullPointerException - if a is null.public static char[] shuffle(char[] a,
Random rnd)
a - the array whose content will be shuffled.rnd - the source of randomness to use.NullPointerException - if one of the arguments is null.public static byte[] shuffle(byte... a)
a - the array whose content will be shuffled.NullPointerException - if a is null.public static byte[] shuffle(byte[] a,
Random rnd)
a - the array whose content will be shuffled.rnd - the source of randomness to use.NullPointerException - if one of the arguments is null.public static boolean[] shuffle(boolean... a)
a - the array whose content will be shuffled.NullPointerException - if a is null.public static boolean[] shuffle(boolean[] a,
Random rnd)
a - the array whose content will be shuffled.rnd - the source of randomness to use.NullPointerException - if one of the arguments is null.public static float[] shuffle(float... a)
a - the array whose content will be shuffled.NullPointerException - if a is null.public static float[] shuffle(float[] a,
Random rnd)
a - the array whose content will be shuffled.rnd - the source of randomness to use.NullPointerException - if one of the arguments is null.public static double[] shuffle(double... a)
a - the array whose content will be shuffled.NullPointerException - if a is null.public static double[] shuffle(double[] a,
Random rnd)
a - the array whose content will be shuffled.rnd - the source of randomness to use.NullPointerException - if one of the arguments is null.public static <T> T[] shuffle(T[] a)
T - the type of the elements in the array to shuffle.a - the array whose content will be shuffled.NullPointerException - if a is null.public static <T> T[] shuffle(T[] a,
Random rnd)
T - the type of the elements in the array to shuffle.a - the array whose content will be shuffled.rnd - the source of randomness to use.NullPointerException - if one of the arguments is null.public static long[] sort(long... a)
a - the array to be sorted.NullPointerException - if a is null.Arrays.sort(long[])public static int[] sort(int... a)
a - the array to be sorted.NullPointerException - if a is null.Arrays.sort(int[])public static short[] sort(short... a)
a - the array to be sorted.NullPointerException - if a is null.Arrays.sort(short[])public static char[] sort(char... a)
a - the array to be sorted.NullPointerException - if a is null.Arrays.sort(char[])public static byte[] sort(byte... a)
a - the array to be sorted.NullPointerException - if a is null.Arrays.sort(byte[])public static float[] sort(float... a)
a - the array to be sorted.NullPointerException - if a is null.Arrays.sort(float[])public static double[] sort(double... a)
a - the array to be sorted.NullPointerException - if a is null.Arrays.sort(double[])public static <T> T[] sort(T[] a)
Comparable
interface).T - the type of the elements in the array to sort.a - the array to be sorted.NullPointerException - if a is null.ClassCastException - if the array contains elements that are
not mutually comparable (for example, Strings and Integers).IllegalArgumentException - if the natural ordering of the array
elements is found to violate the Comparable contract.Arrays.sort(java.lang.Object[])public static <T> T[] sort(T[] a,
Comparator<? super T> c)
Comparator.T - the type of the elements in the array to sort.a - the array to be sorted.c - the comparator to determine the order of the array.NullPointerException - if a or c is null.ClassCastException - if the array contains elements that are
not mutually comparable (for example, Strings and Integers).Arrays.sort(java.lang.Object[], java.util.Comparator)public static long[] toPrimitive(Long... a)
Longs to an array of longs.
Returns null if the given array is null. Does not
modify the input array.a - the Long array to convert.long array.NullPointerException - if a contains a null value.public static int[] toPrimitive(Integer... a)
Integers to an array of ints.
Returns null if the given array is null. Does not
modify the input array.a - the Integer array to convert.int array.NullPointerException - if a contains a null value.public static short[] toPrimitive(Short... a)
Shorts to an array of shorts.
Returns null if the given array is null. Does not
modify the input array.a - the Short array to convert.short array.NullPointerException - if a contains a null value.public static char[] toPrimitive(Character... a)
Characters to an array of chars.
Returns null if the given array is null. Does not
modify the input array.a - the Character array to convert.char array.NullPointerException - if a contains a null value.public static byte[] toPrimitive(Byte... a)
Bytes to an array of bytes.
Returns null if the given array is null. Does not
modify the input array.a - the Byte array to convert.byte array.NullPointerException - if a contains a null value.public static boolean[] toPrimitive(Boolean... a)
Booleans to an array of booleans.
Returns null if the given array is null. Does not
modify the input array.a - the Boolean array to convert.boolean array.NullPointerException - if a contains a null value.public static float[] toPrimitive(Float... a)
Floats to an array of floats.
Returns null if the given array is null. Does not
modify the input array.a - the Float array to convert.float array.NullPointerException - if a contains a null value.public static double[] toPrimitive(Double... a)
Doubles to an array of doubles.
Returns null if the given array is null. Does not
modify the input array.a - the Double array to convert.double array.NullPointerException - if a contains a null value.public static Long[] toObject(long... a)
longs to an array of Longs.
Returns null if the given array is null. Does not
modify the input array.a - the long array to convert.Long array.public static Integer[] toObject(int... a)
ints to an array of Integers.
Returns null if the given array is null. Does not
modify the input array.a - the int array to convert.Integer array.public static Short[] toObject(short... a)
shorts to an array of Shorts.
Returns null if the given array is null. Does not
modify the input array.a - the short array to convert.Short array.public static Character[] toObject(char... a)
chars to an array of Characters.
Returns null if the given array is null. Does not
modify the input array.a - the char array to convert.Character array.public static Byte[] toObject(byte... a)
bytes to an array of Bytes.
Returns null if the given array is null. Does not
modify the input array.a - the byte array to convert.Byte array.public static Boolean[] toObject(boolean... a)
booleans to an array of Booleans.
Returns null if the given array is null. Does not
modify the input array.a - the boolean array to convert.Boolean array.public static Float[] toObject(float... a)
floats to an array of Floats.
Returns null if the given array is null. Does not
modify the input array.a - the Float array to convert.Short array.public static Double[] toObject(double... a)
doubles to an array of Doubles.
Returns null if the given array is null. Does not
modify the input array.a - the double array to convert.Double array.public static String toString(long... a)
String representation of the contents of the given
array. Returns "null" if a is null.a - the array whose String representation to return.String representation of a.Arrays.toString(long[])public static String toString(int... a)
String representation of the contents of the given
array. Returns "null" if a is null.a - the array whose String representation to return.String representation of a.Arrays.toString(int[])public static String toString(short... a)
String representation of the contents of the given
array. Returns "null" if a is null.a - the array whose String representation to return.String representation of a.Arrays.toString(short[])public static String toString(char... a)
String representation of the contents of the given
array. Returns "null" if a is null.a - the array whose String representation to return.String representation of a.Arrays.toString(char[])public static String toString(byte... a)
String representation of the contents of the given
array. Returns "null" if a is null.a - the array whose String representation to return.String representation of a.Arrays.toString(byte[])public static String toString(boolean... a)
String representation of the contents of the given
array. Returns "null" if a is null.a - the array whose String representation to return.String representation of a.Arrays.toString(boolean[])public static String toString(float... a)
String representation of the contents of the given
array. Returns "null" if a is null.a - the array whose String representation to return.String representation of a.Arrays.toString(float[])public static String toString(double... a)
String representation of the contents of the given
array. Returns "null" if a is null.a - the array whose String representation to return.String representation of a.Arrays.toString(double[])public static String toString(Object[] a)
String representation of the contents of the given
array. Accepts multidimensional arrays. Returns "null" if
a is null.a - the array whose String representation to return.String representation of a.Arrays.deepToString(java.lang.Object[])Copyright © 2012–2015. All rights reserved.