Class ShortIteratorIterate
- java.lang.Object
-
- org.eclipse.collections.impl.utility.internal.primitive.ShortIteratorIterate
-
public final class ShortIteratorIterate extends java.lang.Object
The ShortIteratorIterate class provides implementations of the various iteration patterns for use with theShortIterator
. This file was automatically generated from template file primitiveIteratorIterate.stg.- Since:
- 5.0
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShortIteratorIterate()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
allSatisfy(ShortIterator iterator, ShortPredicate predicate)
static boolean
anySatisfy(ShortIterator iterator, ShortPredicate predicate)
static <V,R extends java.util.Collection<V>>
Rcollect(ShortIterator iterator, ShortToObjectFunction<? extends V> function, R targetCollection)
static int
count(ShortIterator iterator, ShortPredicate predicate)
static short
detectIfNone(ShortIterator iterator, ShortPredicate predicate, short ifNone)
static void
forEach(ShortIterator iterator, ShortProcedure procedure)
static <T> T
injectInto(ShortIterator iterator, T injectedValue, ObjectShortToObjectFunction<? super T,? extends T> function)
static short
max(ShortIterator iterator)
static short
min(ShortIterator iterator)
static boolean
noneSatisfy(ShortIterator iterator, ShortPredicate predicate)
static <R extends MutableShortCollection>
Rreject(ShortIterator iterator, ShortPredicate predicate, R targetCollection)
static <R extends MutableShortCollection>
Rselect(ShortIterator iterator, ShortPredicate predicate, R targetCollection)
static long
sum(ShortIterator iterator)
-
-
-
Method Detail
-
forEach
public static void forEach(ShortIterator iterator, ShortProcedure procedure)
-
select
public static <R extends MutableShortCollection> R select(ShortIterator iterator, ShortPredicate predicate, R targetCollection)
-
reject
public static <R extends MutableShortCollection> R reject(ShortIterator iterator, ShortPredicate predicate, R targetCollection)
-
collect
public static <V,R extends java.util.Collection<V>> R collect(ShortIterator iterator, ShortToObjectFunction<? extends V> function, R targetCollection)
-
detectIfNone
public static short detectIfNone(ShortIterator iterator, ShortPredicate predicate, short ifNone)
-
count
public static int count(ShortIterator iterator, ShortPredicate predicate)
-
anySatisfy
public static boolean anySatisfy(ShortIterator iterator, ShortPredicate predicate)
-
allSatisfy
public static boolean allSatisfy(ShortIterator iterator, ShortPredicate predicate)
-
noneSatisfy
public static boolean noneSatisfy(ShortIterator iterator, ShortPredicate predicate)
-
injectInto
public static <T> T injectInto(ShortIterator iterator, T injectedValue, ObjectShortToObjectFunction<? super T,? extends T> function)
-
sum
public static long sum(ShortIterator iterator)
-
max
public static short max(ShortIterator iterator)
-
min
public static short min(ShortIterator iterator)
-
-