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 boolean
allSatisfy(IntIterator iterator, IntPredicate predicate)
static boolean
anySatisfy(IntIterator iterator, IntPredicate predicate)
static <V, R extends Collection<V>>
Rcollect(IntIterator iterator, IntToObjectFunction<? extends V> function, R targetCollection)
static int
count(IntIterator iterator, IntPredicate predicate)
static int
detectIfNone(IntIterator iterator, IntPredicate predicate, int ifNone)
static void
forEach(IntIterator iterator, IntProcedure procedure)
static <T> T
injectInto(IntIterator iterator, T injectedValue, ObjectIntToObjectFunction<? super T,? extends T> function)
static int
max(IntIterator iterator)
static int
min(IntIterator iterator)
static boolean
noneSatisfy(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 long
sum(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
-