public final class RandomAccessListIterate
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static <T,K,V> MutableMap<K,V> |
aggregateBy(java.util.List<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(java.util.List<T> list,
Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
|
static <T> boolean |
allSatisfy(java.util.List<T> list,
Predicate<? super T> predicate) |
|
static <T,P> boolean |
allSatisfyWith(java.util.List<T> list,
Predicate2<? super T,? super P> predicate,
P parameter) |
|
static <T> boolean |
anySatisfy(java.util.List<T> list,
Predicate<? super T> predicate) |
|
static <T,P> boolean |
anySatisfyWith(java.util.List<T> list,
Predicate2<? super T,? super P> predicate,
P parameter) |
|
static <T> void |
appendString(java.util.List<T> list,
java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end) |
|
static <T,A> MutableList<A> |
collect(java.util.List<T> list,
Function<? super T,? extends A> function) |
|
static <T,A,R extends java.util.Collection<A>> |
collect(java.util.List<T> list,
Function<? super T,? extends A> function,
R targetCollection) |
|
static <T> MutableBooleanList |
collectBoolean(java.util.List<T> list,
BooleanFunction<? super T> booleanFunction) |
|
static <T,R extends MutableBooleanCollection> |
collectBoolean(java.util.List<T> list,
BooleanFunction<? super T> booleanFunction,
R target) |
|
static <T> MutableByteList |
collectByte(java.util.List<T> list,
ByteFunction<? super T> byteFunction) |
|
static <T,R extends MutableByteCollection> |
collectByte(java.util.List<T> list,
ByteFunction<? super T> byteFunction,
R target) |
|
static <T> MutableCharList |
collectChar(java.util.List<T> list,
CharFunction<? super T> charFunction) |
|
static <T,R extends MutableCharCollection> |
collectChar(java.util.List<T> list,
CharFunction<? super T> charFunction,
R target) |
|
static <T> MutableDoubleList |
collectDouble(java.util.List<T> list,
DoubleFunction<? super T> doubleFunction) |
|
static <T,R extends MutableDoubleCollection> |
collectDouble(java.util.List<T> list,
DoubleFunction<? super T> doubleFunction,
R target) |
|
static <T> MutableFloatList |
collectFloat(java.util.List<T> list,
FloatFunction<? super T> floatFunction) |
|
static <T,R extends MutableFloatCollection> |
collectFloat(java.util.List<T> list,
FloatFunction<? super T> floatFunction,
R target) |
|
static <T,A> MutableList<A> |
collectIf(java.util.List<T> list,
Predicate<? super T> predicate,
Function<? super T,? extends A> function) |
|
static <T,A,R extends java.util.Collection<A>> |
collectIf(java.util.List<T> list,
Predicate<? super T> predicate,
Function<? super T,? extends A> function,
R targetCollection) |
|
static <T> MutableIntList |
collectInt(java.util.List<T> list,
IntFunction<? super T> intFunction) |
|
static <T,R extends MutableIntCollection> |
collectInt(java.util.List<T> list,
IntFunction<? super T> intFunction,
R target) |
|
static <T> MutableLongList |
collectLong(java.util.List<T> list,
LongFunction<? super T> longFunction) |
|
static <T,R extends MutableLongCollection> |
collectLong(java.util.List<T> list,
LongFunction<? super T> longFunction,
R target) |
|
static <T> MutableShortList |
collectShort(java.util.List<T> list,
ShortFunction<? super T> shortFunction) |
|
static <T,R extends MutableShortCollection> |
collectShort(java.util.List<T> list,
ShortFunction<? super T> shortFunction,
R target) |
|
static <T,P,A,R extends java.util.Collection<A>> |
collectWith(java.util.List<T> list,
Function2<? super T,? super P,? extends A> function,
P parameter,
R targetCollection) |
|
static <T,P> boolean |
corresponds(java.util.List<T> list,
OrderedIterable<P> other,
Predicate2<? super T,? super P> predicate) |
|
static <T> int |
count(java.util.List<T> list,
Predicate<? super T> predicate) |
|
static <T,IV> int |
countWith(java.util.List<T> list,
Predicate2<? super T,? super IV> predicate,
IV injectedValue) |
|
static <T> T |
detect(java.util.List<T> list,
Predicate<? super T> predicate) |
|
static <T> int |
detectIndex(java.util.List<T> list,
Predicate<? super T> predicate) |
Searches for the first occurrence where the predicate evaluates to true.
|
static <T,IV> int |
detectIndexWith(java.util.List<T> list,
Predicate2<? super T,? super IV> predicate,
IV injectedValue) |
Searches for the first occurrence where the predicate evaluates to true.
|
static <T> int |
detectLastIndex(java.util.List<T> list,
Predicate<? super T> predicate) |
|
static <T> java.util.Optional<T> |
detectOptional(java.util.List<T> list,
Predicate<? super T> predicate) |
|
static <T,P> T |
detectWith(java.util.List<T> list,
Predicate2<? super T,? super P> predicate,
P parameter) |
|
static <T,P> java.util.Optional<T> |
detectWithOptional(java.util.List<T> list,
Predicate2<? super T,? super P> predicate,
P parameter) |
|
static <T> MutableList<T> |
distinct(java.util.List<T> list) |
|
static <T> MutableList<T> |
distinct(java.util.List<T> list,
HashingStrategy<? super T> hashingStrategy) |
|
static <T,R extends java.util.List<T>> |
distinct(java.util.List<T> list,
R targetList) |
Deprecated.
in 7.0.
|
static <T> MutableList<T> |
drop(java.util.List<T> list,
int count) |
|
static <T,R extends java.util.Collection<T>> |
drop(java.util.List<T> list,
int count,
R targetList) |
|
static <T> MutableList<T> |
dropWhile(java.util.List<T> list,
Predicate<? super T> predicate) |
|
static <T,A> MutableList<A> |
flatCollect(java.util.List<T> list,
Function<? super T,? extends java.lang.Iterable<A>> function) |
|
static <T,A,R extends java.util.Collection<A>> |
flatCollect(java.util.List<T> list,
Function<? super T,? extends java.lang.Iterable<A>> function,
R targetCollection) |
|
static <T> void |
forEach(java.util.List<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(java.util.List<T> list,
Procedure<? super T> procedure) |
|
static <T1,T2> void |
forEachInBoth(java.util.List<T1> list1,
java.util.List<T2> list2,
Procedure2<? super T1,? super T2> procedure) |
For each element in both of the Lists, operation is evaluated with both elements as parameters.
|
static <T,P> void |
forEachWith(java.util.List<T> list,
Procedure2<? super T,? super P> procedure,
P parameter) |
|
static <T> void |
forEachWithIndex(java.util.List<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(java.util.List<T> list,
ObjectIntProcedure<? super T> objectIntProcedure) |
Iterates over a collection passing each element and the current relative int index to the specified instance of
ObjectIntProcedure.
|
static <T> T |
getLast(java.util.List<T> collection) |
Returns the last element of a list.
|
static <T,V> FastListMultimap<V,T> |
groupBy(java.util.List<T> list,
Function<? super T,? extends V> function) |
|
static <T,V,R extends MutableMultimap<V,T>> |
groupBy(java.util.List<T> list,
Function<? super T,? extends V> function,
R target) |
|
static <T,V> FastListMultimap<V,T> |
groupByEach(java.util.List<T> list,
Function<? super T,? extends java.lang.Iterable<V>> function) |
|
static <T,V,R extends MutableMultimap<V,T>> |
groupByEach(java.util.List<T> list,
Function<? super T,? extends java.lang.Iterable<V>> function,
R target) |
|
static <K,T> MutableMap<K,T> |
groupByUniqueKey(java.util.List<T> list,
Function<? super T,? extends K> function) |
|
static <K,T,R extends MutableMap<K,T>> |
groupByUniqueKey(java.util.List<T> list,
Function<? super T,? extends K> function,
R target) |
|
static <T> double |
injectInto(double injectValue,
java.util.List<T> list,
DoubleObjectToDoubleFunction<? super T> function) |
|
static <T> float |
injectInto(float injectValue,
java.util.List<T> list,
FloatObjectToFloatFunction<? super T> function) |
|
static <T> int |
injectInto(int injectValue,
java.util.List<T> list,
IntObjectToIntFunction<? super T> function) |
|
static <T> long |
injectInto(long injectValue,
java.util.List<T> list,
LongObjectToLongFunction<? super T> function) |
|
static <T,IV> IV |
injectInto(IV injectValue,
java.util.List<T> list,
Function2<? super IV,? super T,? extends IV> function) |
|
static <T,IV,P> IV |
injectIntoWith(IV injectedValue,
java.util.List<T> list,
Function3<? super IV,? super T,? super P,? extends IV> function,
P parameter) |
|
static <T> T |
max(java.util.List<T> list) |
|
static <T> T |
max(java.util.List<T> list,
java.util.Comparator<? super T> comparator) |
|
static <T,V extends java.lang.Comparable<? super V>> |
maxBy(java.util.List<T> list,
Function<? super T,? extends V> function) |
|
static <T> T |
min(java.util.List<T> list) |
|
static <T> T |
min(java.util.List<T> list,
java.util.Comparator<? super T> comparator) |
|
static <T,V extends java.lang.Comparable<? super V>> |
minBy(java.util.List<T> list,
Function<? super T,? extends V> function) |
|
static <T> boolean |
noneSatisfy(java.util.List<T> list,
Predicate<? super T> predicate) |
|
static <T,P> boolean |
noneSatisfyWith(java.util.List<T> list,
Predicate2<? super T,? super P> predicate,
P parameter) |
|
static <T> PartitionMutableList<T> |
partition(java.util.List<T> list,
Predicate<? super T> predicate) |
|
static <T> PartitionMutableList<T> |
partitionWhile(java.util.List<T> list,
Predicate<? super T> predicate) |
|
static <T,P> PartitionMutableList<T> |
partitionWith(java.util.List<T> list,
Predicate2<? super T,? super P> predicate,
P parameter) |
|
static <T> MutableList<T> |
reject(java.util.List<T> list,
Predicate<? super T> predicate) |
|
static <T,R extends java.util.Collection<T>> |
reject(java.util.List<T> list,
Predicate<? super T> predicate,
R targetCollection) |
|
static <T,IV> MutableList<T> |
rejectWith(java.util.List<T> list,
Predicate2<? super T,? super IV> predicate,
IV injectedValue) |
|
static <T,P,R extends java.util.Collection<T>> |
rejectWith(java.util.List<T> list,
Predicate2<? super T,? super P> predicate,
P parameter,
R targetCollection) |
|
static <T> boolean |
removeIf(java.util.List<T> list,
Predicate<? super T> predicate) |
|
static <T> boolean |
removeIf(java.util.List<T> list,
Predicate<? super T> predicate,
Procedure<? super T> procedure) |
|
static <T,P> boolean |
removeIfWith(java.util.List<T> list,
Predicate2<? super T,? super P> predicate,
P parameter) |
|
static <T,P> boolean |
removeIfWith(java.util.List<T> list,
Predicate2<? super T,? super P> predicate,
P parameter,
Procedure<? super T> procedure) |
|
static <T> MutableList<T> |
select(java.util.List<T> list,
Predicate<? super T> predicate) |
|
static <T,R extends java.util.Collection<T>> |
select(java.util.List<T> list,
Predicate<? super T> predicate,
R targetCollection) |
|
static <T,IV> Twin<MutableList<T>> |
selectAndRejectWith(java.util.List<T> list,
Predicate2<? super T,? super IV> predicate,
IV injectedValue) |
|
static <T> MutableList<T> |
selectInstancesOf(java.util.List<?> list,
java.lang.Class<T> clazz) |
|
static <T,IV> MutableList<T> |
selectWith(java.util.List<T> list,
Predicate2<? super T,? super IV> predicate,
IV injectedValue) |
|
static <T,P,R extends java.util.Collection<T>> |
selectWith(java.util.List<T> list,
Predicate2<? super T,? super P> predicate,
P parameter,
R targetCollection) |
|
static <T> boolean |
shortCircuit(java.util.List<T> list,
Predicate<? super T> predicate,
boolean expected,
boolean onShortCircuit,
boolean atEnd) |
|
static <T,P> boolean |
shortCircuitWith(java.util.List<T> list,
Predicate2<? super T,? super P> predicate2,
P parameter,
boolean expected,
boolean onShortCircuit,
boolean atEnd) |
|
static <V,T> MutableMap<V,java.math.BigDecimal> |
sumByBigDecimal(java.util.List<T> list,
Function<T,V> groupBy,
Function<? super T,java.math.BigDecimal> function) |
|
static <V,T> MutableMap<V,java.math.BigInteger> |
sumByBigInteger(java.util.List<T> list,
Function<T,V> groupBy,
Function<? super T,java.math.BigInteger> function) |
|
static <V,T> ObjectDoubleMap<V> |
sumByDouble(java.util.List<T> list,
Function<T,V> groupBy,
DoubleFunction<? super T> function) |
|
static <V,T> ObjectDoubleMap<V> |
sumByFloat(java.util.List<T> list,
Function<T,V> groupBy,
FloatFunction<? super T> function) |
|
static <V,T> ObjectLongMap<V> |
sumByInt(java.util.List<T> list,
Function<T,V> groupBy,
IntFunction<? super T> function) |
|
static <V,T> ObjectLongMap<V> |
sumByLong(java.util.List<T> list,
Function<T,V> groupBy,
LongFunction<? super T> function) |
|
static <T> java.math.BigDecimal |
sumOfBigDecimal(java.util.List<T> list,
Function<? super T,java.math.BigDecimal> function) |
|
static <T> java.math.BigInteger |
sumOfBigInteger(java.util.List<T> list,
Function<? super T,java.math.BigInteger> function) |
|
static <T> double |
sumOfDouble(java.util.List<T> list,
DoubleFunction<? super T> function) |
|
static <T> double |
sumOfFloat(java.util.List<T> list,
FloatFunction<? super T> function) |
|
static <T> long |
sumOfInt(java.util.List<T> list,
IntFunction<? super T> function) |
|
static <T> long |
sumOfLong(java.util.List<T> list,
LongFunction<? super T> function) |
|
static <T> MutableList<T> |
take(java.util.List<T> list,
int count) |
|
static <T,R extends java.util.Collection<T>> |
take(java.util.List<T> list,
int count,
R targetList) |
|
static <T> MutableList<T> |
takeWhile(java.util.List<T> list,
Predicate<? super T> predicate) |
|
static <T> void |
toArray(java.util.List<T> list,
T[] target,
int startIndex,
int sourceSize) |
|
static <X,Y> MutableList<Pair<X,Y>> |
zip(java.util.List<X> list,
java.lang.Iterable<Y> iterable) |
|
static <X,Y,R extends java.util.Collection<Pair<X,Y>>> |
zip(java.util.List<X> list,
java.lang.Iterable<Y> iterable,
R target) |
|
static <T> MutableList<Pair<T,java.lang.Integer>> |
zipWithIndex(java.util.List<T> list) |
|
static <T,R extends java.util.Collection<Pair<T,java.lang.Integer>>> |
zipWithIndex(java.util.List<T> list,
R target) |
public static <T> void toArray(java.util.List<T> list, T[] target, int startIndex, int sourceSize)
public static <T> MutableList<T> select(java.util.List<T> list, Predicate<? super T> predicate)
Iterate.select(Iterable, Predicate)
public static <T,IV> MutableList<T> selectWith(java.util.List<T> list, Predicate2<? super T,? super IV> predicate, IV injectedValue)
public static <T,R extends java.util.Collection<T>> R select(java.util.List<T> list, Predicate<? super T> predicate, R targetCollection)
public static <T,P,R extends java.util.Collection<T>> R selectWith(java.util.List<T> list, Predicate2<? super T,? super P> predicate, P parameter, R targetCollection)
public static <T> MutableList<T> selectInstancesOf(java.util.List<?> list, java.lang.Class<T> clazz)
public static <T> int count(java.util.List<T> list, Predicate<? super T> predicate)
Iterate.count(Iterable, Predicate)
public static <T,IV> int countWith(java.util.List<T> list, Predicate2<? super T,? super IV> predicate, IV injectedValue)
public static <T,A> MutableList<A> collectIf(java.util.List<T> list, Predicate<? super T> predicate, Function<? super T,? extends A> function)
public static <T,A,R extends java.util.Collection<A>> R collectIf(java.util.List<T> list, Predicate<? super T> predicate, Function<? super T,? extends A> function, R targetCollection)
public static <T> MutableList<T> reject(java.util.List<T> list, Predicate<? super T> predicate)
Iterate.reject(Iterable, Predicate)
public static <T,IV> MutableList<T> rejectWith(java.util.List<T> list, Predicate2<? super T,? super IV> predicate, IV injectedValue)
public static <T,R extends java.util.Collection<T>> R reject(java.util.List<T> list, Predicate<? super T> predicate, R targetCollection)
public static <T,P,R extends java.util.Collection<T>> R rejectWith(java.util.List<T> list, Predicate2<? super T,? super P> predicate, P parameter, R targetCollection)
public static <T,A> MutableList<A> collect(java.util.List<T> list, Function<? super T,? extends A> function)
Iterate.collect(Iterable, Function)
public static <T,A,R extends java.util.Collection<A>> R collect(java.util.List<T> list, Function<? super T,? extends A> function, R targetCollection)
public static <T> MutableBooleanList collectBoolean(java.util.List<T> list, BooleanFunction<? super T> booleanFunction)
public static <T,R extends MutableBooleanCollection> R collectBoolean(java.util.List<T> list, BooleanFunction<? super T> booleanFunction, R target)
public static <T> MutableByteList collectByte(java.util.List<T> list, ByteFunction<? super T> byteFunction)
public static <T,R extends MutableByteCollection> R collectByte(java.util.List<T> list, ByteFunction<? super T> byteFunction, R target)
public static <T> MutableCharList collectChar(java.util.List<T> list, CharFunction<? super T> charFunction)
public static <T,R extends MutableCharCollection> R collectChar(java.util.List<T> list, CharFunction<? super T> charFunction, R target)
public static <T> MutableDoubleList collectDouble(java.util.List<T> list, DoubleFunction<? super T> doubleFunction)
public static <T,R extends MutableDoubleCollection> R collectDouble(java.util.List<T> list, DoubleFunction<? super T> doubleFunction, R target)
public static <T> MutableFloatList collectFloat(java.util.List<T> list, FloatFunction<? super T> floatFunction)
public static <T,R extends MutableFloatCollection> R collectFloat(java.util.List<T> list, FloatFunction<? super T> floatFunction, R target)
public static <T> MutableIntList collectInt(java.util.List<T> list, IntFunction<? super T> intFunction)
public static <T,R extends MutableIntCollection> R collectInt(java.util.List<T> list, IntFunction<? super T> intFunction, R target)
public static <T> MutableLongList collectLong(java.util.List<T> list, LongFunction<? super T> longFunction)
public static <T,R extends MutableLongCollection> R collectLong(java.util.List<T> list, LongFunction<? super T> longFunction, R target)
public static <T> MutableShortList collectShort(java.util.List<T> list, ShortFunction<? super T> shortFunction)
public static <T,R extends MutableShortCollection> R collectShort(java.util.List<T> list, ShortFunction<? super T> shortFunction, R target)
public static <T,A> MutableList<A> flatCollect(java.util.List<T> list, Function<? super T,? extends java.lang.Iterable<A>> function)
Iterate.flatCollect(Iterable, Function)
public static <T,A,R extends java.util.Collection<A>> R flatCollect(java.util.List<T> list, Function<? super T,? extends java.lang.Iterable<A>> function, R targetCollection)
public static <T> T getLast(java.util.List<T> collection)
public static <T> void forEach(java.util.List<T> list, Procedure<? super T> procedure)
Iterate.forEach(Iterable, Procedure)
public static <T> void forEach(java.util.List<T> list, int from, int to, Procedure<? super T> procedure)
e.g. MutableList<People> people = FastList.newListWith(ted, mary, bob, sally); ListIterate.forEach(people, 0, 1, new Procedure<Person>() { public void value(Person person) { LOGGER.info(person.getName()); } });
This code would output ted and mary's names.
public static <T> void forEachWithIndex(java.util.List<T> list, int from, int to, ObjectIntProcedure<? super T> objectIntProcedure)
e.g. MutableList<People> people = FastList.newListWith(ted, mary, bob, sally); ListIterate.forEachWithIndex(people, 0, 1, new ObjectIntProcedure<Person>() { 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(java.util.List<T1> list1, java.util.List<T2> list2, Procedure2<? super T1,? super T2> procedure)
public static <T> void forEachWithIndex(java.util.List<T> list, ObjectIntProcedure<? super T> objectIntProcedure)
public static <T,IV> IV injectInto(IV injectValue, java.util.List<T> list, Function2<? super IV,? super T,? extends IV> function)
public static <T> int injectInto(int injectValue, java.util.List<T> list, IntObjectToIntFunction<? super T> function)
public static <T> long injectInto(long injectValue, java.util.List<T> list, LongObjectToLongFunction<? super T> function)
public static <T> double injectInto(double injectValue, java.util.List<T> list, DoubleObjectToDoubleFunction<? super T> function)
public static <T> float injectInto(float injectValue, java.util.List<T> list, FloatObjectToFloatFunction<? super T> function)
public static <T> long sumOfInt(java.util.List<T> list, IntFunction<? super T> function)
public static <T> long sumOfLong(java.util.List<T> list, LongFunction<? super T> function)
public static <T> double sumOfFloat(java.util.List<T> list, FloatFunction<? super T> function)
public static <T> double sumOfDouble(java.util.List<T> list, DoubleFunction<? super T> function)
public static <T> java.math.BigDecimal sumOfBigDecimal(java.util.List<T> list, Function<? super T,java.math.BigDecimal> function)
public static <T> java.math.BigInteger sumOfBigInteger(java.util.List<T> list, Function<? super T,java.math.BigInteger> function)
public static <V,T> MutableMap<V,java.math.BigDecimal> sumByBigDecimal(java.util.List<T> list, Function<T,V> groupBy, Function<? super T,java.math.BigDecimal> function)
public static <V,T> MutableMap<V,java.math.BigInteger> sumByBigInteger(java.util.List<T> list, Function<T,V> groupBy, Function<? super T,java.math.BigInteger> function)
public static <T> boolean shortCircuit(java.util.List<T> list, Predicate<? super T> predicate, boolean expected, boolean onShortCircuit, boolean atEnd)
public static <T,P> boolean shortCircuitWith(java.util.List<T> list, Predicate2<? super T,? super P> predicate2, P parameter, boolean expected, boolean onShortCircuit, boolean atEnd)
public static <T,P> boolean corresponds(java.util.List<T> list, OrderedIterable<P> other, Predicate2<? super T,? super P> predicate)
public static <T> boolean anySatisfy(java.util.List<T> list, Predicate<? super T> predicate)
public static <T,P> boolean anySatisfyWith(java.util.List<T> list, Predicate2<? super T,? super P> predicate, P parameter)
public static <T> boolean allSatisfy(java.util.List<T> list, Predicate<? super T> predicate)
public static <T,P> boolean allSatisfyWith(java.util.List<T> list, Predicate2<? super T,? super P> predicate, P parameter)
public static <T> boolean noneSatisfy(java.util.List<T> list, Predicate<? super T> predicate)
public static <T,P> boolean noneSatisfyWith(java.util.List<T> list, Predicate2<? super T,? super P> predicate, P parameter)
public static <T> T detect(java.util.List<T> list, Predicate<? super T> predicate)
public static <T,P> T detectWith(java.util.List<T> list, Predicate2<? super T,? super P> predicate, P parameter)
public static <T> java.util.Optional<T> detectOptional(java.util.List<T> list, Predicate<? super T> predicate)
public static <T,P> java.util.Optional<T> detectWithOptional(java.util.List<T> list, Predicate2<? super T,? super P> predicate, P parameter)
public static <T,IV> Twin<MutableList<T>> selectAndRejectWith(java.util.List<T> list, Predicate2<? super T,? super IV> predicate, IV injectedValue)
public static <T> PartitionMutableList<T> partition(java.util.List<T> list, Predicate<? super T> predicate)
public static <T,P> PartitionMutableList<T> partitionWith(java.util.List<T> list, Predicate2<? super T,? super P> predicate, P parameter)
public static <T> boolean removeIf(java.util.List<T> list, Predicate<? super T> predicate)
public static <T,P> boolean removeIfWith(java.util.List<T> list, Predicate2<? super T,? super P> predicate, P parameter)
public static <T> boolean removeIf(java.util.List<T> list, Predicate<? super T> predicate, Procedure<? super T> procedure)
public static <T,P> boolean removeIfWith(java.util.List<T> list, Predicate2<? super T,? super P> predicate, P parameter, Procedure<? super T> procedure)
public static <T> int detectIndex(java.util.List<T> list, Predicate<? super T> predicate)
Iterate.detectIndex(Iterable, Predicate)
public static <T,IV> int detectIndexWith(java.util.List<T> list, Predicate2<? super T,? super IV> predicate, IV injectedValue)
public static <T> int detectLastIndex(java.util.List<T> list, Predicate<? super T> predicate)
public static <T,IV,P> IV injectIntoWith(IV injectedValue, java.util.List<T> list, Function3<? super IV,? super T,? super P,? extends IV> function, P parameter)
public static <T,P> void forEachWith(java.util.List<T> list, Procedure2<? super T,? super P> procedure, P parameter)
public static <T,P,A,R extends java.util.Collection<A>> R collectWith(java.util.List<T> list, Function2<? super T,? super P,? extends A> function, P parameter, R targetCollection)
@Deprecated public static <T,R extends java.util.List<T>> R distinct(java.util.List<T> list, R targetList)
public static <T> MutableList<T> distinct(java.util.List<T> list)
public static <T> MutableList<T> distinct(java.util.List<T> list, HashingStrategy<? super T> hashingStrategy)
public static <T> MutableList<T> take(java.util.List<T> list, int count)
Iterate.take(Iterable, int)
public static <T,R extends java.util.Collection<T>> R take(java.util.List<T> list, int count, R targetList)
Iterate.take(Iterable, int)
public static <T> MutableList<T> drop(java.util.List<T> list, int count)
Iterate.drop(Iterable, int)
public static <T,R extends java.util.Collection<T>> R drop(java.util.List<T> list, int count, R targetList)
Iterate.drop(Iterable, int)
public static <T> void appendString(java.util.List<T> list, java.lang.Appendable appendable, java.lang.String start, java.lang.String separator, java.lang.String end)
public static <T,V> FastListMultimap<V,T> groupBy(java.util.List<T> list, Function<? super T,? extends V> function)
Iterate.groupBy(Iterable, Function)
public static <T,V,R extends MutableMultimap<V,T>> R groupBy(java.util.List<T> list, Function<? super T,? extends V> function, R target)
public static <T,V> FastListMultimap<V,T> groupByEach(java.util.List<T> list, Function<? super T,? extends java.lang.Iterable<V>> function)
public static <T,V,R extends MutableMultimap<V,T>> R groupByEach(java.util.List<T> list, Function<? super T,? extends java.lang.Iterable<V>> function, R target)
public static <K,T> MutableMap<K,T> groupByUniqueKey(java.util.List<T> list, Function<? super T,? extends K> function)
public static <K,T,R extends MutableMap<K,T>> R groupByUniqueKey(java.util.List<T> list, Function<? super T,? extends K> function, R target)
public static <T,V extends java.lang.Comparable<? super V>> T minBy(java.util.List<T> list, Function<? super T,? extends V> function)
public static <T,V extends java.lang.Comparable<? super V>> T maxBy(java.util.List<T> list, Function<? super T,? extends V> function)
public static <T> T min(java.util.List<T> list, java.util.Comparator<? super T> comparator)
public static <T> T max(java.util.List<T> list, java.util.Comparator<? super T> comparator)
public static <T> T min(java.util.List<T> list)
public static <T> T max(java.util.List<T> list)
public static <X,Y> MutableList<Pair<X,Y>> zip(java.util.List<X> list, java.lang.Iterable<Y> iterable)
public static <X,Y,R extends java.util.Collection<Pair<X,Y>>> R zip(java.util.List<X> list, java.lang.Iterable<Y> iterable, R target)
public static <T> MutableList<Pair<T,java.lang.Integer>> zipWithIndex(java.util.List<T> list)
public static <T,R extends java.util.Collection<Pair<T,java.lang.Integer>>> R zipWithIndex(java.util.List<T> list, R target)
public static <T,K,V> MutableMap<K,V> aggregateInPlaceBy(java.util.List<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(java.util.List<T> list, Function<? super T,? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V,? super T,? extends V> nonMutatingAggregator)
public static <T> MutableList<T> takeWhile(java.util.List<T> list, Predicate<? super T> predicate)
public static <T> MutableList<T> dropWhile(java.util.List<T> list, Predicate<? super T> predicate)
public static <T> PartitionMutableList<T> partitionWhile(java.util.List<T> list, Predicate<? super T> predicate)
public static <V,T> ObjectLongMap<V> sumByInt(java.util.List<T> list, Function<T,V> groupBy, IntFunction<? super T> function)
public static <V,T> ObjectLongMap<V> sumByLong(java.util.List<T> list, Function<T,V> groupBy, LongFunction<? super T> function)
public static <V,T> ObjectDoubleMap<V> sumByFloat(java.util.List<T> list, Function<T,V> groupBy, FloatFunction<? super T> function)
public static <V,T> ObjectDoubleMap<V> sumByDouble(java.util.List<T> list, Function<T,V> groupBy, DoubleFunction<? super T> function)
Copyright © 2004–2017. All rights reserved.