Class ByteIteratorIterate
java.lang.Object
org.eclipse.collections.impl.utility.internal.primitive.ByteIteratorIterate
public final class ByteIteratorIterate extends Object
The ByteIteratorIterate class provides implementations of the various iteration patterns for use with the
ByteIterator
.
This file was automatically generated from template file primitiveIteratorIterate.stg.- Since:
- 5.0
-
Method Summary
Modifier and Type Method Description static boolean
allSatisfy(ByteIterator iterator, BytePredicate predicate)
static boolean
anySatisfy(ByteIterator iterator, BytePredicate predicate)
static <V, R extends Collection<V>>
Rcollect(ByteIterator iterator, ByteToObjectFunction<? extends V> function, R targetCollection)
static int
count(ByteIterator iterator, BytePredicate predicate)
static byte
detectIfNone(ByteIterator iterator, BytePredicate predicate, byte ifNone)
static void
forEach(ByteIterator iterator, ByteProcedure procedure)
static <T> T
injectInto(ByteIterator iterator, T injectedValue, ObjectByteToObjectFunction<? super T,? extends T> function)
static byte
max(ByteIterator iterator)
static byte
min(ByteIterator iterator)
static boolean
noneSatisfy(ByteIterator iterator, BytePredicate predicate)
static <R extends MutableByteCollection>
Rreject(ByteIterator iterator, BytePredicate predicate, R targetCollection)
static <R extends MutableByteCollection>
Rselect(ByteIterator iterator, BytePredicate predicate, R targetCollection)
static long
sum(ByteIterator iterator)
-
Method Details
-
forEach
-
select
public static <R extends MutableByteCollection> R select(ByteIterator iterator, BytePredicate predicate, R targetCollection) -
reject
public static <R extends MutableByteCollection> R reject(ByteIterator iterator, BytePredicate predicate, R targetCollection) -
collect
public static <V, R extends Collection<V>> R collect(ByteIterator iterator, ByteToObjectFunction<? extends V> function, R targetCollection) -
detectIfNone
-
count
-
anySatisfy
-
allSatisfy
-
noneSatisfy
-
injectInto
public static <T> T injectInto(ByteIterator iterator, T injectedValue, ObjectByteToObjectFunction<? super T,? extends T> function) -
sum
-
max
-
min
-