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

public final Class IntIteratorIterate

extends Object
Class Inheritance
Imports
java.util.Collection, org.eclipse.collections.api.block.function.primitive.IntToObjectFunction, .ObjectIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.IntPredicate, org.eclipse.collections.api.block.procedure.primitive.IntProcedure, org.eclipse.collections.api.collection.primitive.MutableIntCollection, org.eclipse.collections.api.iterator.IntIterator

The IntIteratorIterate class provides implementations of the various iteration patterns for use with the IntIterator. 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(IntIterator iterator, IntPredicate predicate)

public static boolean
anySatisfy(IntIterator iterator, IntPredicate predicate)

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

public static int
count(IntIterator iterator, IntPredicate predicate)

public static int
detectIfNone(IntIterator iterator, IntPredicate predicate, int ifNone)

public static void
forEach(IntIterator iterator, IntProcedure procedure)

public static <T> T
injectInto(IntIterator iterator, T injectedValue, ObjectIntToObjectFunction<? super T, ? extends T> function)

public static int
max(IntIterator iterator)

public static int
min(IntIterator iterator)

public static boolean
noneSatisfy(IntIterator iterator, IntPredicate predicate)

public static <R extends MutableIntCollection> R
reject(IntIterator iterator, IntPredicate predicate, R targetCollection)

public static <R extends MutableIntCollection> R
select(IntIterator iterator, IntPredicate predicate, R targetCollection)

public static long
sum(IntIterator iterator)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

IntIteratorIterateback to summary
private IntIteratorIterate()

Method Detail

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