Class LongIteratorIterate
java.lang.Object
org.eclipse.collections.impl.utility.internal.primitive.LongIteratorIterate
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 TypeMethodDescriptionstatic booleanallSatisfy(LongIterator iterator, LongPredicate predicate) static booleananySatisfy(LongIterator iterator, LongPredicate predicate) static <V,R extends Collection<V>>
Rcollect(LongIterator iterator, LongToObjectFunction<? extends V> function, R targetCollection) static intcount(LongIterator iterator, LongPredicate predicate) static longdetectIfNone(LongIterator iterator, LongPredicate predicate, long ifNone) static voidforEach(LongIterator iterator, LongProcedure procedure) static <T> TinjectInto(LongIterator iterator, T injectedValue, ObjectLongToObjectFunction<? super T, ? extends T> function) static longmax(LongIterator iterator) static longmin(LongIterator iterator) static booleannoneSatisfy(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 longsum(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
-