Class ShortIteratorIterate
- java.lang.Object
-
- org.eclipse.collections.impl.utility.internal.primitive.ShortIteratorIterate
-
public final class ShortIteratorIterate extends 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
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 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 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)
-
-