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