Example usage for Java java.util Arrays fields, constructors, methods, implement or subclass
The text is from its open source code.
List | asList(T... a) Returns a fixed-size list backed by the specified array. |
int | binarySearch(long[] a, long key) Searches the specified array of longs for the specified value using the binary search algorithm. |
int | binarySearch(int[] a, int key) Searches the specified array of ints for the specified value using the binary search algorithm. |
int | binarySearch(short[] a, short key) Searches the specified array of shorts for the specified value using the binary search algorithm. |
int | binarySearch(char[] a, char key) Searches the specified array of chars for the specified value using the binary search algorithm. |
int | binarySearch(byte[] a, byte key) Searches the specified array of bytes for the specified value using the binary search algorithm. |
int | binarySearch(double[] a, double key) Searches the specified array of doubles for the specified value using the binary search algorithm. |
int | binarySearch(float[] a, float key) Searches the specified array of floats for the specified value using the binary search algorithm. |
int | binarySearch(Object[] a, Object key) Searches the specified array for the specified object using the binary search algorithm. |
int | binarySearch(long[] a, int fromIndex, int toIndex, long key) Searches a range of the specified array of longs for the specified value using the binary search algorithm. |
int | binarySearch(int[] a, int fromIndex, int toIndex, int key) Searches a range of the specified array of ints for the specified value using the binary search algorithm. |
int | binarySearch(short[] a, int fromIndex, int toIndex, short key) Searches a range of the specified array of shorts for the specified value using the binary search algorithm. |
int | binarySearch(char[] a, int fromIndex, int toIndex, char key) Searches a range of the specified array of chars for the specified value using the binary search algorithm. |
int | binarySearch(byte[] a, int fromIndex, int toIndex, byte key) Searches a range of the specified array of bytes for the specified value using the binary search algorithm. |
int | binarySearch(double[] a, int fromIndex, int toIndex, double key) Searches a range of the specified array of doubles for the specified value using the binary search algorithm. |
int | binarySearch(float[] a, int fromIndex, int toIndex, float key) Searches a range of the specified array of floats for the specified value using the binary search algorithm. |
int | binarySearch(Object[] a, int fromIndex, int toIndex, Object key) Searches a range of the specified array for the specified object using the binary search algorithm. |
int | binarySearch(T[] a, T key, Comparator super T> c) Searches the specified array for the specified object using the binary search algorithm. |
int | binarySearch(T[] a, int fromIndex, int toIndex, T key, Comparator super T> c) Searches a range of the specified array for the specified object using the binary search algorithm. |
T[] | copyOf(T[] original, int newLength) Copies the specified array, truncating or padding with nulls (if necessary) so the copy has the specified length. |
byte[] | copyOf(byte[] original, int newLength) Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length. |
short[] | copyOf(short[] original, int newLength) Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length. |
int[] | copyOf(int[] original, int newLength) Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length. |
long[] | copyOf(long[] original, int newLength) Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length. |
char[] | copyOf(char[] original, int newLength) Copies the specified array, truncating or padding with null characters (if necessary) so the copy has the specified length. |
float[] | copyOf(float[] original, int newLength) Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length. |
double[] | copyOf(double[] original, int newLength) Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length. |
boolean[] | copyOf(boolean[] original, int newLength) Copies the specified array, truncating or padding with false (if necessary) so the copy has the specified length. |
T[] | copyOf(U[] original, int newLength, Class extends T[]> newType) Copies the specified array, truncating or padding with nulls (if necessary) so the copy has the specified length. |
T[] | copyOfRange(T[] original, int from, int to) Copies the specified range of the specified array into a new array. |
byte[] | copyOfRange(byte[] original, int from, int to) Copies the specified range of the specified array into a new array. |
short[] | copyOfRange(short[] original, int from, int to) Copies the specified range of the specified array into a new array. |
int[] | copyOfRange(int[] original, int from, int to) Copies the specified range of the specified array into a new array. |
long[] | copyOfRange(long[] original, int from, int to) Copies the specified range of the specified array into a new array. |
char[] | copyOfRange(char[] original, int from, int to) Copies the specified range of the specified array into a new array. |
float[] | copyOfRange(float[] original, int from, int to) Copies the specified range of the specified array into a new array. |
double[] | copyOfRange(double[] original, int from, int to) Copies the specified range of the specified array into a new array. |
boolean[] | copyOfRange(boolean[] original, int from, int to) Copies the specified range of the specified array into a new array. |
T[] | copyOfRange(U[] original, int from, int to, Class extends T[]> newType) Copies the specified range of the specified array into a new array. |
boolean | deepEquals(Object[] a1, Object[] a2) Returns true if the two specified arrays are deeply equal to one another. |
int | deepHashCode(Object a[]) Returns a hash code based on the "deep contents" of the specified array. |
String | deepToString(Object[] a) Returns a string representation of the "deep contents" of the specified array. |
boolean | equals(long[] a, long[] a2) Returns true if the two specified arrays of longs are equal to one another. |
boolean | equals(int[] a, int[] a2) Returns true if the two specified arrays of ints are equal to one another. |
boolean | equals(short[] a, short a2[]) Returns true if the two specified arrays of shorts are equal to one another. |
boolean | equals(char[] a, char[] a2) Returns true if the two specified arrays of chars are equal to one another. |
boolean | equals(byte[] a, byte[] a2) Returns true if the two specified arrays of bytes are equal to one another. |
boolean | equals(boolean[] a, boolean[] a2) Returns true if the two specified arrays of booleans are equal to one another. |
boolean | equals(double[] a, double[] a2) Returns true if the two specified arrays of doubles are equal to one another. |
boolean | equals(float[] a, float[] a2) Returns true if the two specified arrays of floats are equal to one another. |
boolean | equals(Object[] a, Object[] a2) Returns true if the two specified arrays of Objects are equal to one another. |
void | fill(long[] a, long val) Assigns the specified long value to each element of the specified array of longs. |
void | fill(int[] a, int val) Assigns the specified int value to each element of the specified array of ints. |
void | fill(short[] a, short val) Assigns the specified short value to each element of the specified array of shorts. |
void | fill(char[] a, char val) Assigns the specified char value to each element of the specified array of chars. |
void | fill(byte[] a, byte val) Assigns the specified byte value to each element of the specified array of bytes. |
void | fill(boolean[] a, boolean val) Assigns the specified boolean value to each element of the specified array of booleans. |
void | fill(double[] a, double val) Assigns the specified double value to each element of the specified array of doubles. |
void | fill(float[] a, float val) Assigns the specified float value to each element of the specified array of floats. |
void | fill(Object[] a, Object val) Assigns the specified Object reference to each element of the specified array of Objects. |
void | fill(long[] a, int fromIndex, int toIndex, long val) Assigns the specified long value to each element of the specified range of the specified array of longs. |
void | fill(int[] a, int fromIndex, int toIndex, int val) Assigns the specified int value to each element of the specified range of the specified array of ints. |
void | fill(short[] a, int fromIndex, int toIndex, short val) Assigns the specified short value to each element of the specified range of the specified array of shorts. |
void | fill(char[] a, int fromIndex, int toIndex, char val) Assigns the specified char value to each element of the specified range of the specified array of chars. |
void | fill(byte[] a, int fromIndex, int toIndex, byte val) Assigns the specified byte value to each element of the specified range of the specified array of bytes. |
void | fill(boolean[] a, int fromIndex, int toIndex, boolean val) Assigns the specified boolean value to each element of the specified range of the specified array of booleans. |
void | fill(double[] a, int fromIndex, int toIndex, double val) Assigns the specified double value to each element of the specified range of the specified array of doubles. |
void | fill(float[] a, int fromIndex, int toIndex, float val) Assigns the specified float value to each element of the specified range of the specified array of floats. |
void | fill(Object[] a, int fromIndex, int toIndex, Object val) Assigns the specified Object reference to each element of the specified range of the specified array of Objects. |
int | hashCode(long a[]) Returns a hash code based on the contents of the specified array. |
int | hashCode(int a[]) Returns a hash code based on the contents of the specified array. |
int | hashCode(short a[]) Returns a hash code based on the contents of the specified array. |
int | hashCode(char a[]) Returns a hash code based on the contents of the specified array. |
int | hashCode(byte a[]) Returns a hash code based on the contents of the specified array. |
int | hashCode(boolean a[]) Returns a hash code based on the contents of the specified array. |
int | hashCode(float a[]) Returns a hash code based on the contents of the specified array. |
int | hashCode(double a[]) Returns a hash code based on the contents of the specified array. |
int | hashCode(Object a[]) Returns a hash code based on the contents of the specified array. |
void | parallelSetAll(T[] array, IntFunction extends T> generator) Set all elements of the specified array, in parallel, using the provided generator function to compute each element. |
void | parallelSetAll(int[] array, IntUnaryOperator generator) Set all elements of the specified array, in parallel, using the provided generator function to compute each element. |
void | parallelSetAll(long[] array, IntToLongFunction generator) Set all elements of the specified array, in parallel, using the provided generator function to compute each element. |
void | parallelSetAll(double[] array, IntToDoubleFunction generator) Set all elements of the specified array, in parallel, using the provided generator function to compute each element. |
void | parallelSort(byte[] a) Sorts the specified array into ascending numerical order. |
void | parallelSort(char[] a) Sorts the specified array into ascending numerical order. |
void | parallelSort(short[] a) Sorts the specified array into ascending numerical order. |
void | parallelSort(int[] a) Sorts the specified array into ascending numerical order. |
void | parallelSort(long[] a) Sorts the specified array into ascending numerical order. |
void | parallelSort(float[] a) Sorts the specified array into ascending numerical order. |
void | parallelSort(double[] a) Sorts the specified array into ascending numerical order. |
void | parallelSort(T[] a) Sorts the specified array of objects into ascending order, according to the Comparable natural ordering of its elements. |
void | parallelSort(byte[] a, int fromIndex, int toIndex) Sorts the specified range of the array into ascending numerical order. |
void | parallelSort(char[] a, int fromIndex, int toIndex) Sorts the specified range of the array into ascending numerical order. |
void | parallelSort(short[] a, int fromIndex, int toIndex) Sorts the specified range of the array into ascending numerical order. |
void | parallelSort(int[] a, int fromIndex, int toIndex) Sorts the specified range of the array into ascending numerical order. |
void | parallelSort(long[] a, int fromIndex, int toIndex) Sorts the specified range of the array into ascending numerical order. |
void | parallelSort(float[] a, int fromIndex, int toIndex) Sorts the specified range of the array into ascending numerical order. |
void | parallelSort(double[] a, int fromIndex, int toIndex) Sorts the specified range of the array into ascending numerical order. |
void | parallelSort(T[] a, int fromIndex, int toIndex) Sorts the specified range of the specified array of objects into ascending order, according to the Comparable natural ordering of its elements. |
void | parallelSort(T[] a, Comparator super T> cmp) Sorts the specified array of objects according to the order induced by the specified comparator. |
void | setAll(T[] array, IntFunction extends T> generator) Set all elements of the specified array, using the provided generator function to compute each element. |
void | setAll(int[] array, IntUnaryOperator generator) Set all elements of the specified array, using the provided generator function to compute each element. |
void | setAll(long[] array, IntToLongFunction generator) Set all elements of the specified array, using the provided generator function to compute each element. |
void | setAll(double[] array, IntToDoubleFunction generator) Set all elements of the specified array, using the provided generator function to compute each element. |
void | sort(int[] a) Sorts the specified array into ascending numerical order. |
void | sort(long[] a) Sorts the specified array into ascending numerical order. |
void | sort(short[] a) Sorts the specified array into ascending numerical order. |
void | sort(char[] a) Sorts the specified array into ascending numerical order. |
void | sort(byte[] a) Sorts the specified array into ascending numerical order. |
void | sort(float[] a) Sorts the specified array into ascending numerical order. |
void | sort(double[] a) Sorts the specified array into ascending numerical order. |
void | sort(Object[] a) Sorts the specified array of objects into ascending order, according to the Comparable natural ordering of its elements. |
void | sort(T[] a, Comparator super T> c) Sorts the specified array of objects according to the order induced by the specified comparator. |
void | sort(int[] a, int fromIndex, int toIndex) Sorts the specified range of the array into ascending order. |
void | sort(long[] a, int fromIndex, int toIndex) Sorts the specified range of the array into ascending order. |
void | sort(short[] a, int fromIndex, int toIndex) Sorts the specified range of the array into ascending order. |
void | sort(char[] a, int fromIndex, int toIndex) Sorts the specified range of the array into ascending order. |
void | sort(byte[] a, int fromIndex, int toIndex) Sorts the specified range of the array into ascending order. |
void | sort(float[] a, int fromIndex, int toIndex) Sorts the specified range of the array into ascending order. |
void | sort(double[] a, int fromIndex, int toIndex) Sorts the specified range of the array into ascending order. |
void | sort(Object[] a, int fromIndex, int toIndex) Sorts the specified range of the specified array of objects into ascending order, according to the Comparable natural ordering of its elements. |
void | sort(T[] a, int fromIndex, int toIndex, Comparator super T> c) Sorts the specified range of the specified array of objects according to the order induced by the specified comparator. |
Spliterator | spliterator(T[] array) Returns a Spliterator covering all of the specified array. |
Spliterator.OfInt | spliterator(int[] array) Returns a Spliterator.OfInt covering all of the specified array. |
Spliterator.OfLong | spliterator(long[] array) Returns a Spliterator.OfLong covering all of the specified array. |
Spliterator.OfDouble | spliterator(double[] array) Returns a Spliterator.OfDouble covering all of the specified array. |
Stream | stream(T[] array) Returns a sequential Stream with the specified array as its source. |
IntStream | stream(int[] array) Returns a sequential IntStream with the specified array as its source. |
LongStream | stream(long[] array) Returns a sequential LongStream with the specified array as its source. |
DoubleStream | stream(double[] array) Returns a sequential DoubleStream with the specified array as its source. |
Stream | stream(T[] array, int startInclusive, int endExclusive) Returns a sequential Stream with the specified range of the specified array as its source. |
IntStream | stream(int[] array, int startInclusive, int endExclusive) Returns a sequential IntStream with the specified range of the specified array as its source. |
LongStream | stream(long[] array, int startInclusive, int endExclusive) Returns a sequential LongStream with the specified range of the specified array as its source. |
DoubleStream | stream(double[] array, int startInclusive, int endExclusive) Returns a sequential DoubleStream with the specified range of the specified array as its source. |
String | toString(long[] a) Returns a string representation of the contents of the specified array. |
String | toString(int[] a) Returns a string representation of the contents of the specified array. |
String | toString(short[] a) Returns a string representation of the contents of the specified array. |
String | toString(char[] a) Returns a string representation of the contents of the specified array. |
String | toString(byte[] a) Returns a string representation of the contents of the specified array. |
String | toString(boolean[] a) Returns a string representation of the contents of the specified array. |
String | toString(float[] a) Returns a string representation of the contents of the specified array. |
String | toString(double[] a) Returns a string representation of the contents of the specified array. |
String | toString(Object[] a) Returns a string representation of the contents of the specified array. |