DthingApi
|
Static Public Member Functions | |
static int | binarySearch (byte[] array, byte value) |
static int | binarySearch (byte[] array, int startIndex, int endIndex, byte value) |
static int | binarySearch (char[] array, char value) |
static int | binarySearch (char[] array, int startIndex, int endIndex, char value) |
static int | binarySearch (double[] array, double value) |
static int | binarySearch (double[] array, int startIndex, int endIndex, double value) |
static int | binarySearch (float[] array, float value) |
static int | binarySearch (float[] array, int startIndex, int endIndex, float value) |
static int | binarySearch (int[] array, int value) |
static int | binarySearch (int[] array, int startIndex, int endIndex, int value) |
static int | binarySearch (long[] array, long value) |
static int | binarySearch (long[] array, int startIndex, int endIndex, long value) |
static int | binarySearch (Object[] array, Object value) |
static int | binarySearch (Object[] array, int startIndex, int endIndex, Object value) |
static< T > int | binarySearch (T[] array, T value, Comparator<? super T > comparator) |
static< T > int | binarySearch (T[] array, int startIndex, int endIndex, T value, Comparator<? super T > comparator) |
static int | binarySearch (short[] array, short value) |
static int | binarySearch (short[] array, int startIndex, int endIndex, short value) |
static void | fill (byte[] array, byte value) |
static void | fill (byte[] array, int start, int end, byte value) |
static void | fill (short[] array, short value) |
static void | fill (short[] array, int start, int end, short value) |
static void | fill (char[] array, char value) |
static void | fill (char[] array, int start, int end, char value) |
static void | fill (int[] array, int value) |
static void | fill (int[] array, int start, int end, int value) |
static void | fill (long[] array, long value) |
static void | fill (long[] array, int start, int end, long value) |
static void | fill (float[] array, float value) |
static void | fill (float[] array, int start, int end, float value) |
static void | fill (double[] array, double value) |
static void | fill (double[] array, int start, int end, double value) |
static void | fill (boolean[] array, boolean value) |
static void | fill (boolean[] array, int start, int end, boolean value) |
static void | fill (Object[] array, Object value) |
static void | fill (Object[] array, int start, int end, Object value) |
static int | hashCode (boolean[] array) |
static int | hashCode (int[] array) |
static int | hashCode (short[] array) |
static int | hashCode (char[] array) |
static int | hashCode (byte[] array) |
static int | hashCode (long[] array) |
static int | hashCode (float[] array) |
static int | hashCode (double[] array) |
static int | hashCode (Object[] array) |
static boolean | equals (byte[] array1, byte[] array2) |
static boolean | equals (short[] array1, short[] array2) |
static boolean | equals (char[] array1, char[] array2) |
static boolean | equals (int[] array1, int[] array2) |
static boolean | equals (long[] array1, long[] array2) |
static boolean | equals (float[] array1, float[] array2) |
static boolean | equals (double[] array1, double[] array2) |
static boolean | equals (boolean[] array1, boolean[] array2) |
static boolean | equals (Object[] array1, Object[] array2) |
static void | sort (byte[] array) |
static void | sort (byte[] array, int start, int end) |
static void | checkOffsetAndCount (int arrayLength, int offset, int count) |
static void | checkStartAndEnd (int len, int start, int end) |
static void | sort (char[] array) |
static void | sort (char[] array, int start, int end) |
static void | sort (double[] array) |
static void | sort (double[] array, int start, int end) |
static void | sort (float[] array) |
static void | sort (float[] array, int start, int end) |
static void | sort (int[] array) |
static void | sort (int[] array, int start, int end) |
static void | sort (long[] array) |
static void | sort (long[] array, int start, int end) |
static void | sort (short[] array) |
static void | sort (short[] array, int start, int end) |
static void | sort (Object[] array) |
static void | sort (Object[] array, int start, int end) |
static< T > void | sort (T[] array, int start, int end, Comparator<? super T > comparator) |
static< T > void | sort (T[] array, Comparator<? super T > comparator) |
static String | toString (boolean[] array) |
static String | toString (byte[] array) |
static String | toString (char[] array) |
static String | toString (double[] array) |
static String | toString (float[] array) |
static String | toString (int[] array) |
static String | toString (long[] array) |
static String | toString (short[] array) |
static String | toString (Object[] array) |
static boolean [] | copyOf (boolean[] original, int newLength) |
static byte [] | copyOf (byte[] original, int newLength) |
static char [] | copyOf (char[] original, int newLength) |
static double [] | copyOf (double[] original, int newLength) |
static float [] | copyOf (float[] original, int newLength) |
static int [] | copyOf (int[] original, int newLength) |
static long [] | copyOf (long[] original, int newLength) |
static short [] | copyOf (short[] original, int newLength) |
static boolean [] | copyOfRange (boolean[] original, int start, int end) |
static byte [] | copyOfRange (byte[] original, int start, int end) |
static char [] | copyOfRange (char[] original, int start, int end) |
static double [] | copyOfRange (double[] original, int start, int end) |
static float [] | copyOfRange (float[] original, int start, int end) |
static int [] | copyOfRange (int[] original, int start, int end) |
static long [] | copyOfRange (long[] original, int start, int end) |
static short [] | copyOfRange (short[] original, int start, int end) |
contains static methods which operate on arrays.
|
inlinestatic |
Performs a binary search for
in the ascending sorted array
. Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
array | the sorted array to search. |
value | the element to find. |
|
inlinestatic |
Performs a binary search for
in the ascending sorted array
, in the range specified by fromIndex (inclusive) and toIndex (exclusive). Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
array | the sorted array to search. |
startIndex | the inclusive start index. |
endIndex | the exclusive start index. |
value | the element to find. |
IllegalArgumentException | if startIndex > endIndex |
ArrayIndexOutOfBoundsException | if startIndex < 0 || endIndex > array.length |
|
inlinestatic |
Performs a binary search for
in the ascending sorted array
. Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
array | the sorted array to search. |
value | the element to find. |
|
inlinestatic |
Performs a binary search for
in the ascending sorted array
, in the range specified by fromIndex (inclusive) and toIndex (exclusive). Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
array | the sorted array to search. |
startIndex | the inclusive start index. |
endIndex | the exclusive start index. |
value | the element to find. |
IllegalArgumentException | if startIndex > endIndex |
ArrayIndexOutOfBoundsException | if startIndex < 0 || endIndex > array.length |
|
inlinestatic |
Performs a binary search for
in the ascending sorted array
. Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
array | the sorted array to search. |
value | the element to find. |
|
inlinestatic |
Performs a binary search for
in the ascending sorted array
, in the range specified by fromIndex (inclusive) and toIndex (exclusive). Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
array | the sorted array to search. |
startIndex | the inclusive start index. |
endIndex | the exclusive start index. |
value | the element to find. |
IllegalArgumentException | if startIndex > endIndex |
ArrayIndexOutOfBoundsException | if startIndex < 0 || endIndex > array.length |
|
inlinestatic |
Performs a binary search for
in the ascending sorted array
. Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
array | the sorted array to search. |
value | the element to find. |
|
inlinestatic |
Performs a binary search for
in the ascending sorted array
, in the range specified by fromIndex (inclusive) and toIndex (exclusive). Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
array | the sorted array to search. |
startIndex | the inclusive start index. |
endIndex | the exclusive start index. |
value | the element to find. |
IllegalArgumentException | if startIndex > endIndex |
ArrayIndexOutOfBoundsException | if startIndex < 0 || endIndex > array.length |
|
inlinestatic |
Performs a binary search for
in the ascending sorted array
. Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
array | the sorted array to search. |
value | the element to find. |
|
inlinestatic |
Performs a binary search for
in the ascending sorted array
, in the range specified by fromIndex (inclusive) and toIndex (exclusive). Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
array | the sorted array to search. |
startIndex | the inclusive start index. |
endIndex | the exclusive start index. |
value | the element to find. |
IllegalArgumentException | if startIndex > endIndex |
ArrayIndexOutOfBoundsException | if startIndex < 0 || endIndex > array.length |
|
inlinestatic |
Performs a binary search for
in the ascending sorted array
. Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
array | the sorted array to search. |
value | the element to find. |
|
inlinestatic |
Performs a binary search for
in the ascending sorted array
, in the range specified by fromIndex (inclusive) and toIndex (exclusive). Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
array | the sorted array to search. |
startIndex | the inclusive start index. |
endIndex | the exclusive start index. |
value | the element to find. |
IllegalArgumentException | if startIndex > endIndex |
ArrayIndexOutOfBoundsException | if startIndex < 0 || endIndex > array.length |
|
inlinestatic |
Performs a binary search for
in the ascending sorted array
. Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
array | the sorted array to search. |
value | the element to find. |
ClassCastException | if an element in the array or the search element does not implement Comparable |
|
inlinestatic |
Performs a binary search for
in the ascending sorted array
, in the range specified by fromIndex (inclusive) and toIndex (exclusive). Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
array | the sorted array to search. |
startIndex | the inclusive start index. |
endIndex | the exclusive start index. |
value | the element to find. |
ClassCastException | if an element in the array or the search element does not implement Comparable |
IllegalArgumentException | if startIndex > endIndex |
ArrayIndexOutOfBoundsException | if startIndex < 0 || endIndex > array.length |
|
inlinestatic |
Performs a binary search for
in the ascending sorted array
, using
to compare elements. Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
array | the sorted array to search. |
value | the element to find. |
comparator | the Comparator |
ClassCastException | if an element in the array or the search element does not implement Comparable |
|
inlinestatic |
Performs a binary search for
in the ascending sorted array
, in the range specified by fromIndex (inclusive) and toIndex (exclusive), using
to compare elements. Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
array | the sorted array to search. |
startIndex | the inclusive start index. |
endIndex | the exclusive start index. |
value | the element to find. |
comparator | the Comparator |
ClassCastException | if an element in the array or the search element does not implement Comparable |
IllegalArgumentException | if startIndex > endIndex |
ArrayIndexOutOfBoundsException | if startIndex < 0 || endIndex > array.length |
|
inlinestatic |
Performs a binary search for
in the ascending sorted array
. Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
array | the sorted array to search. |
value | the element to find. |
|
inlinestatic |
Performs a binary search for
in the ascending sorted array
, in the range specified by fromIndex (inclusive) and toIndex (exclusive). Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
array | the sorted array to search. |
startIndex | the inclusive start index. |
endIndex | the exclusive start index. |
value | the element to find. |
IllegalArgumentException | if startIndex > endIndex |
ArrayIndexOutOfBoundsException | if startIndex < 0 || endIndex > array.length |
|
inlinestatic |
Checks that the range described by
and
doesn't exceed
.
|
inlinestatic |
Checks that the range described by
and
doesn't exceed
.
|
inlinestatic |
Copies
elements from
into a new array. If
is greater than
, the result is padded with the value
.
original | the original array |
newLength | the length of the new array |
NegativeArraySizeException | if newLength < 0 |
NullPointerException | if original == null |
|
inlinestatic |
Copies
elements from
into a new array. If
is greater than
, the result is padded with the value
.
original | the original array |
newLength | the length of the new array |
NegativeArraySizeException | if newLength < 0 |
NullPointerException | if original == null |
|
inlinestatic |
Copies
elements from
into a new array. If
is greater than
, the result is padded with the value
.
original | the original array |
newLength | the length of the new array |
NegativeArraySizeException | if newLength < 0 |
NullPointerException | if original == null |
|
inlinestatic |
Copies
elements from
into a new array. If
is greater than
, the result is padded with the value
.
original | the original array |
newLength | the length of the new array |
NegativeArraySizeException | if newLength < 0 |
NullPointerException | if original == null |
|
inlinestatic |
Copies
elements from
into a new array. If
is greater than
, the result is padded with the value
.
original | the original array |
newLength | the length of the new array |
NegativeArraySizeException | if newLength < 0 |
NullPointerException | if original == null |
|
inlinestatic |
Copies
elements from
into a new array. If
is greater than
, the result is padded with the value
.
original | the original array |
newLength | the length of the new array |
NegativeArraySizeException | if newLength < 0 |
NullPointerException | if original == null |
|
inlinestatic |
Copies
elements from
into a new array. If
is greater than
, the result is padded with the value
.
original | the original array |
newLength | the length of the new array |
NegativeArraySizeException | if newLength < 0 |
NullPointerException | if original == null |
|
inlinestatic |
Copies
elements from
into a new array. If
is greater than
, the result is padded with the value
.
original | the original array |
newLength | the length of the new array |
NegativeArraySizeException | if newLength < 0 |
NullPointerException | if original == null |
|
inlinestatic |
Copies elements from
into a new array, from indexes start (inclusive) to end (exclusive). The original order of elements is preserved. If
is greater than
, the result is padded with the value
.
original | the original array |
start | the start index, inclusive |
end | the end index, exclusive |
ArrayIndexOutOfBoundsException | if start < 0 || start > original.length |
IllegalArgumentException | if start > end |
NullPointerException | if original == null |
|
inlinestatic |
Copies elements from
into a new array, from indexes start (inclusive) to end (exclusive). The original order of elements is preserved. If
is greater than
, the result is padded with the value
.
original | the original array |
start | the start index, inclusive |
end | the end index, exclusive |
ArrayIndexOutOfBoundsException | if start < 0 || start > original.length |
IllegalArgumentException | if start > end |
NullPointerException | if original == null |
|
inlinestatic |
Copies elements from
into a new array, from indexes start (inclusive) to end (exclusive). The original order of elements is preserved. If
is greater than
, the result is padded with the value
.
original | the original array |
start | the start index, inclusive |
end | the end index, exclusive |
ArrayIndexOutOfBoundsException | if start < 0 || start > original.length |
IllegalArgumentException | if start > end |
NullPointerException | if original == null |
|
inlinestatic |
Copies elements from
into a new array, from indexes start (inclusive) to end (exclusive). The original order of elements is preserved. If
is greater than
, the result is padded with the value
.
original | the original array |
start | the start index, inclusive |
end | the end index, exclusive |
ArrayIndexOutOfBoundsException | if start < 0 || start > original.length |
IllegalArgumentException | if start > end |
NullPointerException | if original == null |
|
inlinestatic |
Copies elements from
into a new array, from indexes start (inclusive) to end (exclusive). The original order of elements is preserved. If
is greater than
, the result is padded with the value
.
original | the original array |
start | the start index, inclusive |
end | the end index, exclusive |
ArrayIndexOutOfBoundsException | if start < 0 || start > original.length |
IllegalArgumentException | if start > end |
NullPointerException | if original == null |
|
inlinestatic |
Copies elements from
into a new array, from indexes start (inclusive) to end (exclusive). The original order of elements is preserved. If
is greater than
, the result is padded with the value
.
original | the original array |
start | the start index, inclusive |
end | the end index, exclusive |
ArrayIndexOutOfBoundsException | if start < 0 || start > original.length |
IllegalArgumentException | if start > end |
NullPointerException | if original == null |
|
inlinestatic |
Copies elements from
into a new array, from indexes start (inclusive) to end (exclusive). The original order of elements is preserved. If
is greater than
, the result is padded with the value
.
original | the original array |
start | the start index, inclusive |
end | the end index, exclusive |
ArrayIndexOutOfBoundsException | if start < 0 || start > original.length |
IllegalArgumentException | if start > end |
NullPointerException | if original == null |
|
inlinestatic |
Copies elements from
into a new array, from indexes start (inclusive) to end (exclusive). The original order of elements is preserved. If
is greater than
, the result is padded with the value
.
original | the original array |
start | the start index, inclusive |
end | the end index, exclusive |
ArrayIndexOutOfBoundsException | if start < 0 || start > original.length |
IllegalArgumentException | if start > end |
NullPointerException | if original == null |
|
inlinestatic |
Compares the two arrays.
array1 | the first byte |
array2 | the second byte |
|
inlinestatic |
Compares the two arrays.
array1 | the first short |
array2 | the second short |
|
inlinestatic |
Compares the two arrays.
array1 | the first char |
array2 | the second char |
|
inlinestatic |
Compares the two arrays.
array1 | the first int |
array2 | the second int |
|
inlinestatic |
Compares the two arrays.
array1 | the first long |
array2 | the second long |
|
inlinestatic |
Compares the two arrays. The values are compared in the same manner as
.
array1 | the first float |
array2 | the second float |
|
inlinestatic |
Compares the two arrays. The values are compared in the same manner as
.
array1 | the first double |
array2 | the second double |
|
inlinestatic |
Compares the two arrays.
array1 | the first boolean |
array2 | the second boolean |
|
inlinestatic |
Compares the two arrays.
array1 | the first Object |
array2 | the second Object |
|
inlinestatic |
Fills the specified array with the specified element.
array | the byte |
value | the byte |
|
inlinestatic |
Fills the specified range in the array with the specified element.
array | the byte |
start | the first index to fill. |
end | the last + 1 index to fill. |
value | the byte |
IllegalArgumentException | if start > end |
ArrayIndexOutOfBoundsException | if start < 0 end > array.length |
|
inlinestatic |
Fills the specified array with the specified element.
array | the short |
value | the short |
|
inlinestatic |
Fills the specified range in the array with the specified element.
array | the short |
start | the first index to fill. |
end | the last + 1 index to fill. |
value | the short |
IllegalArgumentException | if start > end |
ArrayIndexOutOfBoundsException | if start < 0 end > array.length |
|
inlinestatic |
Fills the specified array with the specified element.
array | the char |
value | the char |
|
inlinestatic |
Fills the specified range in the array with the specified element.
array | the char |
start | the first index to fill. |
end | the last + 1 index to fill. |
value | the char |
IllegalArgumentException | if start > end |
ArrayIndexOutOfBoundsException | if start < 0 end > array.length |
|
inlinestatic |
Fills the specified array with the specified element.
array | the int |
value | the int |
|
inlinestatic |
Fills the specified range in the array with the specified element.
array | the int |
start | the first index to fill. |
end | the last + 1 index to fill. |
value | the int |
IllegalArgumentException | if start > end |
ArrayIndexOutOfBoundsException | if start < 0 end > array.length |
|
inlinestatic |
Fills the specified array with the specified element.
array | the long |
value | the long |
|
inlinestatic |
Fills the specified range in the array with the specified element.
array | the long |
start | the first index to fill. |
end | the last + 1 index to fill. |
value | the long |
IllegalArgumentException | if start > end |
ArrayIndexOutOfBoundsException | if start < 0 end > array.length |
|
inlinestatic |
Fills the specified array with the specified element.
array | the float |
value | the float |
|
inlinestatic |
Fills the specified range in the array with the specified element.
array | the float |
start | the first index to fill. |
end | the last + 1 index to fill. |
value | the float |
IllegalArgumentException | if start > end |
ArrayIndexOutOfBoundsException | if start < 0 end > array.length |
|
inlinestatic |
Fills the specified array with the specified element.
array | the double |
value | the double |
|
inlinestatic |
Fills the specified range in the array with the specified element.
array | the double |
start | the first index to fill. |
end | the last + 1 index to fill. |
value | the double |
IllegalArgumentException | if start > end |
ArrayIndexOutOfBoundsException | if start < 0 end > array.length |
|
inlinestatic |
Fills the specified array with the specified element.
array | the boolean |
value | the boolean |
|
inlinestatic |
Fills the specified range in the array with the specified element.
array | the boolean |
start | the first index to fill. |
end | the last + 1 index to fill. |
value | the boolean |
IllegalArgumentException | if start > end |
ArrayIndexOutOfBoundsException | if start < 0 end > array.length |
|
inlinestatic |
Fills the specified array with the specified element.
array | the Object |
value | the Object |
|
inlinestatic |
Fills the specified range in the array with the specified element.
array | the Object |
start | the first index to fill. |
end | the last + 1 index to fill. |
value | the Object |
IllegalArgumentException | if start > end |
ArrayIndexOutOfBoundsException | if start < 0 end > array.length |
|
inlinestatic |
Returns a hash code based on the contents of the given array. For any two
arrays
and
, if
returns
, it means that the return value of
equals
.
The value returned by this method is the same value as the List#hashCode() method which is invoked on a List containing a sequence of Boolean instances representing the elements of array in the same order. If the array is
, the return value is 0.
array | the array whose hash code to compute. |
|
inlinestatic |
Returns a hash code based on the contents of the given array. For any two not-null
arrays
and
, if
returns
, it means that the return value of
equals
.
The value returned by this method is the same value as the List#hashCode() method which is invoked on a List containing a sequence of Integer instances representing the elements of array in the same order. If the array is
, the return value is 0.
array | the array whose hash code to compute. |
|
inlinestatic |
Returns a hash code based on the contents of the given array. For any two
arrays
and
, if
returns
, it means that the return value of
equals
.
The value returned by this method is the same value as the List#hashCode() method which is invoked on a List containing a sequence of Short instances representing the elements of array in the same order. If the array is
, the return value is 0.
array | the array whose hash code to compute. |
|
inlinestatic |
Returns a hash code based on the contents of the given array. For any two
arrays
and
, if
returns
, it means that the return value of
equals
.
The value returned by this method is the same value as the List#hashCode() method which is invoked on a List containing a sequence of Character instances representing the elements of array in the same order. If the array is
, the return value is 0.
array | the array whose hash code to compute. |
|
inlinestatic |
Returns a hash code based on the contents of the given array. For any two
arrays
and
, if
returns
, it means that the return value of
equals
.
The value returned by this method is the same value as the List#hashCode() method which is invoked on a List containing a sequence of Byte instances representing the elements of array in the same order. If the array is
, the return value is 0.
array | the array whose hash code to compute. |
|
inlinestatic |
Returns a hash code based on the contents of the given array. For any two
arrays
and
, if
returns
, it means that the return value of
equals
.
The value returned by this method is the same value as the List#hashCode() method which is invoked on a List containing a sequence of Long instances representing the elements of array in the same order. If the array is
, the return value is 0.
array | the array whose hash code to compute. |
|
inlinestatic |
Returns a hash code based on the contents of the given array. For any two
arrays
and
, if
returns
, it means that the return value of
equals
.
The value returned by this method is the same value as the List#hashCode() method which is invoked on a List containing a sequence of Float instances representing the elements of array in the same order. If the array is
, the return value is 0.
array | the array whose hash code to compute. |
|
inlinestatic |
Returns a hash code based on the contents of the given array. For any two
arrays
and
, if
returns
, it means that the return value of
equals
.
The value returned by this method is the same value as the List#hashCode() method which is invoked on a List containing a sequence of Double instances representing the elements of array in the same order. If the array is
, the return value is 0.
array | the array whose hash code to compute. |
|
inlinestatic |
Returns a hash code based on the contents of the given array. If the array contains other arrays as its elements, the hash code is based on their identities not their contents. So it is acceptable to invoke this method on an array that contains itself as an element, either directly or indirectly.
For any two arrays
and
, if
returns
, it means that the return value of
equals
.
The value returned by this method is the same value as the method Arrays.asList(array).hashCode(). If the array is
, the return value is 0.
array | the array whose hash code to compute. |
|
inlinestatic |
Sorts the specified array in ascending numerical order.
array | the byte |
|
inlinestatic |
Sorts the specified range in the array in ascending numerical order.
array | the byte |
start | the start index to sort. |
end | the last + 1 index to sort. |
IllegalArgumentException | if start > end |
ArrayIndexOutOfBoundsException | if start < 0 end > array.length |
|
inlinestatic |
Sorts the specified array in ascending numerical order.
array | the char |
|
inlinestatic |
Sorts the specified range in the array in ascending numerical order.
array | the char |
start | the start index to sort. |
end | the last + 1 index to sort. |
IllegalArgumentException | if start > end |
ArrayIndexOutOfBoundsException | if start < 0 end > array.length |
|
inlinestatic |
Sorts the specified array in ascending numerical order.
array | the double |
|
inlinestatic |
Sorts the specified range in the array in ascending numerical order. The values are sorted according to the order imposed by
.
array | the double |
start | the start index to sort. |
end | the last + 1 index to sort. |
IllegalArgumentException | if start > end |
ArrayIndexOutOfBoundsException | if start < 0 end > array.length |
|
inlinestatic |
Sorts the specified array in ascending numerical order.
array | the float |
|
inlinestatic |
Sorts the specified range in the array in ascending numerical order. The values are sorted according to the order imposed by
.
array | the float |
start | the start index to sort. |
end | the last + 1 index to sort. |
IllegalArgumentException | if start > end |
ArrayIndexOutOfBoundsException | if start < 0 end > array.length |
|
inlinestatic |
Sorts the specified array in ascending numerical order.
array | the int |
|
inlinestatic |
Sorts the specified range in the array in ascending numerical order.
array | the int |
start | the start index to sort. |
end | the last + 1 index to sort. |
IllegalArgumentException | if start > end |
ArrayIndexOutOfBoundsException | if start < 0 end > array.length |
|
inlinestatic |
Sorts the specified array in ascending numerical order.
array | the long |
|
inlinestatic |
Sorts the specified range in the array in ascending numerical order.
array | the long |
start | the start index to sort. |
end | the last + 1 index to sort. |
IllegalArgumentException | if start > end |
ArrayIndexOutOfBoundsException | if start < 0 end > array.length |
|
inlinestatic |
Sorts the specified array in ascending numerical order.
array | the short |
|
inlinestatic |
Sorts the specified range in the array in ascending numerical order.
array | the short |
start | the start index to sort. |
end | the last + 1 index to sort. |
IllegalArgumentException | if start > end |
ArrayIndexOutOfBoundsException | if start < 0 end > array.length |
|
inlinestatic |
A comparator that implements the natural order of a group of mutually comparable elements. Using this comparator saves us from duplicating most of the code in this file (one version for Comparables, one for explicit comparators). Sorts the specified array in ascending natural order.
array | the Object |
ClassCastException | if an element in the array does not implement Comparable |
|
inlinestatic |
Sorts the specified range in the array in ascending natural order. All elements must implement the
interface and must be comparable to each other without a
being thrown.
array | the Object |
start | the start index to sort. |
end | the last + 1 index to sort. |
ClassCastException | if an element in the array does not implement Comparable |
IllegalArgumentException | if start > end |
ArrayIndexOutOfBoundsException | if start < 0 end > array.length |
|
inlinestatic |
Sorts the specified range in the array using the specified
. All elements must be comparable to each other without a
being thrown.
array | the Object |
start | the start index to sort. |
end | the last + 1 index to sort. |
comparator | the Comparator |
ClassCastException | if elements in the array cannot be compared to each other using the Comparator |
IllegalArgumentException | if start > end |
ArrayIndexOutOfBoundsException | if start < 0 end > array.length |
|
inlinestatic |
Sorts the specified array using the specified
. All elements must be comparable to each other without a
being thrown.
array | the Object |
comparator | the Comparator |
ClassCastException | if elements in the array cannot be compared to each other using the Comparator |
|
inlinestatic |
Creates a
representation of the
passed. The result is surrounded by brackets (
), each element is converted to a
via the String#valueOf(boolean) and separated by
. If the array is
, then
is returned.
array | the boolean |
|
inlinestatic |
Creates a
representation of the
passed. The result is surrounded by brackets (
), each element is converted to a
via the String#valueOf(int) and separated by
. If the array is
, then
is returned.
array | the byte |
|
inlinestatic |
Creates a
representation of the
passed. The result is surrounded by brackets (
), each element is converted to a
via the String#valueOf(char) and separated by
. If the array is
, then
is returned.
array | the char |
|
inlinestatic |
Creates a
representation of the
passed. The result is surrounded by brackets (
), each element is converted to a
via the String#valueOf(double) and separated by
. If the array is
, then
is returned.
array | the double |
|
inlinestatic |
Creates a
representation of the
passed. The result is surrounded by brackets (
), each element is converted to a
via the String#valueOf(float) and separated by
. If the array is
, then
is returned.
array | the float |
|
inlinestatic |
Creates a
representation of the
passed. The result is surrounded by brackets (
), each element is converted to a
via the String#valueOf(int) and separated by
. If the array is
, then
is returned.
array | the int |
|
inlinestatic |
Creates a
representation of the
passed. The result is surrounded by brackets (
), each element is converted to a
via the String#valueOf(long) and separated by
. If the array is
, then
is returned.
array | the long |
|
inlinestatic |
Creates a
representation of the
passed. The result is surrounded by brackets (
), each element is converted to a
via the String#valueOf(int) and separated by
. If the array is
, then
is returned.
array | the short |
|
inlinestatic |
Creates a
representation of the
passed. The result is surrounded by brackets (
), each element is converted to a
via the String#valueOf(Object) and separated by
. If the array is
, then
is returned.
array | the Object |