public final class IterableIterate extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T,K,V> org.eclipse.collections.api.map.MutableMap<K,V> |
aggregateBy(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<? super T,? extends K> groupBy,
org.eclipse.collections.api.block.function.Function0<? extends V> zeroValueFactory,
org.eclipse.collections.api.block.function.Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
static <T,K,V> org.eclipse.collections.api.map.MutableMap<K,V> |
aggregateInPlaceBy(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<? super T,? extends K> groupBy,
org.eclipse.collections.api.block.function.Function0<? extends V> zeroValueFactory,
org.eclipse.collections.api.block.procedure.Procedure2<? super V,? super T> mutatingAggregator) |
static <T> boolean |
allSatisfy(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,P> boolean |
allSatisfyWith(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> boolean |
anySatisfy(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,P> boolean |
anySatisfyWith(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> void |
appendString(Iterable<T> iterable,
Appendable appendable,
String start,
String separator,
String end) |
static <T> org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.RichIterable<T>> |
chunk(Iterable<T> iterable,
int size) |
static <T,V> org.eclipse.collections.api.list.MutableList<V> |
collect(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
static <T,V,R extends Collection<V>> |
collect(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<? super T,? extends V> function,
R targetCollection) |
static <T> org.eclipse.collections.api.collection.primitive.MutableBooleanCollection |
collectBoolean(Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction) |
static <T,R extends org.eclipse.collections.api.collection.primitive.MutableBooleanCollection> |
collectBoolean(Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction,
R target) |
static <T> org.eclipse.collections.api.collection.primitive.MutableByteCollection |
collectByte(Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction) |
static <T,R extends org.eclipse.collections.api.collection.primitive.MutableByteCollection> |
collectByte(Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction,
R target) |
static <T> org.eclipse.collections.api.collection.primitive.MutableCharCollection |
collectChar(Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.CharFunction<? super T> charFunction) |
static <T,R extends org.eclipse.collections.api.collection.primitive.MutableCharCollection> |
collectChar(Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.CharFunction<? super T> charFunction,
R target) |
static <T> org.eclipse.collections.api.collection.primitive.MutableDoubleCollection |
collectDouble(Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction) |
static <T,R extends org.eclipse.collections.api.collection.primitive.MutableDoubleCollection> |
collectDouble(Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction,
R target) |
static <T> org.eclipse.collections.api.collection.primitive.MutableFloatCollection |
collectFloat(Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction) |
static <T,R extends org.eclipse.collections.api.collection.primitive.MutableFloatCollection> |
collectFloat(Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction,
R target) |
static <T,V> org.eclipse.collections.api.list.MutableList<V> |
collectIf(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate,
org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
static <T,V,R extends Collection<V>> |
collectIf(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate,
org.eclipse.collections.api.block.function.Function<? super T,? extends V> function,
R targetCollection) |
static <T> org.eclipse.collections.api.collection.primitive.MutableIntCollection |
collectInt(Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.IntFunction<? super T> intFunction) |
static <T,R extends org.eclipse.collections.api.collection.primitive.MutableIntCollection> |
collectInt(Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.IntFunction<? super T> intFunction,
R target) |
static <T> org.eclipse.collections.api.collection.primitive.MutableLongCollection |
collectLong(Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.LongFunction<? super T> longFunction) |
static <T,R extends org.eclipse.collections.api.collection.primitive.MutableLongCollection> |
collectLong(Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.LongFunction<? super T> longFunction,
R target) |
static <T> org.eclipse.collections.api.collection.primitive.MutableShortCollection |
collectShort(Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction) |
static <T,R extends org.eclipse.collections.api.collection.primitive.MutableShortCollection> |
collectShort(Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction,
R target) |
static <T,P,A,R extends Collection<A>> |
collectWith(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function2<? super T,? super P,? extends A> function,
P parameter,
R targetCollection) |
static <T,P,V> org.eclipse.collections.api.list.MutableList<V> |
collectWith(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function2<? super T,? super P,? extends V> function,
P parameter) |
static <T> int |
count(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,IV> int |
countWith(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate,
IV injectedValue) |
static <T> T |
detect(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T> int |
detectIndex(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,IV> int |
detectIndexWith(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate,
IV injectedValue) |
static <T,P> T |
detectWith(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> org.eclipse.collections.api.list.MutableList<T> |
distinct(Iterable<T> iterable) |
static <T> org.eclipse.collections.api.list.MutableList<T> |
distinct(Iterable<T> iterable,
org.eclipse.collections.api.block.HashingStrategy<? super T> hashingStrategy) |
static <T,R extends List<T>> |
distinct(Iterable<T> iterable,
R targetCollection)
Deprecated.
in 7.0.
|
static <T> Collection<T> |
drop(Iterable<T> list,
int count) |
static <T,R extends Collection<T>> |
drop(Iterable<T> iterable,
int count,
R targetCollection) |
static <T,R extends org.eclipse.collections.api.collection.MutableCollection<T>> |
dropWhile(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate,
R target) |
static <T,V> org.eclipse.collections.api.list.MutableList<V> |
flatCollect(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function) |
static <T,V,R extends Collection<V>> |
flatCollect(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function,
R targetCollection) |
static <T> void |
forEach(Iterable<T> iterable,
int from,
int to,
org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure) |
static <T> void |
forEach(Iterable<T> iterable,
org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure) |
static <T,P> void |
forEachWith(Iterable<T> iterable,
org.eclipse.collections.api.block.procedure.Procedure2<? super T,? super P> procedure,
P parameter) |
static <T> void |
forEachWithIndex(Iterable<T> iterable,
org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure) |
static <T> void |
forEachWithIndex(List<T> iterable,
int from,
int to,
org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure) |
static <T> T |
getFirst(Iterable<T> iterable) |
static <T> T |
getLast(Iterable<T> iterable) |
static <T> T |
getOnly(Iterable<T> iterable) |
static <T,V> FastListMultimap<V,T> |
groupBy(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
static <T,V,R extends org.eclipse.collections.api.multimap.MutableMultimap<V,T>> |
groupBy(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<? super T,? extends V> function,
R target) |
static <T,V> FastListMultimap<V,T> |
groupByEach(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function) |
static <T,V,R extends org.eclipse.collections.api.multimap.MutableMultimap<V,T>> |
groupByEach(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function,
R target) |
static <K,T> org.eclipse.collections.api.map.MutableMap<K,T> |
groupByUniqueKey(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<? super T,? extends K> function) |
static <K,T,R extends org.eclipse.collections.api.map.MutableMap<K,T>> |
groupByUniqueKey(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<? super T,? extends K> function,
R target) |
static <T> double |
injectInto(double injectValue,
Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.DoubleObjectToDoubleFunction<? super T> function) |
static <T> float |
injectInto(float injectValue,
Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.FloatObjectToFloatFunction<? super T> function) |
static <T> int |
injectInto(int injectValue,
Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.IntObjectToIntFunction<? super T> function) |
static <T,IV> IV |
injectInto(IV injectValue,
Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function2<? super IV,? super T,? extends IV> function) |
static <T> long |
injectInto(long injectValue,
Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.LongObjectToLongFunction<? super T> function) |
static <T,IV,P> IV |
injectIntoWith(IV injectValue,
Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function3<? super IV,? super T,? super P,? extends IV> function,
P parameter) |
static boolean |
isEmpty(Iterable<?> iterable) |
static <T> T |
max(Iterable<T> iterable) |
static <T> T |
max(Iterable<T> iterable,
Comparator<? super T> comparator) |
static <T,V extends Comparable<? super V>> |
maxBy(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
static <T> T |
min(Iterable<T> iterable) |
static <T> T |
min(Iterable<T> iterable,
Comparator<? super T> comparator) |
static <T,V extends Comparable<? super V>> |
minBy(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
static <T> boolean |
noneSatisfy(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,P> boolean |
noneSatisfyWith(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static boolean |
notEmpty(Iterable<?> iterable) |
static <T> org.eclipse.collections.api.partition.list.PartitionMutableList<T> |
partition(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,R extends org.eclipse.collections.api.partition.PartitionMutableCollection<T>> |
partitionWhile(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate,
R target) |
static <T,P> org.eclipse.collections.api.partition.list.PartitionMutableList<T> |
partitionWith(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> org.eclipse.collections.api.list.MutableList<T> |
reject(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,R extends Collection<T>> |
reject(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate,
R targetCollection) |
static <T,P,R extends Collection<T>> |
rejectWith(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter,
R targetCollection) |
static <T> boolean |
removeIf(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T> boolean |
removeIf(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate,
org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure) |
static <T,P> boolean |
removeIfWith(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T,P> boolean |
removeIfWith(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter,
org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure) |
static <T> org.eclipse.collections.api.list.MutableList<T> |
select(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,R extends Collection<T>> |
select(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate,
R targetCollection) |
static <T,IV> org.eclipse.collections.api.tuple.Twin<org.eclipse.collections.api.list.MutableList<T>> |
selectAndRejectWith(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate,
IV injectedValue) |
static <T> org.eclipse.collections.api.list.MutableList<T> |
selectInstancesOf(Iterable<?> iterable,
Class<T> clazz) |
static <T,R extends Collection<T>> |
selectInstancesOf(Iterable<?> iterable,
Class<T> clazz,
R targetCollection) |
static <T,P,R extends Collection<T>> |
selectWith(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P injectedValue,
R targetCollection) |
static <T> String |
stringValueOfItem(Iterable<T> iterable,
T item) |
static <V,T> org.eclipse.collections.api.map.MutableMap<V,BigDecimal> |
sumByBigDecimal(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<T,V> groupBy,
org.eclipse.collections.api.block.function.Function<? super T,BigDecimal> function) |
static <V,T> org.eclipse.collections.api.map.MutableMap<V,BigInteger> |
sumByBigInteger(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<T,V> groupBy,
org.eclipse.collections.api.block.function.Function<? super T,BigInteger> function) |
static <V,T> org.eclipse.collections.api.map.primitive.ObjectDoubleMap<V> |
sumByDouble(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<T,V> groupBy,
org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super T> function) |
static <V,T> org.eclipse.collections.api.map.primitive.ObjectDoubleMap<V> |
sumByFloat(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<T,V> groupBy,
org.eclipse.collections.api.block.function.primitive.FloatFunction<? super T> function) |
static <V,T> org.eclipse.collections.api.map.primitive.ObjectLongMap<V> |
sumByInt(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<T,V> groupBy,
org.eclipse.collections.api.block.function.primitive.IntFunction<? super T> function) |
static <V,T> org.eclipse.collections.api.map.primitive.ObjectLongMap<V> |
sumByLong(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<T,V> groupBy,
org.eclipse.collections.api.block.function.primitive.LongFunction<? super T> function) |
static <T> BigDecimal |
sumOfBigDecimal(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<? super T,BigDecimal> function) |
static <T> BigInteger |
sumOfBigInteger(Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function<? super T,BigInteger> function) |
static <T> double |
sumOfDouble(Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super T> function) |
static <T> double |
sumOfFloat(Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.FloatFunction<? super T> function) |
static <T> long |
sumOfInt(Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.IntFunction<? super T> function) |
static <T> long |
sumOfLong(Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.LongFunction<? super T> function) |
static <T> Collection<T> |
take(Iterable<T> iterable,
int count) |
static <T,R extends Collection<T>> |
take(Iterable<T> iterable,
int count,
R targetCollection) |
static <T,R extends org.eclipse.collections.api.collection.MutableCollection<T>> |
takeWhile(Iterable<T> iterable,
org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate,
R target) |
static <X,Y> org.eclipse.collections.api.list.MutableList<org.eclipse.collections.api.tuple.Pair<X,Y>> |
zip(Iterable<X> xs,
Iterable<Y> ys) |
static <X,Y,R extends Collection<org.eclipse.collections.api.tuple.Pair<X,Y>>> |
zip(Iterable<X> xs,
Iterable<Y> ys,
R target) |
static <T> org.eclipse.collections.api.list.MutableList<org.eclipse.collections.api.tuple.Pair<T,Integer>> |
zipWithIndex(Iterable<T> iterable) |
static <T,R extends Collection<org.eclipse.collections.api.tuple.Pair<T,Integer>>> |
zipWithIndex(Iterable<T> iterable,
R target) |
public static <T> org.eclipse.collections.api.list.MutableList<T> select(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
Iterate.select(Iterable, Predicate)public static <T,IV> org.eclipse.collections.api.tuple.Twin<org.eclipse.collections.api.list.MutableList<T>> selectAndRejectWith(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate, IV injectedValue)
public static <T> org.eclipse.collections.api.partition.list.PartitionMutableList<T> partition(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
Iterate.partition(Iterable, Predicate)public static <T,P> org.eclipse.collections.api.partition.list.PartitionMutableList<T> partitionWith(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
Iterate.partitionWith(Iterable, Predicate2, Object)public static <T,R extends org.eclipse.collections.api.partition.PartitionMutableCollection<T>> R partitionWhile(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate, R target)
public static <T,R extends org.eclipse.collections.api.collection.MutableCollection<T>> R takeWhile(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate, R target)
public static <T,R extends org.eclipse.collections.api.collection.MutableCollection<T>> R dropWhile(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate, R target)
public static <T> int count(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
Iterate.count(Iterable, Predicate)public static <T,IV> int countWith(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate, IV injectedValue)
public static <T,V> org.eclipse.collections.api.list.MutableList<V> collectIf(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate, org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
public static boolean isEmpty(Iterable<?> iterable)
public static boolean notEmpty(Iterable<?> iterable)
public static <T> T getFirst(Iterable<T> iterable)
public static <T> T getLast(Iterable<T> iterable)
public static <T,R extends Collection<T>> R select(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate, R targetCollection)
public static <T,P,R extends Collection<T>> R selectWith(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P injectedValue, R targetCollection)
public static <T> org.eclipse.collections.api.list.MutableList<T> selectInstancesOf(Iterable<?> iterable, Class<T> clazz)
public static <T,R extends Collection<T>> R selectInstancesOf(Iterable<?> iterable, Class<T> clazz, R targetCollection)
public static <T,V,R extends Collection<V>> R collectIf(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate, org.eclipse.collections.api.block.function.Function<? super T,? extends V> function, R targetCollection)
public static <T> org.eclipse.collections.api.list.MutableList<T> reject(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
Iterate.reject(Iterable, Predicate)public static <T,R extends Collection<T>> R reject(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate, R targetCollection)
public static <T,P,R extends Collection<T>> R rejectWith(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter, R targetCollection)
public static <T,V> org.eclipse.collections.api.list.MutableList<V> collect(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
Iterate.collect(Iterable, Function)public static <T,V,R extends Collection<V>> R collect(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<? super T,? extends V> function, R targetCollection)
public static <T> org.eclipse.collections.api.collection.primitive.MutableBooleanCollection collectBoolean(Iterable<T> iterable, org.eclipse.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction)
public static <T,R extends org.eclipse.collections.api.collection.primitive.MutableBooleanCollection> R collectBoolean(Iterable<T> iterable, org.eclipse.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction, R target)
public static <T> org.eclipse.collections.api.collection.primitive.MutableByteCollection collectByte(Iterable<T> iterable, org.eclipse.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction)
public static <T,R extends org.eclipse.collections.api.collection.primitive.MutableByteCollection> R collectByte(Iterable<T> iterable, org.eclipse.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction, R target)
public static <T> org.eclipse.collections.api.collection.primitive.MutableCharCollection collectChar(Iterable<T> iterable, org.eclipse.collections.api.block.function.primitive.CharFunction<? super T> charFunction)
public static <T,R extends org.eclipse.collections.api.collection.primitive.MutableCharCollection> R collectChar(Iterable<T> iterable, org.eclipse.collections.api.block.function.primitive.CharFunction<? super T> charFunction, R target)
public static <T> org.eclipse.collections.api.collection.primitive.MutableDoubleCollection collectDouble(Iterable<T> iterable, org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction)
public static <T,R extends org.eclipse.collections.api.collection.primitive.MutableDoubleCollection> R collectDouble(Iterable<T> iterable, org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction, R target)
public static <T> org.eclipse.collections.api.collection.primitive.MutableFloatCollection collectFloat(Iterable<T> iterable, org.eclipse.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction)
public static <T,R extends org.eclipse.collections.api.collection.primitive.MutableFloatCollection> R collectFloat(Iterable<T> iterable, org.eclipse.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction, R target)
public static <T> org.eclipse.collections.api.collection.primitive.MutableIntCollection collectInt(Iterable<T> iterable, org.eclipse.collections.api.block.function.primitive.IntFunction<? super T> intFunction)
public static <T,R extends org.eclipse.collections.api.collection.primitive.MutableIntCollection> R collectInt(Iterable<T> iterable, org.eclipse.collections.api.block.function.primitive.IntFunction<? super T> intFunction, R target)
public static <T> org.eclipse.collections.api.collection.primitive.MutableLongCollection collectLong(Iterable<T> iterable, org.eclipse.collections.api.block.function.primitive.LongFunction<? super T> longFunction)
public static <T,R extends org.eclipse.collections.api.collection.primitive.MutableLongCollection> R collectLong(Iterable<T> iterable, org.eclipse.collections.api.block.function.primitive.LongFunction<? super T> longFunction, R target)
public static <T> org.eclipse.collections.api.collection.primitive.MutableShortCollection collectShort(Iterable<T> iterable, org.eclipse.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction)
public static <T,R extends org.eclipse.collections.api.collection.primitive.MutableShortCollection> R collectShort(Iterable<T> iterable, org.eclipse.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction, R target)
public static <T,V> org.eclipse.collections.api.list.MutableList<V> flatCollect(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function)
Iterate.flatCollect(Iterable, Function)public static <T,V,R extends Collection<V>> R flatCollect(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function, R targetCollection)
public static <T> void forEach(Iterable<T> iterable, org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure)
Iterate.forEach(Iterable, Procedure)public static <T> void forEachWithIndex(Iterable<T> iterable, org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure)
public static <T,IV> IV injectInto(IV injectValue,
Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function2<? super IV,? super T,? extends IV> function)
public static <T> int injectInto(int injectValue,
Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.IntObjectToIntFunction<? super T> function)
public static <T> long injectInto(long injectValue,
Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.LongObjectToLongFunction<? super T> function)
public static <T> double injectInto(double injectValue,
Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.DoubleObjectToDoubleFunction<? super T> function)
public static <T> float injectInto(float injectValue,
Iterable<T> iterable,
org.eclipse.collections.api.block.function.primitive.FloatObjectToFloatFunction<? super T> function)
@Deprecated public static <T,R extends List<T>> R distinct(Iterable<T> iterable, R targetCollection)
public static <T> org.eclipse.collections.api.list.MutableList<T> distinct(Iterable<T> iterable)
public static <T> org.eclipse.collections.api.list.MutableList<T> distinct(Iterable<T> iterable, org.eclipse.collections.api.block.HashingStrategy<? super T> hashingStrategy)
public static <T> long sumOfInt(Iterable<T> iterable, org.eclipse.collections.api.block.function.primitive.IntFunction<? super T> function)
Iterate.sumOfInt(Iterable, IntFunction)public static <T> long sumOfLong(Iterable<T> iterable, org.eclipse.collections.api.block.function.primitive.LongFunction<? super T> function)
public static <T> double sumOfFloat(Iterable<T> iterable, org.eclipse.collections.api.block.function.primitive.FloatFunction<? super T> function)
public static <T> double sumOfDouble(Iterable<T> iterable, org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super T> function)
public static <T> BigDecimal sumOfBigDecimal(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<? super T,BigDecimal> function)
public static <T> BigInteger sumOfBigInteger(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<? super T,BigInteger> function)
public static <V,T> org.eclipse.collections.api.map.MutableMap<V,BigDecimal> sumByBigDecimal(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<T,V> groupBy, org.eclipse.collections.api.block.function.Function<? super T,BigDecimal> function)
public static <V,T> org.eclipse.collections.api.map.MutableMap<V,BigInteger> sumByBigInteger(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<T,V> groupBy, org.eclipse.collections.api.block.function.Function<? super T,BigInteger> function)
public static <V,T> org.eclipse.collections.api.map.primitive.ObjectLongMap<V> sumByInt(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<T,V> groupBy, org.eclipse.collections.api.block.function.primitive.IntFunction<? super T> function)
public static <V,T> org.eclipse.collections.api.map.primitive.ObjectLongMap<V> sumByLong(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<T,V> groupBy, org.eclipse.collections.api.block.function.primitive.LongFunction<? super T> function)
public static <V,T> org.eclipse.collections.api.map.primitive.ObjectDoubleMap<V> sumByFloat(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<T,V> groupBy, org.eclipse.collections.api.block.function.primitive.FloatFunction<? super T> function)
public static <V,T> org.eclipse.collections.api.map.primitive.ObjectDoubleMap<V> sumByDouble(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<T,V> groupBy, org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super T> function)
public static <T,IV,P> IV injectIntoWith(IV injectValue,
Iterable<T> iterable,
org.eclipse.collections.api.block.function.Function3<? super IV,? super T,? super P,? extends IV> function,
P parameter)
public static <T> boolean anySatisfy(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,P> boolean anySatisfyWith(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
public static <T> boolean allSatisfy(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,P> boolean allSatisfyWith(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
public static <T> boolean noneSatisfy(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,P> boolean noneSatisfyWith(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
public static <T> T detect(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,P> T detectWith(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
public static <T> boolean removeIf(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
Iterate.removeIf(Iterable, Predicate)public static <T,P> boolean removeIfWith(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
public static <T> boolean removeIf(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate, org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure)
public static <T,P> boolean removeIfWith(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter, org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure)
public static <T> int detectIndex(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
Iterate.detectIndex(Iterable, Predicate)public static <T,IV> int detectIndexWith(Iterable<T> iterable, org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate, IV injectedValue)
public static <T,P> void forEachWith(Iterable<T> iterable, org.eclipse.collections.api.block.procedure.Procedure2<? super T,? super P> procedure, P parameter)
public static <T,P,V> org.eclipse.collections.api.list.MutableList<V> collectWith(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function2<? super T,? super P,? extends V> function, P parameter)
public static <T,P,A,R extends Collection<A>> R collectWith(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function2<? super T,? super P,? extends A> function, P parameter, R targetCollection)
public static <T> Collection<T> take(Iterable<T> iterable, int count)
Iterate.take(Iterable, int)public static <T,R extends Collection<T>> R take(Iterable<T> iterable, int count, R targetCollection)
Iterate.take(Iterable, int)public static <T> Collection<T> drop(Iterable<T> list, int count)
Iterate.drop(Iterable, int)public static <T,R extends Collection<T>> R drop(Iterable<T> iterable, int count, R targetCollection)
Iterate.drop(Iterable, int)public static <T> void appendString(Iterable<T> iterable, Appendable appendable, String start, String separator, String end)
RichIterable.appendString(Appendable, String, String, String)public static <T,V> FastListMultimap<V,T> groupBy(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
Iterate.groupBy(Iterable, Function)public static <T,V,R extends org.eclipse.collections.api.multimap.MutableMultimap<V,T>> R groupBy(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<? super T,? extends V> function, R target)
public static <T,V> FastListMultimap<V,T> groupByEach(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function)
Iterate.groupByEach(Iterable, Function)public static <T,V,R extends org.eclipse.collections.api.multimap.MutableMultimap<V,T>> R groupByEach(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function, R target)
public static <K,T> org.eclipse.collections.api.map.MutableMap<K,T> groupByUniqueKey(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<? super T,? extends K> function)
public static <K,T,R extends org.eclipse.collections.api.map.MutableMap<K,T>> R groupByUniqueKey(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<? super T,? extends K> function, R target)
public static <T> T getOnly(Iterable<T> iterable)
public static <X,Y> org.eclipse.collections.api.list.MutableList<org.eclipse.collections.api.tuple.Pair<X,Y>> zip(Iterable<X> xs, Iterable<Y> ys)
Iterate.zip(Iterable, Iterable)public static <X,Y,R extends Collection<org.eclipse.collections.api.tuple.Pair<X,Y>>> R zip(Iterable<X> xs, Iterable<Y> ys, R target)
public static <T> org.eclipse.collections.api.list.MutableList<org.eclipse.collections.api.tuple.Pair<T,Integer>> zipWithIndex(Iterable<T> iterable)
Iterate.zipWithIndex(Iterable)public static <T,R extends Collection<org.eclipse.collections.api.tuple.Pair<T,Integer>>> R zipWithIndex(Iterable<T> iterable, R target)
public static <T> org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.RichIterable<T>> chunk(Iterable<T> iterable, int size)
Iterate.chunk(Iterable, int)public static <T,V extends Comparable<? super V>> T maxBy(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
public static <T,V extends Comparable<? super V>> T minBy(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
public static <T> T min(Iterable<T> iterable, Comparator<? super T> comparator)
Iterate.min(Iterable, Comparator)public static <T> T max(Iterable<T> iterable, Comparator<? super T> comparator)
Iterate.max(Iterable, Comparator)public static <T> T min(Iterable<T> iterable)
Iterate.min(Iterable)public static <T> T max(Iterable<T> iterable)
Iterate.max(Iterable)public static <T> void forEach(Iterable<T> iterable, int from, int to, org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure)
public static <T> void forEachWithIndex(List<T> iterable, int from, int to, org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure)
public static <T,K,V> org.eclipse.collections.api.map.MutableMap<K,V> aggregateInPlaceBy(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<? super T,? extends K> groupBy, org.eclipse.collections.api.block.function.Function0<? extends V> zeroValueFactory, org.eclipse.collections.api.block.procedure.Procedure2<? super V,? super T> mutatingAggregator)
public static <T,K,V> org.eclipse.collections.api.map.MutableMap<K,V> aggregateBy(Iterable<T> iterable, org.eclipse.collections.api.block.function.Function<? super T,? extends K> groupBy, org.eclipse.collections.api.block.function.Function0<? extends V> zeroValueFactory, org.eclipse.collections.api.block.function.Function2<? super V,? super T,? extends V> nonMutatingAggregator)
Copyright © 2004–2018. All rights reserved.