java.util
Class Arrays
public
class
Arrays
extends Object
Method Summary |
static <T> List<T> | asList(T[] a) |
static int | binarySearch(long[] a, long key) |
static int | binarySearch(int[] a, int key) |
static int | binarySearch(short[] a, short key) |
static int | binarySearch(char[] a, char key) |
static int | binarySearch(byte[] a, byte key) |
static int | binarySearch(double[] a, double key) |
static int | binarySearch(float[] a, float key) |
static <T> int | binarySearch(T[] a, Object key) |
static <T> int | binarySearch(T[] a, T key, Comparator<T> c) |
static boolean | equals(long[] a, long[] a2) |
static boolean | equals(int[] a, int[] a2) |
static boolean | equals(short[] a, short[] a2) |
static boolean | equals(char[] a, char[] a2) |
static boolean | equals(byte[] a, byte[] a2) |
static boolean | equals(boolean[] a, boolean[] a2) |
static boolean | equals(double[] a, double[] a2) |
static boolean | equals(float[] a, float[] a2) |
static boolean | equals(Object[] a, Object[] a2) |
static void | fill(long[] a, long val) |
static void | fill(long[] a, int fromIndex, int toIndex, long val) |
static void | fill(int[] a, int val) |
static void | fill(int[] a, int fromIndex, int toIndex, int val) |
static void | fill(short[] a, short val) |
static void | fill(short[] a, int fromIndex, int toIndex, short val) |
static void | fill(char[] a, char val) |
static void | fill(char[] a, int fromIndex, int toIndex, char val) |
static void | fill(byte[] a, byte val) |
static void | fill(byte[] a, int fromIndex, int toIndex, byte val) |
static void | fill(boolean[] a, boolean val) |
static void | fill(boolean[] a, int fromIndex, int toIndex, boolean 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 <T> void | fill(T[] a, T val) |
static <T> void | fill(T[] a, int fromIndex, int toIndex, T val) |
static void | sort(long[] a) |
static void | sort(long[] a, int fromIndex, int toIndex) |
static void | sort(int[] a) |
static void | sort(int[] a, int fromIndex, int toIndex) |
static void | sort(short[] a) |
static void | sort(short[] a, int fromIndex, int toIndex) |
static void | sort(char[] a) |
static void | sort(char[] a, int fromIndex, int toIndex) |
static void | sort(byte[] a) |
static void | sort(byte[] 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 <T> void | sort(T[] a) |
static <T> void | sort(T[] a, int fromIndex, int toIndex) |
static <T> void | sort(T[] a, Comparator<T> c) |
static <T> void | sort(T[] a, int fromIndex, int toIndex, Comparator<T> c) |
public static <
T>
List<
T> asList(
T[] a)
public static int binarySearch(long[] a, long key)
public static int binarySearch(int[] a, int key)
public static int binarySearch(short[] a, short key)
public static int binarySearch(char[] a, char key)
public static int binarySearch(byte[] a, byte key)
public static int binarySearch(double[] a, double key)
public static int binarySearch(float[] a, float key)
public static <
T> int binarySearch(
T[] a, Object key)
public static boolean equals(long[] a, long[] a2)
public static boolean equals(int[] a, int[] a2)
public static boolean equals(short[] a, short[] a2)
public static boolean equals(char[] a, char[] a2)
public static boolean equals(byte[] a, byte[] a2)
public static boolean equals(boolean[] a, boolean[] a2)
public static boolean equals(double[] a, double[] a2)
public static boolean equals(float[] a, float[] a2)
public static boolean equals(Object[] a, Object[] a2)
public static void fill(long[] a, long val)
public static void fill(long[] a, int fromIndex, int toIndex, long val)
public static void fill(int[] a, int val)
public static void fill(int[] a, int fromIndex, int toIndex, int val)
public static void fill(short[] a, short val)
public static void fill(short[] a, int fromIndex, int toIndex, short val)
public static void fill(char[] a, char val)
public static void fill(char[] a, int fromIndex, int toIndex, char val)
public static void fill(byte[] a, byte val)
public static void fill(byte[] a, int fromIndex, int toIndex, byte val)
public static void fill(boolean[] a, boolean val)
public static void fill(boolean[] a, int fromIndex, int toIndex, boolean val)
public static void fill(double[] a, double val)
public static void fill(double[] a, int fromIndex, int toIndex, double val)
public static void fill(float[] a, float val)
public static void fill(float[] a, int fromIndex, int toIndex, float val)
public static <
T> void fill(
T[] a,
T val)
public static <
T> void fill(
T[] a, int fromIndex, int toIndex,
T val)
public static void sort(long[] a)
public static void sort(long[] a, int fromIndex, int toIndex)
public static void sort(int[] a)
public static void sort(int[] a, int fromIndex, int toIndex)
public static void sort(short[] a)
public static void sort(short[] a, int fromIndex, int toIndex)
public static void sort(char[] a)
public static void sort(char[] a, int fromIndex, int toIndex)
public static void sort(byte[] a)
public static void sort(byte[] a, int fromIndex, int toIndex)
public static void sort(double[] a)
public static void sort(double[] a, int fromIndex, int toIndex)
public static void sort(float[] a)
public static void sort(float[] a, int fromIndex, int toIndex)
public static <
T> void sort(
T[] a)
public static <
T> void sort(
T[] a, int fromIndex, int toIndex)
public static <
T> void sort(
T[] a, int fromIndex, int toIndex,
Comparator<
T> c)