Class ShortIteratorIterate
java.lang.Object
org.eclipse.collections.impl.utility.internal.primitive.ShortIteratorIterate
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
allSatisfy
(ShortIterator iterator, ShortPredicate predicate) static boolean
anySatisfy
(ShortIterator iterator, ShortPredicate predicate) static <V,
R extends 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 Details
-
forEach
-
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 Collection<V>> R collect(ShortIterator iterator, ShortToObjectFunction<? extends V> function, R targetCollection) -
detectIfNone
-
count
-
anySatisfy
-
allSatisfy
-
noneSatisfy
-
injectInto
public static <T> T injectInto(ShortIterator iterator, T injectedValue, ObjectShortToObjectFunction<? super T, ? extends T> function) -
sum
-
max
-
min
-