Top Description Constructors Methods
org.eclipse.collections.impl.utility.internal.primitive

public final Class LongIteratorIterate

extends Object
Class Inheritance
Imports
java.util.Collection, org.eclipse.collections.api.block.function.primitive.LongToObjectFunction, .ObjectLongToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.LongPredicate, org.eclipse.collections.api.block.procedure.primitive.LongProcedure, org.eclipse.collections.api.collection.primitive.MutableLongCollection, org.eclipse.collections.api.iterator.LongIterator

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static boolean
allSatisfy(LongIterator iterator, LongPredicate predicate)

public static boolean
anySatisfy(LongIterator iterator, LongPredicate predicate)

public static <V, R extends Collection<V>> R
collect(LongIterator iterator, LongToObjectFunction<? extends V> function, R targetCollection)

public static int
count(LongIterator iterator, LongPredicate predicate)

public static long
detectIfNone(LongIterator iterator, LongPredicate predicate, long ifNone)

public static void
forEach(LongIterator iterator, LongProcedure procedure)

public static <T> T
injectInto(LongIterator iterator, T injectedValue, ObjectLongToObjectFunction<? super T, ? extends T> function)

public static long
max(LongIterator iterator)

public static long
min(LongIterator iterator)

public static boolean
noneSatisfy(LongIterator iterator, LongPredicate predicate)

public static <R extends MutableLongCollection> R
reject(LongIterator iterator, LongPredicate predicate, R targetCollection)

public static <R extends MutableLongCollection> R
select(LongIterator iterator, LongPredicate predicate, R targetCollection)

public static long
sum(LongIterator iterator)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

LongIteratorIterateback to summary
private LongIteratorIterate()

Method Detail

allSatisfyback to summary
public static boolean allSatisfy(LongIterator iterator, LongPredicate predicate)
anySatisfyback to summary
public static boolean anySatisfy(LongIterator iterator, LongPredicate predicate)
collectback to summary
public static <V, R extends Collection<V>> R collect(LongIterator iterator, LongToObjectFunction<? extends V> function, R targetCollection)
countback to summary
public static int count(LongIterator iterator, LongPredicate predicate)
detectIfNoneback to summary
public static long detectIfNone(LongIterator iterator, LongPredicate predicate, long ifNone)
forEachback to summary
public static void forEach(LongIterator iterator, LongProcedure procedure)
injectIntoback to summary
public static <T> T injectInto(LongIterator iterator, T injectedValue, ObjectLongToObjectFunction<? super T, ? extends T> function)
maxback to summary
public static long max(LongIterator iterator)
minback to summary
public static long min(LongIterator iterator)
noneSatisfyback to summary
public static boolean noneSatisfy(LongIterator iterator, LongPredicate predicate)
rejectback to summary
public static <R extends MutableLongCollection> R reject(LongIterator iterator, LongPredicate predicate, R targetCollection)
selectback to summary
public static <R extends MutableLongCollection> R select(LongIterator iterator, LongPredicate predicate, R targetCollection)
sumback to summary
public static long sum(LongIterator iterator)