public class ArrayUtil
extends Object
Constructor and Description |
---|
ArrayUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean[] |
append(boolean[]... arrays) |
static boolean[] |
append(boolean[] array,
boolean value) |
static byte[] |
append(byte[]... arrays) |
static byte[] |
append(byte[] array,
byte value) |
static char[] |
append(char[]... arrays) |
static char[] |
append(char[] array,
char value) |
static double[] |
append(double[]... arrays) |
static double[] |
append(double[] array,
double value) |
static float[] |
append(float[]... arrays) |
static float[] |
append(float[] array,
float value) |
static int[] |
append(int[]... arrays) |
static int[] |
append(int[] array,
int value) |
static long[] |
append(long[]... arrays) |
static long[] |
append(long[] array,
long value) |
static short[] |
append(short[]... arrays) |
static short[] |
append(short[] array,
short value) |
static <T> T[] |
append(T[]... arrays) |
static <T> T[][] |
append(T[][] array1,
T[] value) |
static <T> T[][] |
append(T[][] array1,
T[][] array2) |
static <T> T[] |
append(T[] array,
T value) |
static <T> T[] |
append(T[] array1,
T[] array2) |
static boolean[] |
clone(boolean[] array) |
static boolean[] |
clone(boolean[] array,
int from,
int to) |
static byte[] |
clone(byte[] array) |
static byte[] |
clone(byte[] array,
int from,
int to) |
static char[] |
clone(char[] array) |
static char[] |
clone(char[] array,
int from,
int to) |
static double[] |
clone(double[] array) |
static double[] |
clone(double[] array,
int from,
int to) |
static float[] |
clone(float[] array) |
static float[] |
clone(float[] array,
int from,
int to) |
static int[] |
clone(int[] array) |
static int[] |
clone(int[] array,
int from,
int to) |
static long[] |
clone(long[] array) |
static long[] |
clone(long[] array,
int from,
int to) |
static short[] |
clone(short[] array) |
static short[] |
clone(short[] array,
int from,
int to) |
static <T> T[] |
clone(T[] array) |
static <T> T[][] |
clone(T[][] array) |
static <T> T[][] |
clone(T[][] array,
int from,
int to) |
static <T> T[] |
clone(T[] array,
int from,
int to) |
static void |
combine(Object[] array1,
Object[] array2,
Object[] combinedArray) |
static boolean |
contains(boolean[] array,
boolean value) |
static boolean |
contains(byte[] array,
byte value) |
static boolean |
contains(char[] array,
char value) |
static boolean |
contains(double[] array,
double value) |
static boolean |
contains(float[] array,
float value) |
static boolean |
contains(int[] array,
int value) |
static boolean |
contains(long[] array,
long value) |
static boolean |
contains(Object[] array,
Object value) |
static boolean |
contains(short[] array,
short value) |
static boolean |
contains(String[] array,
String value,
boolean ignoreCase) |
static boolean |
containsAll(boolean[] array1,
boolean[] array2) |
static boolean |
containsAll(byte[] array1,
byte[] array2) |
static boolean |
containsAll(char[] array1,
char[] array2) |
static boolean |
containsAll(double[] array1,
double[] array2) |
static boolean |
containsAll(float[] array1,
float[] array2) |
static boolean |
containsAll(int[] array1,
int[] array2) |
static boolean |
containsAll(long[] array1,
long[] array2) |
static boolean |
containsAll(Object[] array1,
Object[] array2) |
static boolean |
containsAll(short[] array1,
short[] array2) |
static <T> int |
count(T[] array,
Predicate<T> predicate) |
static String[] |
distinct(String[] array) |
static String[] |
distinct(String[] array,
Comparator<String> comparator) |
static <T> boolean |
exists(T[] array,
Predicate<T> predicate) |
static boolean[] |
filter(boolean[] array,
Predicate<Boolean> predicate) |
static byte[] |
filter(byte[] array,
Predicate<Byte> predicate) |
static char[] |
filter(char[] array,
Predicate<Character> predicate) |
static double[] |
filter(double[] array,
Predicate<Double> predicate) |
static float[] |
filter(float[] array,
Predicate<Float> predicate) |
static int[] |
filter(int[] array,
Predicate<Integer> predicate) |
static long[] |
filter(long[] array,
Predicate<Long> predicate) |
static short[] |
filter(short[] array,
Predicate<Short> predicate) |
static <T> T[] |
filter(T[] array,
Predicate<T> filterPredicate) |
static int |
getLength(Object[] array) |
static Object |
getValue(Object[] array,
int pos) |
static boolean |
isEmpty(boolean[] array) |
static boolean |
isEmpty(byte[] array) |
static boolean |
isEmpty(char[] array) |
static boolean |
isEmpty(double[] array) |
static boolean |
isEmpty(float[] array) |
static boolean |
isEmpty(int[] array) |
static boolean |
isEmpty(long[] array) |
static boolean |
isEmpty(Object[] array) |
static boolean |
isEmpty(short[] array) |
static boolean |
isNotEmpty(boolean[] array) |
static boolean |
isNotEmpty(byte[] array) |
static boolean |
isNotEmpty(char[] array) |
static boolean |
isNotEmpty(double[] array) |
static boolean |
isNotEmpty(float[] array) |
static boolean |
isNotEmpty(int[] array) |
static boolean |
isNotEmpty(long[] array) |
static boolean |
isNotEmpty(Object[] array) |
static boolean |
isNotEmpty(short[] array) |
static boolean[] |
remove(boolean[] array,
boolean value) |
static byte[] |
remove(byte[] array,
byte value) |
static char[] |
remove(char[] array,
char value) |
static double[] |
remove(double[] array,
double value) |
static float[] |
remove(float[] array,
float value) |
static int[] |
remove(int[] array,
int value) |
static long[] |
remove(long[] array,
long value) |
static short[] |
remove(short[] array,
short value) |
static String[] |
remove(String[] array,
String value) |
static <T> T[] |
remove(T[] array,
T value) |
static String[] |
removeByPrefix(String[] array,
String prefix) |
static void |
replace(String[] values,
String oldValue,
String newValue) |
static void |
reverse(boolean[] array) |
static void |
reverse(char[] array) |
static void |
reverse(double[] array) |
static void |
reverse(int[] array) |
static void |
reverse(long[] array) |
static void |
reverse(short[] array) |
static <T> void |
reverse(T[] array) |
static byte[] |
sortedUnique(byte[] array) |
static double[] |
sortedUnique(double[] array) |
static float[] |
sortedUnique(float[] array) |
static int[] |
sortedUnique(int[] array) |
static long[] |
sortedUnique(long[] array) |
static short[] |
sortedUnique(short[] array) |
static String[] |
sortedUnique(String[] array) |
static Object |
split(Object array,
int splitSize) |
static boolean[] |
subset(boolean[] array,
int start,
int end) |
static byte[] |
subset(byte[] array,
int start,
int end) |
static char[] |
subset(char[] array,
int start,
int end) |
static double[] |
subset(double[] array,
int start,
int end) |
static float[] |
subset(float[] array,
int start,
int end) |
static int[] |
subset(int[] array,
int start,
int end) |
static long[] |
subset(long[] array,
int start,
int end) |
static short[] |
subset(short[] array,
int start,
int end) |
static <T> T[] |
subset(T[] array,
int start,
int end) |
static Boolean[] |
toArray(boolean[] array) |
static boolean[] |
toArray(Boolean[] array) |
static Byte[] |
toArray(byte[] array) |
static byte[] |
toArray(Byte[] array) |
static Character[] |
toArray(char[] array) |
static char[] |
toArray(Character[] array) |
static Double[] |
toArray(double[] array) |
static double[] |
toArray(Double[] array) |
static Float[] |
toArray(float[] array) |
static float[] |
toArray(Float[] array) |
static Integer[] |
toArray(int[] array) |
static int[] |
toArray(Integer[] array) |
static Long[] |
toArray(long[] array) |
static long[] |
toArray(Long[] array) |
static Short[] |
toArray(short[] array) |
static short[] |
toArray(Short[] array) |
static String[] |
toArray(String[] array)
Deprecated.
As of Mueller (7.2.x), with no direct replacement
|
static <T,A> A[] |
toArray(T[] list,
Accessor<T,A> accessor) |
static double[] |
toDoubleArray(Collection<? extends Number> collection) |
static float[] |
toFloatArray(Collection<? extends Number> collection) |
static int[] |
toIntArray(Collection<? extends Number> collection) |
static long[] |
toLongArray(Collection<? extends Number> collection) |
static Long[] |
toLongArray(int[] array) |
static Long[] |
toLongArray(long[] array) |
static Long[] |
toLongArray(Object[] array) |
static short[] |
toShortArray(Collection<Short> collection) |
static String |
toString(Object[] array,
String param) |
static String |
toString(Object[] array,
String param,
String delimiter) |
static String |
toString(Object[] array,
String param,
String delimiter,
Locale locale) |
static <T,A> String |
toString(T[] list,
Accessor<T,A> accessor) |
static <T,A> String |
toString(T[] list,
Accessor<T,A> accessor,
String delimiter) |
static <T,A> String |
toString(T[] list,
Accessor<T,A> accessor,
String delimiter,
Locale locale) |
static String[] |
toStringArray(boolean[] array) |
static String[] |
toStringArray(byte[] array) |
static String[] |
toStringArray(char[] array) |
static String[] |
toStringArray(Collection<String> collection) |
static String[] |
toStringArray(Date[] array,
DateFormat dateFormat) |
static String[] |
toStringArray(double[] array) |
static String[] |
toStringArray(float[] array) |
static String[] |
toStringArray(int[] array) |
static String[] |
toStringArray(JSONArray array) |
static String[] |
toStringArray(long[] array) |
static String[] |
toStringArray(Object[] array) |
static String[] |
toStringArray(short[] array) |
static byte[] |
unique(byte[] array) |
static double[] |
unique(double[] array) |
static float[] |
unique(float[] array) |
static int[] |
unique(int[] array) |
static long[] |
unique(long[] array) |
static short[] |
unique(short[] array) |
static String[] |
unique(String[] array) |
public static boolean[] append(boolean[]... arrays)
public static boolean[] append(boolean[] array, boolean value)
public static byte[] append(byte[]... arrays)
public static byte[] append(byte[] array, byte value)
public static char[] append(char[]... arrays)
public static char[] append(char[] array, char value)
public static double[] append(double[]... arrays)
public static double[] append(double[] array, double value)
public static float[] append(float[]... arrays)
public static float[] append(float[] array, float value)
public static int[] append(int[]... arrays)
public static int[] append(int[] array, int value)
public static long[] append(long[]... arrays)
public static long[] append(long[] array, long value)
public static short[] append(short[]... arrays)
public static short[] append(short[] array, short value)
public static <T> T[] append(T[]... arrays)
public static <T> T[] append(T[] array, T value)
public static <T> T[] append(T[] array1, T[] array2)
public static <T> T[][] append(T[][] array1, T[] value)
public static <T> T[][] append(T[][] array1, T[][] array2)
public static boolean[] clone(boolean[] array)
public static boolean[] clone(boolean[] array, int from, int to)
public static byte[] clone(byte[] array)
public static byte[] clone(byte[] array, int from, int to)
public static char[] clone(char[] array)
public static char[] clone(char[] array, int from, int to)
public static double[] clone(double[] array)
public static double[] clone(double[] array, int from, int to)
public static float[] clone(float[] array)
public static float[] clone(float[] array, int from, int to)
public static int[] clone(int[] array)
public static int[] clone(int[] array, int from, int to)
public static long[] clone(long[] array)
public static long[] clone(long[] array, int from, int to)
public static short[] clone(short[] array)
public static short[] clone(short[] array, int from, int to)
public static <T> T[] clone(T[] array)
public static <T> T[] clone(T[] array, int from, int to)
public static <T> T[][] clone(T[][] array)
public static <T> T[][] clone(T[][] array, int from, int to)
public static void combine(Object[] array1, Object[] array2, Object[] combinedArray)
public static boolean contains(boolean[] array, boolean value)
public static boolean contains(byte[] array, byte value)
public static boolean contains(char[] array, char value)
public static boolean contains(double[] array, double value)
public static boolean contains(float[] array, float value)
public static boolean contains(int[] array, int value)
public static boolean contains(long[] array, long value)
public static boolean contains(Object[] array, Object value)
public static boolean contains(short[] array, short value)
public static boolean contains(String[] array, String value, boolean ignoreCase)
public static boolean containsAll(boolean[] array1, boolean[] array2)
public static boolean containsAll(byte[] array1, byte[] array2)
public static boolean containsAll(char[] array1, char[] array2)
public static boolean containsAll(double[] array1, double[] array2)
public static boolean containsAll(float[] array1, float[] array2)
public static boolean containsAll(int[] array1, int[] array2)
public static boolean containsAll(long[] array1, long[] array2)
public static boolean containsAll(Object[] array1, Object[] array2)
public static boolean containsAll(short[] array1, short[] array2)
public static <T> int count(T[] array, Predicate<T> predicate)
public static String[] distinct(String[] array)
public static String[] distinct(String[] array, Comparator<String> comparator)
public static <T> boolean exists(T[] array, Predicate<T> predicate)
public static boolean[] filter(boolean[] array, Predicate<Boolean> predicate)
public static byte[] filter(byte[] array, Predicate<Byte> predicate)
public static char[] filter(char[] array, Predicate<Character> predicate)
public static double[] filter(double[] array, Predicate<Double> predicate)
public static float[] filter(float[] array, Predicate<Float> predicate)
public static int[] filter(int[] array, Predicate<Integer> predicate)
public static long[] filter(long[] array, Predicate<Long> predicate)
public static short[] filter(short[] array, Predicate<Short> predicate)
public static <T> T[] filter(T[] array, Predicate<T> filterPredicate)
public static int getLength(Object[] array)
public static Object getValue(Object[] array, int pos)
public static boolean isEmpty(boolean[] array)
public static boolean isEmpty(byte[] array)
public static boolean isEmpty(char[] array)
public static boolean isEmpty(double[] array)
public static boolean isEmpty(float[] array)
public static boolean isEmpty(int[] array)
public static boolean isEmpty(long[] array)
public static boolean isEmpty(Object[] array)
public static boolean isEmpty(short[] array)
public static boolean isNotEmpty(boolean[] array)
public static boolean isNotEmpty(byte[] array)
public static boolean isNotEmpty(char[] array)
public static boolean isNotEmpty(double[] array)
public static boolean isNotEmpty(float[] array)
public static boolean isNotEmpty(int[] array)
public static boolean isNotEmpty(long[] array)
public static boolean isNotEmpty(Object[] array)
public static boolean isNotEmpty(short[] array)
public static boolean[] remove(boolean[] array, boolean value)
public static byte[] remove(byte[] array, byte value)
public static char[] remove(char[] array, char value)
public static double[] remove(double[] array, double value)
public static float[] remove(float[] array, float value)
public static int[] remove(int[] array, int value)
public static long[] remove(long[] array, long value)
public static short[] remove(short[] array, short value)
public static String[] remove(String[] array, String value)
public static <T> T[] remove(T[] array, T value)
public static String[] removeByPrefix(String[] array, String prefix)
public static void replace(String[] values, String oldValue, String newValue)
public static void reverse(boolean[] array)
public static void reverse(char[] array)
public static void reverse(double[] array)
public static void reverse(int[] array)
public static void reverse(long[] array)
public static void reverse(short[] array)
public static <T> void reverse(T[] array)
public static byte[] sortedUnique(byte[] array)
public static double[] sortedUnique(double[] array)
public static float[] sortedUnique(float[] array)
public static int[] sortedUnique(int[] array)
public static long[] sortedUnique(long[] array)
public static short[] sortedUnique(short[] array)
public static String[] sortedUnique(String[] array)
public static Object split(Object array, int splitSize)
public static boolean[] subset(boolean[] array, int start, int end)
public static byte[] subset(byte[] array, int start, int end)
public static char[] subset(char[] array, int start, int end)
public static double[] subset(double[] array, int start, int end)
public static float[] subset(float[] array, int start, int end)
public static int[] subset(int[] array, int start, int end)
public static long[] subset(long[] array, int start, int end)
public static short[] subset(short[] array, int start, int end)
public static <T> T[] subset(T[] array, int start, int end)
public static Boolean[] toArray(boolean[] array)
public static boolean[] toArray(Boolean[] array)
public static Byte[] toArray(byte[] array)
public static byte[] toArray(Byte[] array)
public static Character[] toArray(char[] array)
public static char[] toArray(Character[] array)
public static Double[] toArray(double[] array)
public static double[] toArray(Double[] array)
public static Float[] toArray(float[] array)
public static float[] toArray(Float[] array)
public static Integer[] toArray(int[] array)
public static int[] toArray(Integer[] array)
public static Long[] toArray(long[] array)
public static long[] toArray(Long[] array)
public static Short[] toArray(short[] array)
public static short[] toArray(Short[] array)
@Deprecated public static String[] toArray(String[] array)
public static <T,A> A[] toArray(T[] list, Accessor<T,A> accessor)
public static double[] toDoubleArray(Collection<? extends Number> collection)
public static float[] toFloatArray(Collection<? extends Number> collection)
public static int[] toIntArray(Collection<? extends Number> collection)
public static long[] toLongArray(Collection<? extends Number> collection)
public static Long[] toLongArray(int[] array)
public static Long[] toLongArray(long[] array)
public static Long[] toLongArray(Object[] array)
public static short[] toShortArray(Collection<Short> collection)
public static String toString(Object[] array, String param)
ListUtil.toString(List, String)
public static String toString(Object[] array, String param, String delimiter)
ListUtil.toString(List, String, String)
public static String toString(Object[] array, String param, String delimiter, Locale locale)
public static <T,A> String toString(T[] list, Accessor<T,A> accessor)
ListUtil.toString(List, Accessor)
public static <T,A> String toString(T[] list, Accessor<T,A> accessor, String delimiter)
public static <T,A> String toString(T[] list, Accessor<T,A> accessor, String delimiter, Locale locale)
public static String[] toStringArray(boolean[] array)
public static String[] toStringArray(byte[] array)
public static String[] toStringArray(char[] array)
public static String[] toStringArray(Collection<String> collection)
public static String[] toStringArray(Date[] array, DateFormat dateFormat)
public static String[] toStringArray(double[] array)
public static String[] toStringArray(float[] array)
public static String[] toStringArray(int[] array)
public static String[] toStringArray(JSONArray array)
public static String[] toStringArray(long[] array)
public static String[] toStringArray(Object[] array)
public static String[] toStringArray(short[] array)
public static byte[] unique(byte[] array)
public static double[] unique(double[] array)
public static float[] unique(float[] array)
public static int[] unique(int[] array)
public static long[] unique(long[] array)
public static short[] unique(short[] array)
public static String[] unique(String[] array)