Class LongIteratorIterate
- java.lang.Object
-
- org.eclipse.collections.impl.utility.internal.primitive.LongIteratorIterate
-
public final class LongIteratorIterate extends java.lang.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
-
-
Constructor Summary
Constructors Modifier Constructor Description private
LongIteratorIterate()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
allSatisfy(LongIterator iterator, LongPredicate predicate)
static boolean
anySatisfy(LongIterator iterator, LongPredicate predicate)
static <V,R extends java.util.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 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 java.util.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)
-
-