Class LongIteratorIterate
java.lang.Object
org.eclipse.collections.impl.utility.internal.primitive.LongIteratorIterate
public final class LongIteratorIterate extends Object
The LongIteratorIterate class provides implementations of the various iteration patterns for use with the
LongIterator
.
This file was automatically generated from template file primitiveIteratorIterate.stg.- Since:
- 5.0
-
Method Summary
Modifier and Type Method Description static boolean
allSatisfy(LongIterator iterator, LongPredicate predicate)
static boolean
anySatisfy(LongIterator iterator, LongPredicate predicate)
static <V, R extends Collection<V>>
Rcollect(LongIterator iterator, LongToObjectFunction<? extends V> function, R targetCollection)
static int
count(LongIterator iterator, LongPredicate predicate)
static long
detectIfNone(LongIterator iterator, LongPredicate predicate, long ifNone)
static void
forEach(LongIterator iterator, LongProcedure procedure)
static <T> T
injectInto(LongIterator iterator, T injectedValue, ObjectLongToObjectFunction<? super T,? extends T> function)
static long
max(LongIterator iterator)
static long
min(LongIterator iterator)
static boolean
noneSatisfy(LongIterator iterator, LongPredicate predicate)
static <R extends MutableLongCollection>
Rreject(LongIterator iterator, LongPredicate predicate, R targetCollection)
static <R extends MutableLongCollection>
Rselect(LongIterator iterator, LongPredicate predicate, R targetCollection)
static long
sum(LongIterator iterator)
-
Method Details
-
forEach
-
select
public static <R extends MutableLongCollection> R select(LongIterator iterator, LongPredicate predicate, R targetCollection) -
reject
public static <R extends MutableLongCollection> R reject(LongIterator iterator, LongPredicate predicate, R targetCollection) -
collect
public static <V, R extends Collection<V>> R collect(LongIterator iterator, LongToObjectFunction<? extends V> function, R targetCollection) -
detectIfNone
-
count
-
anySatisfy
-
allSatisfy
-
noneSatisfy
-
injectInto
public static <T> T injectInto(LongIterator iterator, T injectedValue, ObjectLongToObjectFunction<? super T,? extends T> function) -
sum
-
max
-
min
-