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