Class IntIteratorIterate
java.lang.Object
org.eclipse.collections.impl.utility.internal.primitive.IntIteratorIterate
public final class IntIteratorIterate extends Object
The IntIteratorIterate class provides implementations of the various iteration patterns for use with the
IntIterator.
This file was automatically generated from template file primitiveIteratorIterate.stg.- Since:
- 5.0
-
Method Summary
Modifier and Type Method Description static booleanallSatisfy(IntIterator iterator, IntPredicate predicate)static booleananySatisfy(IntIterator iterator, IntPredicate predicate)static <V, R extends Collection<V>>
Rcollect(IntIterator iterator, IntToObjectFunction<? extends V> function, R targetCollection)static intcount(IntIterator iterator, IntPredicate predicate)static intdetectIfNone(IntIterator iterator, IntPredicate predicate, int ifNone)static voidforEach(IntIterator iterator, IntProcedure procedure)static <T> TinjectInto(IntIterator iterator, T injectedValue, ObjectIntToObjectFunction<? super T,? extends T> function)static intmax(IntIterator iterator)static intmin(IntIterator iterator)static booleannoneSatisfy(IntIterator iterator, IntPredicate predicate)static <R extends MutableIntCollection>
Rreject(IntIterator iterator, IntPredicate predicate, R targetCollection)static <R extends MutableIntCollection>
Rselect(IntIterator iterator, IntPredicate predicate, R targetCollection)static longsum(IntIterator iterator)
-
Method Details
-
forEach
-
select
public static <R extends MutableIntCollection> R select(IntIterator iterator, IntPredicate predicate, R targetCollection) -
reject
public static <R extends MutableIntCollection> R reject(IntIterator iterator, IntPredicate predicate, R targetCollection) -
collect
public static <V, R extends Collection<V>> R collect(IntIterator iterator, IntToObjectFunction<? extends V> function, R targetCollection) -
detectIfNone
-
count
-
anySatisfy
-
allSatisfy
-
noneSatisfy
-
injectInto
public static <T> T injectInto(IntIterator iterator, T injectedValue, ObjectIntToObjectFunction<? super T,? extends T> function) -
sum
-
max
-
min
-