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 theLongIterator. This file was automatically generated from template file primitiveIteratorIterate.stg.- Since:
- 5.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
forEach
public static void forEach(LongIterator iterator, LongProcedure procedure)
-
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
public static long detectIfNone(LongIterator iterator, LongPredicate predicate, long ifNone)
-
count
public static int count(LongIterator iterator, LongPredicate predicate)
-
anySatisfy
public static boolean anySatisfy(LongIterator iterator, LongPredicate predicate)
-
allSatisfy
public static boolean allSatisfy(LongIterator iterator, LongPredicate predicate)
-
noneSatisfy
public static boolean noneSatisfy(LongIterator iterator, LongPredicate predicate)
-
injectInto
public static <T> T injectInto(LongIterator iterator, T injectedValue, ObjectLongToObjectFunction<? super T,? extends T> function)
-
sum
public static long sum(LongIterator iterator)
-
max
public static long max(LongIterator iterator)
-
min
public static long min(LongIterator iterator)
-
-