public final class ArrayListIterate extends Object
Modifier and Type | Method and Description |
---|---|
static <T,K,V> MutableMap<K,V> |
aggregateBy(ArrayList<T> list,
Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
static <T,K,V> MutableMap<K,V> |
aggregateInPlaceBy(ArrayList<T> list,
Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
static <T> boolean |
allSatisfy(ArrayList<T> list,
Predicate<? super T> predicate) |
static <T,IV> boolean |
allSatisfyWith(ArrayList<T> list,
Predicate2<? super T,? super IV> predicate,
IV injectedValue) |
static <T> boolean |
anySatisfy(ArrayList<T> list,
Predicate<? super T> predicate) |
static <T,P> boolean |
anySatisfyWith(ArrayList<T> list,
Predicate2<? super T,? super P> predicate,
P parameter) |
static <T,A> ArrayList<A> |
collect(ArrayList<T> list,
Function<? super T,? extends A> function) |
static <T,A,R extends Collection<A>> |
collect(ArrayList<T> list,
Function<? super T,? extends A> function,
R targetCollection) |
static <T> MutableBooleanList |
collectBoolean(ArrayList<T> list,
BooleanFunction<? super T> booleanFunction) |
static <T,R extends MutableBooleanCollection> |
collectBoolean(ArrayList<T> list,
BooleanFunction<? super T> booleanFunction,
R target) |
static <T> MutableByteList |
collectByte(ArrayList<T> list,
ByteFunction<? super T> byteFunction) |
static <T,R extends MutableByteCollection> |
collectByte(ArrayList<T> list,
ByteFunction<? super T> byteFunction,
R target) |
static <T> MutableCharList |
collectChar(ArrayList<T> list,
CharFunction<? super T> charFunction) |
static <T,R extends MutableCharCollection> |
collectChar(ArrayList<T> list,
CharFunction<? super T> charFunction,
R target) |
static <T> MutableDoubleList |
collectDouble(ArrayList<T> list,
DoubleFunction<? super T> doubleFunction) |
static <T,R extends MutableDoubleCollection> |
collectDouble(ArrayList<T> list,
DoubleFunction<? super T> doubleFunction,
R target) |
static <T> MutableFloatList |
collectFloat(ArrayList<T> list,
FloatFunction<? super T> floatFunction) |
static <T,R extends MutableFloatCollection> |
collectFloat(ArrayList<T> list,
FloatFunction<? super T> floatFunction,
R target) |
static <T,A> ArrayList<A> |
collectIf(ArrayList<T> list,
Predicate<? super T> predicate,
Function<? super T,? extends A> function) |
static <T,A,R extends Collection<A>> |
collectIf(ArrayList<T> list,
Predicate<? super T> predicate,
Function<? super T,? extends A> function,
R targetCollection) |
static <T> MutableIntList |
collectInt(ArrayList<T> list,
IntFunction<? super T> intFunction) |
static <T,R extends MutableIntCollection> |
collectInt(ArrayList<T> list,
IntFunction<? super T> intFunction,
R target) |
static <T> MutableLongList |
collectLong(ArrayList<T> list,
LongFunction<? super T> longFunction) |
static <T,R extends MutableLongCollection> |
collectLong(ArrayList<T> list,
LongFunction<? super T> longFunction,
R target) |
static <T> MutableShortList |
collectShort(ArrayList<T> list,
ShortFunction<? super T> shortFunction) |
static <T,R extends MutableShortCollection> |
collectShort(ArrayList<T> list,
ShortFunction<? super T> shortFunction,
R target) |
static <T,P,A> ArrayList<A> |
collectWith(ArrayList<T> list,
Function2<? super T,? super P,? extends A> function,
P parameter) |
static <T,P,A,R extends Collection<A>> |
collectWith(ArrayList<T> list,
Function2<? super T,? super P,? extends A> function,
P parameter,
R targetCollection) |
static <T> int |
count(ArrayList<T> list,
Predicate<? super T> predicate) |
static <T,P> int |
countWith(ArrayList<T> list,
Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> T |
detect(ArrayList<T> list,
Predicate<? super T> predicate) |
static <T> T |
detectIfNone(ArrayList<T> list,
Predicate<? super T> predicate,
T ifNone) |
static <T> int |
detectIndex(ArrayList<T> list,
Predicate<? super T> predicate) |
static <T,P> int |
detectIndexWith(ArrayList<T> list,
Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> int |
detectLastIndex(ArrayList<T> list,
Predicate<? super T> predicate) |
static <T> Optional<T> |
detectOptional(ArrayList<T> list,
Predicate<? super T> predicate) |
static <T,P> T |
detectWith(ArrayList<T> list,
Predicate2<? super T,? super P> predicate,
P parameter) |
static <T,IV> T |
detectWithIfNone(ArrayList<T> list,
Predicate2<? super T,? super IV> predicate,
IV injectedValue,
T ifNone) |
static <T,P> Optional<T> |
detectWithOptional(ArrayList<T> list,
Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> ArrayList<T> |
distinct(ArrayList<T> list) |
static <T> ArrayList<T> |
distinct(ArrayList<T> list,
HashingStrategy<? super T> hashingStrategy) |
static <T,R extends List<T>> |
distinct(ArrayList<T> list,
R targetList)
Deprecated.
in 7.0.
|
static <T> ArrayList<T> |
drop(ArrayList<T> list,
int count) |
static <T,R extends Collection<T>> |
drop(ArrayList<T> list,
int count,
R targetList) |
static <T> MutableList<T> |
dropWhile(ArrayList<T> list,
Predicate<? super T> predicate) |
static <T,A> ArrayList<A> |
flatCollect(ArrayList<T> list,
Function<? super T,? extends Iterable<A>> function) |
static <T,A,R extends Collection<A>> |
flatCollect(ArrayList<T> list,
Function<? super T,? extends Iterable<A>> function,
R targetCollection) |
static <T> void |
forEach(ArrayList<T> list,
int from,
int to,
Procedure<? super T> procedure)
Iterates over the section of the list covered by the specified indexes.
|
static <T> void |
forEach(ArrayList<T> list,
Procedure<? super T> procedure) |
static <T1,T2> void |
forEachInBoth(ArrayList<T1> list1,
ArrayList<T2> list2,
Procedure2<? super T1,? super T2> procedure) |
static <T,P> void |
forEachWith(ArrayList<T> list,
Procedure2<? super T,? super P> procedure,
P parameter) |
static <T> void |
forEachWithIndex(ArrayList<T> list,
int from,
int to,
ObjectIntProcedure<? super T> objectIntProcedure)
Iterates over the section of the list covered by the specified indexes.
|
static <T> void |
forEachWithIndex(ArrayList<T> list,
ObjectIntProcedure<? super T> objectIntProcedure) |
static <T,V> FastListMultimap<V,T> |
groupBy(ArrayList<T> list,
Function<? super T,? extends V> function) |
static <T,V,R extends MutableMultimap<V,T>> |
groupBy(ArrayList<T> list,
Function<? super T,? extends V> function,
R target) |
static <T,V> FastListMultimap<V,T> |
groupByEach(ArrayList<T> list,
Function<? super T,? extends Iterable<V>> function) |
static <T,V,R extends MutableMultimap<V,T>> |
groupByEach(ArrayList<T> list,
Function<? super T,? extends Iterable<V>> function,
R target) |
static <T,V> MutableMap<V,T> |
groupByUniqueKey(ArrayList<T> list,
Function<? super T,? extends V> function) |
static <T,V,R extends MutableMap<V,T>> |
groupByUniqueKey(ArrayList<T> list,
Function<? super T,? extends V> function,
R target) |
static <T> double |
injectInto(double injectValue,
ArrayList<T> list,
DoubleObjectToDoubleFunction<? super T> function) |
static <T> float |
injectInto(float injectValue,
ArrayList<T> list,
FloatObjectToFloatFunction<? super T> function) |
static <T> int |
injectInto(int injectValue,
ArrayList<T> list,
IntObjectToIntFunction<? super T> function) |
static <T,IV> IV |
injectInto(IV injectValue,
ArrayList<T> list,
Function2<? super IV,? super T,? extends IV> function) |
static <T> long |
injectInto(long injectValue,
ArrayList<T> list,
LongObjectToLongFunction<? super T> function) |
static <T,IV,P> IV |
injectIntoWith(IV injectedValue,
ArrayList<T> list,
Function3<? super IV,? super T,? super P,? extends IV> function,
P parameter) |
static <T> boolean |
noneSatisfy(ArrayList<T> list,
Predicate<? super T> predicate) |
static <T,IV> boolean |
noneSatisfyWith(ArrayList<T> list,
Predicate2<? super T,? super IV> predicate,
IV injectedValue) |
static <T> PartitionMutableList<T> |
partition(ArrayList<T> list,
Predicate<? super T> predicate) |
static <T> PartitionMutableList<T> |
partitionWhile(ArrayList<T> list,
Predicate<? super T> predicate) |
static <T,P> PartitionMutableList<T> |
partitionWith(ArrayList<T> list,
Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> ArrayList<T> |
reject(ArrayList<T> list,
Predicate<? super T> predicate) |
static <T,R extends Collection<T>> |
reject(ArrayList<T> list,
Predicate<? super T> predicate,
R targetCollection) |
static <T,IV> ArrayList<T> |
rejectWith(ArrayList<T> list,
Predicate2<? super T,? super IV> predicate,
IV injectedValue) |
static <T,P,R extends Collection<T>> |
rejectWith(ArrayList<T> list,
Predicate2<? super T,? super P> predicate,
P injectedValue,
R targetCollection) |
static <T> boolean |
removeIf(ArrayList<T> list,
Predicate<? super T> predicate) |
static <T,P> boolean |
removeIfWith(ArrayList<T> list,
Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> void |
reverseForEach(ArrayList<T> list,
Procedure<? super T> procedure)
Reverses over the List in reverse order executing the Procedure for each element
|
static <T> ArrayList<T> |
select(ArrayList<T> list,
Predicate<? super T> predicate) |
static <T,R extends Collection<T>> |
select(ArrayList<T> list,
Predicate<? super T> predicate,
R targetCollection) |
static <T,P> Twin<MutableList<T>> |
selectAndRejectWith(ArrayList<T> list,
Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> MutableList<T> |
selectInstancesOf(ArrayList<?> list,
Class<T> clazz) |
static <T,IV> ArrayList<T> |
selectWith(ArrayList<T> list,
Predicate2<? super T,? super IV> predicate,
IV injectedValue) |
static <T,P,R extends Collection<T>> |
selectWith(ArrayList<T> list,
Predicate2<? super T,? super P> predicate,
P parameter,
R targetCollection) |
static <T extends Comparable<? super T>> |
sortThis(ArrayList<T> list)
Mutates the internal array of the ArrayList by sorting it and then returns the same ArrayList.
|
static <T> ArrayList<T> |
sortThis(ArrayList<T> list,
Comparator<? super T> comparator)
Mutates the internal array of the ArrayList by sorting it and then returns the same ArrayList.
|
static <T> ArrayList<T> |
take(ArrayList<T> list,
int count) |
static <T,R extends Collection<T>> |
take(ArrayList<T> list,
int count,
R targetList) |
static <T> MutableList<T> |
takeWhile(ArrayList<T> list,
Predicate<? super T> predicate) |
static <T> void |
toArray(ArrayList<T> list,
T[] target,
int startIndex,
int sourceSize) |
static <X,Y> MutableList<Pair<X,Y>> |
zip(ArrayList<X> xs,
Iterable<Y> ys) |
static <X,Y,R extends Collection<Pair<X,Y>>> |
zip(ArrayList<X> xs,
Iterable<Y> ys,
R targetCollection) |
static <T> MutableList<Pair<T,Integer>> |
zipWithIndex(ArrayList<T> list) |
static <T,R extends Collection<Pair<T,Integer>>> |
zipWithIndex(ArrayList<T> list,
R targetCollection) |
public static <T> ArrayList<T> select(ArrayList<T> list, Predicate<? super T> predicate)
Iterate.select(Iterable, Predicate)
public static <T,IV> ArrayList<T> selectWith(ArrayList<T> list, Predicate2<? super T,? super IV> predicate, IV injectedValue)
public static <T,R extends Collection<T>> R select(ArrayList<T> list, Predicate<? super T> predicate, R targetCollection)
public static <T,P,R extends Collection<T>> R selectWith(ArrayList<T> list, Predicate2<? super T,? super P> predicate, P parameter, R targetCollection)
public static <T> MutableList<T> selectInstancesOf(ArrayList<?> list, Class<T> clazz)
public static <T> int count(ArrayList<T> list, Predicate<? super T> predicate)
Iterate.count(Iterable, Predicate)
public static <T,P> int countWith(ArrayList<T> list, Predicate2<? super T,? super P> predicate, P parameter)
public static <T,A> ArrayList<A> collectIf(ArrayList<T> list, Predicate<? super T> predicate, Function<? super T,? extends A> function)
public static <T,A,R extends Collection<A>> R collectIf(ArrayList<T> list, Predicate<? super T> predicate, Function<? super T,? extends A> function, R targetCollection)
public static <T> ArrayList<T> reject(ArrayList<T> list, Predicate<? super T> predicate)
Iterate.reject(Iterable, Predicate)
public static <T,IV> ArrayList<T> rejectWith(ArrayList<T> list, Predicate2<? super T,? super IV> predicate, IV injectedValue)
public static <T,R extends Collection<T>> R reject(ArrayList<T> list, Predicate<? super T> predicate, R targetCollection)
public static <T,P,R extends Collection<T>> R rejectWith(ArrayList<T> list, Predicate2<? super T,? super P> predicate, P injectedValue, R targetCollection)
public static <T,A> ArrayList<A> collect(ArrayList<T> list, Function<? super T,? extends A> function)
Iterate.collect(Iterable, Function)
public static <T> MutableBooleanList collectBoolean(ArrayList<T> list, BooleanFunction<? super T> booleanFunction)
public static <T,R extends MutableBooleanCollection> R collectBoolean(ArrayList<T> list, BooleanFunction<? super T> booleanFunction, R target)
public static <T> MutableByteList collectByte(ArrayList<T> list, ByteFunction<? super T> byteFunction)
public static <T,R extends MutableByteCollection> R collectByte(ArrayList<T> list, ByteFunction<? super T> byteFunction, R target)
public static <T> MutableCharList collectChar(ArrayList<T> list, CharFunction<? super T> charFunction)
public static <T,R extends MutableCharCollection> R collectChar(ArrayList<T> list, CharFunction<? super T> charFunction, R target)
public static <T> MutableDoubleList collectDouble(ArrayList<T> list, DoubleFunction<? super T> doubleFunction)
public static <T,R extends MutableDoubleCollection> R collectDouble(ArrayList<T> list, DoubleFunction<? super T> doubleFunction, R target)
public static <T> MutableFloatList collectFloat(ArrayList<T> list, FloatFunction<? super T> floatFunction)
public static <T,R extends MutableFloatCollection> R collectFloat(ArrayList<T> list, FloatFunction<? super T> floatFunction, R target)
public static <T> MutableIntList collectInt(ArrayList<T> list, IntFunction<? super T> intFunction)
public static <T,R extends MutableIntCollection> R collectInt(ArrayList<T> list, IntFunction<? super T> intFunction, R target)
public static <T> MutableLongList collectLong(ArrayList<T> list, LongFunction<? super T> longFunction)
public static <T,R extends MutableLongCollection> R collectLong(ArrayList<T> list, LongFunction<? super T> longFunction, R target)
public static <T> MutableShortList collectShort(ArrayList<T> list, ShortFunction<? super T> shortFunction)
public static <T,R extends MutableShortCollection> R collectShort(ArrayList<T> list, ShortFunction<? super T> shortFunction, R target)
public static <T,A,R extends Collection<A>> R collect(ArrayList<T> list, Function<? super T,? extends A> function, R targetCollection)
public static <T,A> ArrayList<A> flatCollect(ArrayList<T> list, Function<? super T,? extends Iterable<A>> function)
Iterate.flatCollect(Iterable, Function)
public static <T,A,R extends Collection<A>> R flatCollect(ArrayList<T> list, Function<? super T,? extends Iterable<A>> function, R targetCollection)
public static <T> void forEach(ArrayList<T> list, Procedure<? super T> procedure)
Iterate.forEach(Iterable, Procedure)
public static <T> void reverseForEach(ArrayList<T> list, Procedure<? super T> procedure)
public static <T> void forEach(ArrayList<T> list, int from, int to, Procedure<? super T> procedure)
e.g. ArrayListpeople = new ArrayList (FastList.newListWith(ted, mary, bob, sally)); ArrayListIterate.forEach(people, 0, 1, new Procedure () { public void value(Person person) { LOGGER.info(person.getName()); } });
This code would output ted and mary's names.
public static <T> void forEachWithIndex(ArrayList<T> list, int from, int to, ObjectIntProcedure<? super T> objectIntProcedure)
e.g. ArrayListpeople = new ArrayList (FastList.newListWith(ted, mary, bob, sally)); ArrayListIterate.forEachWithIndex(people, 0, 1, new ObjectIntProcedure () { public void value(Person person, int index) { LOGGER.info(person.getName() + " at index: " + index); } });
This code would output ted and mary's names.
public static <T1,T2> void forEachInBoth(ArrayList<T1> list1, ArrayList<T2> list2, Procedure2<? super T1,? super T2> procedure)
public static <T> void forEachWithIndex(ArrayList<T> list, ObjectIntProcedure<? super T> objectIntProcedure)
public static <T> T detect(ArrayList<T> list, Predicate<? super T> predicate)
Iterate.detect(Iterable, Predicate)
public static <T,P> T detectWith(ArrayList<T> list, Predicate2<? super T,? super P> predicate, P parameter)
public static <T> Optional<T> detectOptional(ArrayList<T> list, Predicate<? super T> predicate)
public static <T,P> Optional<T> detectWithOptional(ArrayList<T> list, Predicate2<? super T,? super P> predicate, P parameter)
public static <T> T detectIfNone(ArrayList<T> list, Predicate<? super T> predicate, T ifNone)
public static <T,IV> T detectWithIfNone(ArrayList<T> list, Predicate2<? super T,? super IV> predicate, IV injectedValue, T ifNone)
public static <T,IV> IV injectInto(IV injectValue, ArrayList<T> list, Function2<? super IV,? super T,? extends IV> function)
public static <T> int injectInto(int injectValue, ArrayList<T> list, IntObjectToIntFunction<? super T> function)
public static <T> long injectInto(long injectValue, ArrayList<T> list, LongObjectToLongFunction<? super T> function)
public static <T> double injectInto(double injectValue, ArrayList<T> list, DoubleObjectToDoubleFunction<? super T> function)
public static <T> float injectInto(float injectValue, ArrayList<T> list, FloatObjectToFloatFunction<? super T> function)
public static <T> boolean anySatisfy(ArrayList<T> list, Predicate<? super T> predicate)
Iterate.anySatisfy(Iterable, Predicate)
public static <T,P> boolean anySatisfyWith(ArrayList<T> list, Predicate2<? super T,? super P> predicate, P parameter)
public static <T> boolean allSatisfy(ArrayList<T> list, Predicate<? super T> predicate)
Iterate.allSatisfy(Iterable, Predicate)
public static <T,IV> boolean allSatisfyWith(ArrayList<T> list, Predicate2<? super T,? super IV> predicate, IV injectedValue)
public static <T> boolean noneSatisfy(ArrayList<T> list, Predicate<? super T> predicate)
Iterate.noneSatisfy(Iterable, Predicate)
public static <T,IV> boolean noneSatisfyWith(ArrayList<T> list, Predicate2<? super T,? super IV> predicate, IV injectedValue)
public static <T,P> Twin<MutableList<T>> selectAndRejectWith(ArrayList<T> list, Predicate2<? super T,? super P> predicate, P parameter)
public static <T> PartitionMutableList<T> partition(ArrayList<T> list, Predicate<? super T> predicate)
Iterate.partition(Iterable, Predicate)
public static <T,P> PartitionMutableList<T> partitionWith(ArrayList<T> list, Predicate2<? super T,? super P> predicate, P parameter)
public static <T> int detectIndex(ArrayList<T> list, Predicate<? super T> predicate)
Iterate.detectIndex(Iterable, Predicate)
public static <T,P> int detectIndexWith(ArrayList<T> list, Predicate2<? super T,? super P> predicate, P parameter)
public static <T> int detectLastIndex(ArrayList<T> list, Predicate<? super T> predicate)
public static <T,IV,P> IV injectIntoWith(IV injectedValue, ArrayList<T> list, Function3<? super IV,? super T,? super P,? extends IV> function, P parameter)
public static <T,P> void forEachWith(ArrayList<T> list, Procedure2<? super T,? super P> procedure, P parameter)
public static <T,P,A> ArrayList<A> collectWith(ArrayList<T> list, Function2<? super T,? super P,? extends A> function, P parameter)
public static <T,P,A,R extends Collection<A>> R collectWith(ArrayList<T> list, Function2<? super T,? super P,? extends A> function, P parameter, R targetCollection)
public static <T> boolean removeIf(ArrayList<T> list, Predicate<? super T> predicate)
Iterate.removeIf(Iterable, Predicate)
public static <T,P> boolean removeIfWith(ArrayList<T> list, Predicate2<? super T,? super P> predicate, P parameter)
@Deprecated public static <T,R extends List<T>> R distinct(ArrayList<T> list, R targetList)
public static <T> ArrayList<T> distinct(ArrayList<T> list, HashingStrategy<? super T> hashingStrategy)
public static <T extends Comparable<? super T>> ArrayList<T> sortThis(ArrayList<T> list)
public static <T> ArrayList<T> sortThis(ArrayList<T> list, Comparator<? super T> comparator)
public static <T> void toArray(ArrayList<T> list, T[] target, int startIndex, int sourceSize)
public static <T> ArrayList<T> take(ArrayList<T> list, int count)
Iterate.take(Iterable, int)
public static <T,R extends Collection<T>> R take(ArrayList<T> list, int count, R targetList)
Iterate.take(Iterable, int)
public static <T> ArrayList<T> drop(ArrayList<T> list, int count)
Iterate.drop(Iterable, int)
public static <T,R extends Collection<T>> R drop(ArrayList<T> list, int count, R targetList)
Iterate.drop(Iterable, int)
public static <T,V> FastListMultimap<V,T> groupBy(ArrayList<T> list, Function<? super T,? extends V> function)
Iterate.groupBy(Iterable, Function)
public static <T,V,R extends MutableMultimap<V,T>> R groupBy(ArrayList<T> list, Function<? super T,? extends V> function, R target)
public static <T,V> FastListMultimap<V,T> groupByEach(ArrayList<T> list, Function<? super T,? extends Iterable<V>> function)
Iterate.groupByEach(Iterable, Function)
public static <T,V,R extends MutableMultimap<V,T>> R groupByEach(ArrayList<T> list, Function<? super T,? extends Iterable<V>> function, R target)
public static <T,V> MutableMap<V,T> groupByUniqueKey(ArrayList<T> list, Function<? super T,? extends V> function)
public static <T,V,R extends MutableMap<V,T>> R groupByUniqueKey(ArrayList<T> list, Function<? super T,? extends V> function, R target)
public static <X,Y> MutableList<Pair<X,Y>> zip(ArrayList<X> xs, Iterable<Y> ys)
Iterate.zip(Iterable, Iterable)
public static <X,Y,R extends Collection<Pair<X,Y>>> R zip(ArrayList<X> xs, Iterable<Y> ys, R targetCollection)
public static <T> MutableList<Pair<T,Integer>> zipWithIndex(ArrayList<T> list)
Iterate.zipWithIndex(Iterable)
public static <T,R extends Collection<Pair<T,Integer>>> R zipWithIndex(ArrayList<T> list, R targetCollection)
public static <T> MutableList<T> takeWhile(ArrayList<T> list, Predicate<? super T> predicate)
public static <T> MutableList<T> dropWhile(ArrayList<T> list, Predicate<? super T> predicate)
public static <T> PartitionMutableList<T> partitionWhile(ArrayList<T> list, Predicate<? super T> predicate)
public static <T,K,V> MutableMap<K,V> aggregateInPlaceBy(ArrayList<T> list, Function<? super T,? extends K> groupBy, Function0<? extends V> zeroValueFactory, Procedure2<? super V,? super T> mutatingAggregator)
public static <T,K,V> MutableMap<K,V> aggregateBy(ArrayList<T> list, Function<? super T,? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V,? super T,? extends V> nonMutatingAggregator)
Copyright © 2004–2016. All rights reserved.