java.util
Class Arrays
java.lang.Object
java.util.Arrays
public class Arrays
- extends Object
|
Method Summary |
static
|
asList(T... a)
|
static int |
binarySearch(byte[] a,
byte key)
|
static int |
binarySearch(char[] a,
char key)
|
static int |
binarySearch(double[] a,
double key)
|
static int |
binarySearch(float[] a,
float key)
|
static int |
binarySearch(int[] a,
int key)
|
static int |
binarySearch(long[] a,
long key)
|
static int |
binarySearch(Object[] a,
Object key)
|
static int |
binarySearch(short[] a,
short key)
|
static
|
binarySearch(T[] a,
T key,
Comparator<? super T> c)
|
static boolean |
deepEquals(Object[] array1,
Object[] array2)
|
static int |
deepHashCode(Object[] array)
|
static String |
deepToString(Object[] array)
|
static boolean |
equals(boolean[] a,
boolean[] a2)
|
static boolean |
equals(byte[] a,
byte[] a2)
|
static boolean |
equals(char[] a,
char[] a2)
|
static boolean |
equals(double[] a,
double[] a2)
|
static boolean |
equals(float[] a,
float[] a2)
|
static boolean |
equals(int[] a,
int[] a2)
|
static boolean |
equals(long[] a,
long[] a2)
|
static boolean |
equals(Object[] a,
Object[] a2)
|
static boolean |
equals(short[] a,
short[] a2)
|
static void |
fill(boolean[] a,
boolean val)
|
static void |
fill(boolean[] a,
int fromIndex,
int toIndex,
boolean val)
|
static void |
fill(byte[] a,
byte val)
|
static void |
fill(byte[] a,
int fromIndex,
int toIndex,
byte val)
|
static void |
fill(char[] a,
char val)
|
static void |
fill(char[] a,
int fromIndex,
int toIndex,
char val)
|
static void |
fill(double[] a,
double val)
|
static void |
fill(double[] a,
int fromIndex,
int toIndex,
double val)
|
static void |
fill(float[] a,
float val)
|
static void |
fill(float[] a,
int fromIndex,
int toIndex,
float val)
|
static void |
fill(int[] a,
int val)
|
static void |
fill(int[] a,
int fromIndex,
int toIndex,
int val)
|
static void |
fill(long[] a,
int fromIndex,
int toIndex,
long val)
|
static void |
fill(long[] a,
long val)
|
static void |
fill(Object[] a,
int fromIndex,
int toIndex,
Object val)
|
static void |
fill(Object[] a,
Object val)
|
static void |
fill(short[] a,
int fromIndex,
int toIndex,
short val)
|
static void |
fill(short[] a,
short val)
|
static int |
hashCode(boolean[] array)
|
static int |
hashCode(byte[] array)
|
static int |
hashCode(char[] array)
|
static int |
hashCode(double[] array)
|
static int |
hashCode(float[] array)
|
static int |
hashCode(int[] array)
|
static int |
hashCode(long[] array)
|
static int |
hashCode(Object[] array)
|
static int |
hashCode(short[] array)
|
static void |
sort(byte[] a)
|
static void |
sort(byte[] a,
int fromIndex,
int toIndex)
|
static void |
sort(char[] a)
|
static void |
sort(char[] a,
int fromIndex,
int toIndex)
|
static void |
sort(double[] a)
|
static void |
sort(double[] a,
int fromIndex,
int toIndex)
|
static void |
sort(float[] a)
|
static void |
sort(float[] a,
int fromIndex,
int toIndex)
|
static void |
sort(int[] a)
|
static void |
sort(int[] a,
int fromIndex,
int toIndex)
|
static void |
sort(long[] a)
|
static void |
sort(long[] a,
int fromIndex,
int toIndex)
|
static void |
sort(Object[] a)
|
static void |
sort(Object[] a,
int fromIndex,
int toIndex)
|
static void |
sort(short[] a)
|
static void |
sort(short[] a,
int fromIndex,
int toIndex)
|
static
|
sort(T[] a,
Comparator<? super T> c)
|
static
|
sort(T[] a,
int fromIndex,
int toIndex,
Comparator<? super T> c)
|
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(Object[] array)
|
static String |
toString(short[] array)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
asList
public static <T> List<T> asList(T... a)
binarySearch
public static int binarySearch(byte[] a,
byte key)
binarySearch
public static int binarySearch(char[] a,
char key)
binarySearch
public static int binarySearch(double[] a,
double key)
binarySearch
public static int binarySearch(float[] a,
float key)
binarySearch
public static int binarySearch(int[] a,
int key)
binarySearch
public static int binarySearch(long[] a,
long key)
binarySearch
public static int binarySearch(Object[] a,
Object key)
binarySearch
public static <T> int binarySearch(T[] a,
T key,
Comparator<? super T> c)
binarySearch
public static int binarySearch(short[] a,
short key)
equals
public static boolean equals(boolean[] a,
boolean[] a2)
equals
public static boolean equals(byte[] a,
byte[] a2)
equals
public static boolean equals(char[] a,
char[] a2)
equals
public static boolean equals(double[] a,
double[] a2)
equals
public static boolean equals(float[] a,
float[] a2)
equals
public static boolean equals(int[] a,
int[] a2)
equals
public static boolean equals(long[] a,
long[] a2)
equals
public static boolean equals(Object[] a,
Object[] a2)
equals
public static boolean equals(short[] a,
short[] a2)
fill
public static void fill(boolean[] a,
boolean val)
fill
public static void fill(boolean[] a,
int fromIndex,
int toIndex,
boolean val)
fill
public static void fill(byte[] a,
byte val)
fill
public static void fill(byte[] a,
int fromIndex,
int toIndex,
byte val)
fill
public static void fill(char[] a,
char val)
fill
public static void fill(char[] a,
int fromIndex,
int toIndex,
char val)
fill
public static void fill(double[] a,
double val)
fill
public static void fill(double[] a,
int fromIndex,
int toIndex,
double val)
fill
public static void fill(float[] a,
float val)
fill
public static void fill(float[] a,
int fromIndex,
int toIndex,
float val)
fill
public static void fill(int[] a,
int val)
fill
public static void fill(int[] a,
int fromIndex,
int toIndex,
int val)
fill
public static void fill(long[] a,
long val)
fill
public static void fill(long[] a,
int fromIndex,
int toIndex,
long val)
fill
public static void fill(Object[] a,
Object val)
fill
public static void fill(Object[] a,
int fromIndex,
int toIndex,
Object val)
fill
public static void fill(short[] a,
short val)
fill
public static void fill(short[] a,
int fromIndex,
int toIndex,
short val)
sort
public static void sort(byte[] a)
sort
public static void sort(byte[] a,
int fromIndex,
int toIndex)
sort
public static void sort(char[] a)
sort
public static void sort(char[] a,
int fromIndex,
int toIndex)
sort
public static void sort(double[] a)
sort
public static void sort(double[] a,
int fromIndex,
int toIndex)
sort
public static void sort(float[] a)
sort
public static void sort(float[] a,
int fromIndex,
int toIndex)
sort
public static void sort(int[] a)
sort
public static void sort(int[] a,
int fromIndex,
int toIndex)
sort
public static void sort(long[] a)
sort
public static void sort(long[] a,
int fromIndex,
int toIndex)
sort
public static void sort(Object[] a)
sort
public static void sort(Object[] a,
int fromIndex,
int toIndex)
sort
public static <T> void sort(T[] a,
Comparator<? super T> c)
sort
public static <T> void sort(T[] a,
int fromIndex,
int toIndex,
Comparator<? super T> c)
sort
public static void sort(short[] a)
sort
public static void sort(short[] a,
int fromIndex,
int toIndex)
hashCode
public static int hashCode(boolean[] array)
hashCode
public static int hashCode(byte[] array)
hashCode
public static int hashCode(char[] array)
hashCode
public static int hashCode(double[] array)
hashCode
public static int hashCode(float[] array)
hashCode
public static int hashCode(int[] array)
hashCode
public static int hashCode(long[] array)
hashCode
public static int hashCode(Object[] array)
hashCode
public static int hashCode(short[] array)
toString
public static String toString(boolean[] array)
toString
public static String toString(byte[] array)
toString
public static String toString(char[] array)
toString
public static String toString(double[] array)
toString
public static String toString(float[] array)
toString
public static String toString(int[] array)
toString
public static String toString(long[] array)
toString
public static String toString(Object[] array)
toString
public static String toString(short[] array)
deepEquals
public static boolean deepEquals(Object[] array1,
Object[] array2)
deepHashCode
public static int deepHashCode(Object[] array)
deepToString
public static String deepToString(Object[] array)