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 booleanallSatisfy(ShortIterator iterator, ShortPredicate predicate) static booleananySatisfy(ShortIterator iterator, ShortPredicate predicate) static <V,R extends Collection<V>>
Rcollect(ShortIterator iterator, ShortToObjectFunction<? extends V> function, R targetCollection) static intcount(ShortIterator iterator, ShortPredicate predicate) static shortdetectIfNone(ShortIterator iterator, ShortPredicate predicate, short ifNone) static voidforEach(ShortIterator iterator, ShortProcedure procedure) static <T> TinjectInto(ShortIterator iterator, T injectedValue, ObjectShortToObjectFunction<? super T, ? extends T> function) static shortmax(ShortIterator iterator) static shortmin(ShortIterator iterator) static booleannoneSatisfy(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 longsum(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
-