Method
|
Description
|
static <T> List<T> asList(T... a)
|
Returns
a fixed-size list backed by the specified array.
|
static int binarySearch(byte[]
a, byte key) : Overloaded
|
Searches
the specified array of bytes for the specified value using the binary search
algorithm.
|
static <T> 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.
|
static <T> int binarySearch(T[]
a, T key, Comparator<? super T> c)
|
Searches
the specified array for the specified object using the binary search
algorithm.
|
static boolean[] copyOf(boolean[]
original, int newLength) : Overloaded
|
Copies
the specified array, truncating or padding with false (if necessary) so the
copy has the specified length.
|
static <T> T[] copyOf(T[]
original, int newLength)
|
Copies
the specified array, truncating or padding with nulls (if necessary) so the
copy has the specified length.
|
static <T,U> 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.
|
static boolean[] copyOfRange(boolean[]
original, int from, int to) : Overloaded
|
Copies
the specified range of the specified array into a new array.
|
static <T> T[] copyOfRange(T[]
original, int from, int to)
|
Copies
the specified range of the specified array into a new array.
|
static <T,U> T[] copyOfRange(U[]
original, int from, int to, Class<? extends T[]> newType)
|
Copies
the specified range of the specified array into a new array.
|
static boolean deepEquals(Object[]
a1, Object[] a2)
|
Returns
true if the two specified arrays are deeply equal to one another.
|
static int deepHashCode(Object[]
a)
|
Returns
a hash code based on the "deep contents" of the specified array.
|
static String deepToString(Object[]
a)
|
Returns
a string representation of the "deep contents" of the specified
array.
|
static boolean equals(boolean[]
a, boolean[] a2) : Overloaded
|
Returns
true if the two specified arrays of booleans are equal to one another.
|
static boolean equals(Object[]
a, Object[] a2)
|
Returns
true if the two specified arrays of Objects are equal to one another.
|
static void fill(boolean[]
a, boolean val) : Overloaded
|
Assigns
the specified boolean value to each element of the specified array of
booleans.
|
static 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.
|
static int hashCode(boolean[]
a) : Overloaded
|
Returns
a hash code based on the contents of the specified array.
|
static int hashCode(Object[]
a)
|
Returns
a hash code based on the contents of the specified array.
|
static void sort(byte[]
a) : Overloaded
|
Sorts
the specified array of bytes into ascending numerical order.
|
static void sort(byte[]
a, int fromIndex, int toIndex) : Overloaded
|
Sorts
the specified range of the specified array of bytes into ascending numerical
order.
|
static <T> void sort(T[]
a, Comparator<? super T> c)
|
Sorts
the specified array of objects according to the order induced by the
specified comparator.
|
static <T> 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.
|
static String toString(boolean[]
a) : Overloaded
|
Returns
a string representation of the contents of the specified array of boolean.
|
Monday 13 July 2015
java.util.Arrays Methods
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment