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

public final Class ShortIteratorIterate

extends Object
Class Inheritance
Imports
java.util.Collection, org.eclipse.collections.api.block.function.primitive.ShortToObjectFunction, .ObjectShortToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.ShortPredicate, org.eclipse.collections.api.block.procedure.primitive.ShortProcedure, org.eclipse.collections.api.collection.primitive.MutableShortCollection, org.eclipse.collections.api.iterator.ShortIterator

The ShortIteratorIterate class provides implementations of the various iteration patterns for use with the ShortIterator. 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
public static boolean
public static <V, R extends Collection<V>> R
collect(ShortIterator iterator, ShortToObjectFunction<? extends V> function, R targetCollection)

public static int
count(ShortIterator iterator, ShortPredicate predicate)

public static short
detectIfNone(ShortIterator iterator, ShortPredicate predicate, short ifNone)

public static void
forEach(ShortIterator iterator, ShortProcedure procedure)

public static <T> T
injectInto(ShortIterator iterator, T injectedValue, ObjectShortToObjectFunction<? super T, ? extends T> function)

public static short
max(ShortIterator iterator)

public static short
min(ShortIterator iterator)

public static boolean
public static <R extends MutableShortCollection> R
reject(ShortIterator iterator, ShortPredicate predicate, R targetCollection)

public static <R extends MutableShortCollection> R
select(ShortIterator iterator, ShortPredicate predicate, R targetCollection)

public static long
sum(ShortIterator iterator)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ShortIteratorIterateback to summary
private ShortIteratorIterate()

Method Detail

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