public final class ArrayIterate extends Object
Modifier and Type | Method and Description |
---|---|
static <T,R extends Collection<T>> |
addAllTo(T[] objectArray,
R targetCollection) |
static <T> boolean |
allSatisfy(T[] objectArray,
Predicate<? super T> predicate) |
static <T,P> boolean |
allSatisfyWith(T[] objectArray,
Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> boolean |
anySatisfy(T[] objectArray,
Predicate<? super T> predicate) |
static <T,P> boolean |
anySatisfyWith(T[] objectArray,
Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> void |
appendString(T[] array,
Appendable appendable) |
static <T> void |
appendString(T[] array,
Appendable appendable,
String separator) |
static <T> void |
appendString(T[] array,
Appendable appendable,
String start,
String separator,
String end) |
static <T> RichIterable<RichIterable<T>> |
chunk(T[] array,
int size) |
static <T,V> MutableList<V> |
collect(T[] objectArray,
Function<? super T,? extends V> function) |
static <T,V,R extends Collection<V>> |
collect(T[] objectArray,
Function<? super T,? extends V> function,
R targetCollection) |
static <T> MutableBooleanList |
collectBoolean(T[] objectArray,
BooleanFunction<? super T> booleanFunction) |
static <T,R extends MutableBooleanCollection> |
collectBoolean(T[] objectArray,
BooleanFunction<? super T> booleanFunction,
R target) |
static <T> MutableByteList |
collectByte(T[] objectArray,
ByteFunction<? super T> byteFunction) |
static <T,R extends MutableByteCollection> |
collectByte(T[] objectArray,
ByteFunction<? super T> byteFunction,
R target) |
static <T> MutableCharList |
collectChar(T[] objectArray,
CharFunction<? super T> charFunction) |
static <T,R extends MutableCharCollection> |
collectChar(T[] objectArray,
CharFunction<? super T> charFunction,
R target) |
static <T> MutableDoubleList |
collectDouble(T[] objectArray,
DoubleFunction<? super T> doubleFunction) |
static <T,R extends MutableDoubleCollection> |
collectDouble(T[] objectArray,
DoubleFunction<? super T> doubleFunction,
R target) |
static <T> MutableFloatList |
collectFloat(T[] objectArray,
FloatFunction<? super T> floatFunction) |
static <T,R extends MutableFloatCollection> |
collectFloat(T[] objectArray,
FloatFunction<? super T> floatFunction,
R target) |
static <T,V> MutableList<V> |
collectIf(T[] objectArray,
Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
static <T,V,R extends Collection<V>> |
collectIf(T[] objectArray,
Predicate<? super T> predicate,
Function<? super T,? extends V> function,
R targetCollection) |
static <T> MutableIntList |
collectInt(T[] objectArray,
IntFunction<? super T> intFunction) |
static <T,R extends MutableIntCollection> |
collectInt(T[] objectArray,
IntFunction<? super T> intFunction,
R target) |
static <T> MutableLongList |
collectLong(T[] objectArray,
LongFunction<? super T> longFunction) |
static <T,R extends MutableLongCollection> |
collectLong(T[] objectArray,
LongFunction<? super T> longFunction,
R target) |
static <T> MutableShortList |
collectShort(T[] objectArray,
ShortFunction<? super T> shortFunction) |
static <T,R extends MutableShortCollection> |
collectShort(T[] objectArray,
ShortFunction<? super T> shortFunction,
R target) |
static <T,P,V> MutableList<V> |
collectWith(T[] objectArray,
Function2<? super T,? super P,? extends V> function,
P parameter) |
static <T,P,V,R extends Collection<V>> |
collectWith(T[] objectArray,
Function2<? super T,? super P,? extends V> function,
P parameter,
R targetCollection) |
static boolean |
contains(double[] doubleArray,
double value)
Returns true if the specified double array contains the specified double element.
|
static boolean |
contains(int[] intArray,
int value)
Returns true if the specified int array contains the specified int element.
|
static boolean |
contains(long[] longArray,
long value)
Returns true if the specified long array contains the specified long element.
|
static <T> boolean |
contains(T[] objectArray,
T value)
Returns true if the specified array contains the specified element.
|
static <T> int |
count(T[] objectArray,
Predicate<? super T> predicate) |
static <T,P> int |
countWith(T[] objectArray,
Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> T |
detect(T[] objectArray,
Predicate<? super T> predicate) |
static <T> T |
detectIfNone(T[] objectArray,
Predicate<? super T> predicate,
T ifNone) |
static <T> int |
detectIndex(T[] objectArray,
Predicate<? super T> predicate)
Returns the first index where the predicate evaluates to true.
|
static <T,IV> int |
detectIndexWith(T[] objectArray,
Predicate2<? super T,IV> predicate,
IV injectedValue)
Searches for the first index where the predicate evaluates to true.
|
static <T> int |
detectLastIndex(T[] objectArray,
Predicate<? super T> predicate)
Returns the last index where the predicate evaluates to true.
|
static <T,P> T |
detectWith(T[] objectArray,
Predicate2<? super T,? super P> predicate,
P parameter) |
static <T,P> T |
detectWithIfNone(T[] objectArray,
Predicate2<? super T,P> predicate,
P parameter,
T ifNone) |
static <T> MutableList<T> |
distinct(T[] objectArray) |
static <T> MutableList<T> |
distinct(T[] objectArray,
HashingStrategy<? super T> hashingStrategy) |
static <T,R extends List<T>> |
distinct(T[] objectArray,
R targetList)
Deprecated.
in 7.0.
|
static <T> MutableList<T> |
drop(T[] array,
int count) |
static <T,R extends Collection<T>> |
drop(T[] array,
int count,
R target) |
static <T,V> MutableList<V> |
flatCollect(T[] objectArray,
Function<? super T,? extends Iterable<V>> function) |
static <T,V,R extends Collection<V>> |
flatCollect(T[] objectArray,
Function<? super T,? extends Iterable<V>> function,
R targetCollection) |
static <T> void |
forEach(T[] objectArray,
int from,
int to,
Procedure<? super T> procedure)
Iterates over the section of the list covered by the specified inclusive indexes.
|
static <T> void |
forEach(T[] objectArray,
Procedure<? super T> procedure) |
static <T1,T2> void |
forEachInBoth(T1[] objectArray1,
T2[] objectArray2,
Procedure2<T1,T2> procedure) |
static <T,P> void |
forEachWith(T[] objectArray,
Procedure2<? super T,? super P> procedure,
P parameter) |
static <T> void |
forEachWithIndex(T[] objectArray,
int from,
int to,
ObjectIntProcedure<? super T> objectIntProcedure)
Iterates over the section of the list covered by the specified inclusive indexes.
|
static <T> void |
forEachWithIndex(T[] objectArray,
ObjectIntProcedure<? super T> objectIntProcedure) |
static <T> T |
getFirst(T[] objectArray)
Returns the first element of an array.
|
static <T> T |
getLast(T[] objectArray)
Returns the last element of an Array.
|
static <T,V> FastListMultimap<V,T> |
groupBy(T[] array,
Function<? super T,? extends V> function) |
static <T,V,R extends MutableMultimap<V,T>> |
groupBy(T[] array,
Function<? super T,? extends V> function,
R target) |
static <T,V> FastListMultimap<V,T> |
groupByEach(T[] array,
Function<? super T,? extends Iterable<V>> function) |
static <T,V,R extends MutableMultimap<V,T>> |
groupByEach(T[] array,
Function<? super T,? extends Iterable<V>> function,
R target) |
static <T,V> MutableMap<V,T> |
groupByUniqueKey(T[] array,
Function<? super T,? extends V> function) |
static <T,V,R extends MutableMap<V,T>> |
groupByUniqueKey(T[] array,
Function<? super T,? extends V> function,
R target) |
static <T> int |
indexOf(T[] objectArray,
T elem)
Searches for the first occurrence of the given argument, testing
for equality using the equals method.
|
static <T> double |
injectInto(double injectValue,
T[] objectArray,
DoubleObjectToDoubleFunction<? super T> function) |
static <T> float |
injectInto(float injectValue,
T[] objectArray,
FloatObjectToFloatFunction<? super T> function) |
static <T> int |
injectInto(int injectValue,
T[] objectArray,
IntObjectToIntFunction<? super T> function) |
static <T,IV> IV |
injectInto(IV injectValue,
T[] objectArray,
Function2<? super IV,? super T,? extends IV> function) |
static <T> long |
injectInto(long injectValue,
T[] objectArray,
LongObjectToLongFunction<? super T> function) |
static <T,IV,P> IV |
injectIntoWith(IV injectValue,
T[] objectArray,
Function3<? super IV,? super T,? super P,? extends IV> function,
P parameter) |
static boolean |
isEmpty(Object[] array)
A null safe form of isEmpty.
|
static <T> String |
makeString(T... array) |
static <T> String |
makeString(T[] array,
String separator) |
static <T> String |
makeString(T[] array,
String start,
String separator,
String end) |
static <T> T |
max(T... array) |
static <T> T |
max(T[] array,
Comparator<? super T> comparator) |
static <T,V extends Comparable<? super V>> |
maxBy(T[] array,
Function<? super T,? extends V> function) |
static <T> T |
min(T... array) |
static <T> T |
min(T[] array,
Comparator<? super T> comparator) |
static <T,V extends Comparable<? super V>> |
minBy(T[] array,
Function<? super T,? extends V> function) |
static <T> boolean |
noneSatisfy(T[] objectArray,
Predicate<? super T> predicate) |
static <T,P> boolean |
noneSatisfyWith(T[] objectArray,
Predicate2<? super T,? super P> predicate,
P parameter) |
static boolean |
notEmpty(Object[] array)
A null safe form of notEmpty.
|
static <T> PartitionFastList<T> |
partition(T[] array,
Predicate<? super T> predicate) |
static <T,P> PartitionFastList<T> |
partitionWith(T[] array,
Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> MutableList<T> |
reject(T[] objectArray,
Predicate<? super T> predicate) |
static <T,R extends Collection<T>> |
reject(T[] objectArray,
Predicate<? super T> predicate,
R targetCollection) |
static <T,P,R extends Collection<T>> |
rejectWith(T[] objectArray,
Predicate2<? super T,? super P> predicate,
P parameter,
R targetCollection) |
static <T,P> MutableList<T> |
rejectWith(T[] objectArray,
Predicate2<? super T,P> predicate,
P parameter) |
static <T> void |
reverse(T[] array,
int size) |
static <T> MutableList<T> |
select(T[] objectArray,
Predicate<? super T> predicate) |
static <T,R extends Collection<T>> |
select(T[] objectArray,
Predicate<? super T> predicate,
R targetCollection) |
static <T,P> Twin<MutableList<T>> |
selectAndRejectWith(T[] objectArray,
Predicate2<? super T,? super P> predicate,
P parameter)
Deprecated.
since 6.0 use
RichIterable.partitionWith(Predicate2, Object) instead. |
static <T> FastList<T> |
selectInstancesOf(Object[] objectArray,
Class<T> clazz) |
static <T,P,R extends Collection<T>> |
selectWith(T[] objectArray,
Predicate2<? super T,? super P> predicate,
P parameter,
R targetCollection) |
static <T,P> MutableList<T> |
selectWith(T[] objectArray,
Predicate2<? super T,P> predicate,
P parameter) |
static int |
size(Object[] array)
Return the size of the array.
|
static <T> void |
sort(T[] array,
int size,
Comparator<? super T> comparator)
Deprecated.
in 7.0. Use
Arrays.sort(Object[], int, int) or Arrays.sort(Object[], int, int, Comparator) instead. |
static <V,T> MutableMap<V,BigDecimal> |
sumByBigDecimal(T[] array,
Function<T,V> groupBy,
Function<? super T,BigDecimal> function) |
static <V,T> MutableMap<V,BigInteger> |
sumByBigInteger(T[] array,
Function<T,V> groupBy,
Function<? super T,BigInteger> function) |
static <V,T> ObjectDoubleMap<V> |
sumByDouble(T[] array,
Function<T,V> groupBy,
DoubleFunction<? super T> function) |
static <V,T> ObjectDoubleMap<V> |
sumByFloat(T[] array,
Function<T,V> groupBy,
FloatFunction<? super T> function) |
static <V,T> ObjectLongMap<V> |
sumByInt(T[] array,
Function<T,V> groupBy,
IntFunction<? super T> function) |
static <V,T> ObjectLongMap<V> |
sumByLong(T[] array,
Function<T,V> groupBy,
LongFunction<? super T> function) |
static <T> BigDecimal |
sumOfBigDecimal(T[] array,
Function<? super T,BigDecimal> function) |
static <T> BigInteger |
sumOfBigInteger(T[] array,
Function<? super T,BigInteger> function) |
static <T> double |
sumOfDouble(T[] array,
DoubleFunction<? super T> function) |
static <T> double |
sumOfFloat(T[] array,
FloatFunction<? super T> function) |
static <T> long |
sumOfInt(T[] array,
IntFunction<? super T> function) |
static <T> long |
sumOfLong(T[] array,
LongFunction<? super T> function) |
static <T> MutableList<T> |
take(T[] array,
int count) |
static <T,R extends Collection<T>> |
take(T[] array,
int count,
R target) |
static <T,K,V> MutableMap<K,V> |
toMap(T[] objectArray,
Function<? super T,? extends K> keyFunction,
Function<? super T,? extends V> valueFunction)
Iterate over the specified array applying the specified Functions to each element to calculate a key
and value, and return the results as a Map.
|
static <K,V> MutableMap<K,V> |
toMap(V[] objectArray,
Function<? super V,? extends K> keyFunction)
Iterate over the specified array applying the specified Function to each element to calculate a key
and return the results as a HashMap.
|
static <X,Y> MutableList<Pair<X,Y>> |
zip(X[] xs,
Y[] ys) |
static <X,Y,R extends Collection<Pair<X,Y>>> |
zip(X[] xs,
Y[] ys,
R targetCollection) |
static <T> MutableList<Pair<T,Integer>> |
zipWithIndex(T... array) |
static <T,R extends Collection<Pair<T,Integer>>> |
zipWithIndex(T[] array,
R targetCollection) |
public static <T> void reverse(T[] array, int size)
@Deprecated public static <T> void sort(T[] array, int size, Comparator<? super T> comparator)
Arrays.sort(Object[], int, int)
or Arrays.sort(Object[], int, int, Comparator)
instead.public static <T,V extends Comparable<? super V>> T minBy(T[] array, Function<? super T,? extends V> function)
public static <T,V extends Comparable<? super V>> T maxBy(T[] array, Function<? super T,? extends V> function)
public static <T> T min(T[] array, Comparator<? super T> comparator)
Iterate.min(Iterable, Comparator)
public static <T> T max(T[] array, Comparator<? super T> comparator)
Iterate.max(Iterable, Comparator)
public static <T> T min(T... array)
Iterate.min(Iterable)
public static <T> T max(T... array)
Iterate.max(Iterable)
public static <T> MutableList<T> select(T[] objectArray, Predicate<? super T> predicate)
Iterate.select(Iterable, Predicate)
public static <T,P> MutableList<T> selectWith(T[] objectArray, Predicate2<? super T,P> predicate, P parameter)
public static <T> FastList<T> selectInstancesOf(Object[] objectArray, Class<T> clazz)
public static <T> int count(T[] objectArray, Predicate<? super T> predicate)
Iterate.count(Iterable, Predicate)
public static <T,P> int countWith(T[] objectArray, Predicate2<? super T,? super P> predicate, P parameter)
@Deprecated public static <T,P> Twin<MutableList<T>> selectAndRejectWith(T[] objectArray, Predicate2<? super T,? super P> predicate, P parameter)
RichIterable.partitionWith(Predicate2, Object)
instead.public static <T> PartitionFastList<T> partition(T[] array, Predicate<? super T> predicate)
Iterate.partition(Iterable, Predicate)
public static <T,P> PartitionFastList<T> partitionWith(T[] array, Predicate2<? super T,? super P> predicate, P parameter)
public static <T,V> MutableList<V> collectIf(T[] objectArray, Predicate<? super T> predicate, Function<? super T,? extends V> function)
public static <T,R extends Collection<T>> R select(T[] objectArray, Predicate<? super T> predicate, R targetCollection)
public static <T,P,R extends Collection<T>> R selectWith(T[] objectArray, Predicate2<? super T,? super P> predicate, P parameter, R targetCollection)
public static <T,V,R extends Collection<V>> R collectIf(T[] objectArray, Predicate<? super T> predicate, Function<? super T,? extends V> function, R targetCollection)
public static <T> MutableList<T> reject(T[] objectArray, Predicate<? super T> predicate)
Iterate.reject(Iterable, Predicate)
public static <T,P> MutableList<T> rejectWith(T[] objectArray, Predicate2<? super T,P> predicate, P parameter)
public static <T,R extends Collection<T>> R reject(T[] objectArray, Predicate<? super T> predicate, R targetCollection)
public static <T,P,R extends Collection<T>> R rejectWith(T[] objectArray, Predicate2<? super T,? super P> predicate, P parameter, R targetCollection)
public static <T,R extends Collection<T>> R addAllTo(T[] objectArray, R targetCollection)
Iterate.addAllTo(Iterable, Collection)
public static <T,V> MutableList<V> collect(T[] objectArray, Function<? super T,? extends V> function)
Iterate.collect(Iterable, Function)
public static <T,V,R extends Collection<V>> R collect(T[] objectArray, Function<? super T,? extends V> function, R targetCollection)
public static <T> MutableBooleanList collectBoolean(T[] objectArray, BooleanFunction<? super T> booleanFunction)
public static <T,R extends MutableBooleanCollection> R collectBoolean(T[] objectArray, BooleanFunction<? super T> booleanFunction, R target)
public static <T> MutableByteList collectByte(T[] objectArray, ByteFunction<? super T> byteFunction)
public static <T,R extends MutableByteCollection> R collectByte(T[] objectArray, ByteFunction<? super T> byteFunction, R target)
public static <T> MutableCharList collectChar(T[] objectArray, CharFunction<? super T> charFunction)
public static <T,R extends MutableCharCollection> R collectChar(T[] objectArray, CharFunction<? super T> charFunction, R target)
public static <T> MutableDoubleList collectDouble(T[] objectArray, DoubleFunction<? super T> doubleFunction)
public static <T,R extends MutableDoubleCollection> R collectDouble(T[] objectArray, DoubleFunction<? super T> doubleFunction, R target)
public static <T> MutableFloatList collectFloat(T[] objectArray, FloatFunction<? super T> floatFunction)
public static <T,R extends MutableFloatCollection> R collectFloat(T[] objectArray, FloatFunction<? super T> floatFunction, R target)
public static <T> MutableIntList collectInt(T[] objectArray, IntFunction<? super T> intFunction)
public static <T,R extends MutableIntCollection> R collectInt(T[] objectArray, IntFunction<? super T> intFunction, R target)
public static <T> MutableLongList collectLong(T[] objectArray, LongFunction<? super T> longFunction)
public static <T,R extends MutableLongCollection> R collectLong(T[] objectArray, LongFunction<? super T> longFunction, R target)
public static <T> MutableShortList collectShort(T[] objectArray, ShortFunction<? super T> shortFunction)
public static <T,R extends MutableShortCollection> R collectShort(T[] objectArray, ShortFunction<? super T> shortFunction, R target)
public static <T,V> MutableList<V> flatCollect(T[] objectArray, Function<? super T,? extends Iterable<V>> function)
Iterate.flatCollect(Iterable, Function)
public static <T,V,R extends Collection<V>> R flatCollect(T[] objectArray, Function<? super T,? extends Iterable<V>> function, R targetCollection)
public static <T> T getFirst(T[] objectArray)
public static <T> T getLast(T[] objectArray)
public static <T> void forEach(T[] objectArray, Procedure<? super T> procedure)
Iterate.forEach(Iterable, Procedure)
public static <T> void forEach(T[] objectArray, int from, int to, Procedure<? super T> procedure)
public static <T1,T2> void forEachInBoth(T1[] objectArray1, T2[] objectArray2, Procedure2<T1,T2> procedure)
public static <T> void forEachWithIndex(T[] objectArray, ObjectIntProcedure<? super T> objectIntProcedure)
public static <T> void forEachWithIndex(T[] objectArray, int from, int to, ObjectIntProcedure<? super T> objectIntProcedure)
public static <T> T detect(T[] objectArray, Predicate<? super T> predicate)
Iterate.detect(Iterable, Predicate)
public static <T,P> T detectWith(T[] objectArray, Predicate2<? super T,? super P> predicate, P parameter)
public static <T> T detectIfNone(T[] objectArray, Predicate<? super T> predicate, T ifNone)
public static <T,P> T detectWithIfNone(T[] objectArray, Predicate2<? super T,P> predicate, P parameter, T ifNone)
public static <T,IV> IV injectInto(IV injectValue, T[] objectArray, Function2<? super IV,? super T,? extends IV> function)
public static <T> int injectInto(int injectValue, T[] objectArray, IntObjectToIntFunction<? super T> function)
public static <T> long injectInto(long injectValue, T[] objectArray, LongObjectToLongFunction<? super T> function)
public static <T> float injectInto(float injectValue, T[] objectArray, FloatObjectToFloatFunction<? super T> function)
Iterate.injectInto(float, Iterable, FloatObjectToFloatFunction)
public static <T> double injectInto(double injectValue, T[] objectArray, DoubleObjectToDoubleFunction<? super T> function)
@Deprecated public static <T,R extends List<T>> R distinct(T[] objectArray, R targetList)
public static <T> MutableList<T> distinct(T[] objectArray)
public static <T> MutableList<T> distinct(T[] objectArray, HashingStrategy<? super T> hashingStrategy)
public static <T> boolean contains(T[] objectArray, T value)
public static boolean contains(int[] intArray, int value)
public static boolean contains(double[] doubleArray, double value)
public static boolean contains(long[] longArray, long value)
public static <T> int indexOf(T[] objectArray, T elem)
public static <T> int detectIndex(T[] objectArray, Predicate<? super T> predicate)
public static <T,IV> int detectIndexWith(T[] objectArray, Predicate2<? super T,IV> predicate, IV injectedValue)
public static <T> int detectLastIndex(T[] objectArray, Predicate<? super T> predicate)
public static boolean isEmpty(Object[] array)
public static boolean notEmpty(Object[] array)
public static int size(Object[] array)
public static <T> boolean anySatisfy(T[] objectArray, Predicate<? super T> predicate)
Iterate.anySatisfy(Iterable, Predicate)
public static <T,P> boolean anySatisfyWith(T[] objectArray, Predicate2<? super T,? super P> predicate, P parameter)
public static <T> boolean allSatisfy(T[] objectArray, Predicate<? super T> predicate)
Iterate.allSatisfy(Iterable, Predicate)
public static <T,P> boolean allSatisfyWith(T[] objectArray, Predicate2<? super T,? super P> predicate, P parameter)
public static <T> boolean noneSatisfy(T[] objectArray, Predicate<? super T> predicate)
Iterate.noneSatisfy(Iterable, Predicate)
public static <T,P> boolean noneSatisfyWith(T[] objectArray, Predicate2<? super T,? super P> predicate, P parameter)
public static <K,V> MutableMap<K,V> toMap(V[] objectArray, Function<? super V,? extends K> keyFunction)
public static <T,K,V> MutableMap<K,V> toMap(T[] objectArray, Function<? super T,? extends K> keyFunction, Function<? super T,? extends V> valueFunction)
public static <T,P> void forEachWith(T[] objectArray, Procedure2<? super T,? super P> procedure, P parameter)
public static <T,P,V> MutableList<V> collectWith(T[] objectArray, Function2<? super T,? super P,? extends V> function, P parameter)
public static <T,P,V,R extends Collection<V>> R collectWith(T[] objectArray, Function2<? super T,? super P,? extends V> function, P parameter, R targetCollection)
public static <T,IV,P> IV injectIntoWith(IV injectValue, T[] objectArray, Function3<? super IV,? super T,? super P,? extends IV> function, P parameter)
public static <T> MutableList<T> take(T[] array, int count)
Iterate.take(Iterable, int)
public static <T,R extends Collection<T>> R take(T[] array, int count, R target)
Iterate.take(Iterable, int)
public static <T> MutableList<T> drop(T[] array, int count)
Iterate.drop(Iterable, int)
public static <T,R extends Collection<T>> R drop(T[] array, int count, R target)
Iterate.drop(Iterable, int)
public static <T,V> FastListMultimap<V,T> groupBy(T[] array, Function<? super T,? extends V> function)
Iterate.groupBy(Iterable, Function)
public static <T,V,R extends MutableMultimap<V,T>> R groupBy(T[] array, Function<? super T,? extends V> function, R target)
public static <T,V> FastListMultimap<V,T> groupByEach(T[] array, Function<? super T,? extends Iterable<V>> function)
Iterate.groupByEach(Iterable, Function)
public static <T,V,R extends MutableMultimap<V,T>> R groupByEach(T[] array, Function<? super T,? extends Iterable<V>> function, R target)
public static <T,V> MutableMap<V,T> groupByUniqueKey(T[] array, Function<? super T,? extends V> function)
public static <T,V,R extends MutableMap<V,T>> R groupByUniqueKey(T[] array, Function<? super T,? extends V> function, R target)
public static <T> RichIterable<RichIterable<T>> chunk(T[] array, int size)
Iterate.chunk(Iterable, int)
public static <X,Y> MutableList<Pair<X,Y>> zip(X[] xs, Y[] ys)
Iterate.zip(Iterable, Iterable)
public static <X,Y,R extends Collection<Pair<X,Y>>> R zip(X[] xs, Y[] ys, R targetCollection)
public static <T> MutableList<Pair<T,Integer>> zipWithIndex(T... array)
Iterate.zipWithIndex(Iterable)
public static <T,R extends Collection<Pair<T,Integer>>> R zipWithIndex(T[] array, R targetCollection)
public static <T> String makeString(T... array)
Iterate.makeString(Iterable)
public static <T> String makeString(T[] array, String separator)
Iterate.makeString(Iterable, String)
public static <T> String makeString(T[] array, String start, String separator, String end)
public static <T> void appendString(T[] array, Appendable appendable)
public static <T> void appendString(T[] array, Appendable appendable, String separator)
public static <T> void appendString(T[] array, Appendable appendable, String start, String separator, String end)
public static <T> long sumOfInt(T[] array, IntFunction<? super T> function)
Iterate.sumOfInt(Iterable, IntFunction)
public static <T> long sumOfLong(T[] array, LongFunction<? super T> function)
Iterate.sumOfLong(Iterable, LongFunction)
public static <T> double sumOfFloat(T[] array, FloatFunction<? super T> function)
Iterate.sumOfFloat(Iterable, FloatFunction)
public static <T> double sumOfDouble(T[] array, DoubleFunction<? super T> function)
Iterate.sumOfDouble(Iterable, DoubleFunction)
public static <T> BigDecimal sumOfBigDecimal(T[] array, Function<? super T,BigDecimal> function)
Iterate.sumOfBigDecimal(Iterable, Function)
public static <T> BigInteger sumOfBigInteger(T[] array, Function<? super T,BigInteger> function)
Iterate.sumOfBigInteger(Iterable, Function)
public static <V,T> MutableMap<V,BigDecimal> sumByBigDecimal(T[] array, Function<T,V> groupBy, Function<? super T,BigDecimal> function)
Iterate.sumByBigDecimal(Iterable, Function, Function)
public static <V,T> MutableMap<V,BigInteger> sumByBigInteger(T[] array, Function<T,V> groupBy, Function<? super T,BigInteger> function)
Iterate.sumByBigInteger(Iterable, Function, Function)
public static <V,T> ObjectLongMap<V> sumByInt(T[] array, Function<T,V> groupBy, IntFunction<? super T> function)
Iterate.sumByInt(Iterable, Function, IntFunction)
public static <V,T> ObjectLongMap<V> sumByLong(T[] array, Function<T,V> groupBy, LongFunction<? super T> function)
Iterate.sumByLong(Iterable, Function, LongFunction)
public static <V,T> ObjectDoubleMap<V> sumByFloat(T[] array, Function<T,V> groupBy, FloatFunction<? super T> function)
Iterate.sumByFloat(Iterable, Function, FloatFunction)
public static <V,T> ObjectDoubleMap<V> sumByDouble(T[] array, Function<T,V> groupBy, DoubleFunction<? super T> function)
Iterate.sumByDouble(Iterable, Function, DoubleFunction)
Copyright © 2004–2016. All rights reserved.