Class CharIteratorIterate
- java.lang.Object
-
- org.eclipse.collections.impl.utility.internal.primitive.CharIteratorIterate
-
public final class CharIteratorIterate extends java.lang.Object
The CharIteratorIterate class provides implementations of the various iteration patterns for use with theCharIterator
. This file was automatically generated from template file primitiveIteratorIterate.stg.- Since:
- 5.0
-
-
Constructor Summary
Constructors Modifier Constructor Description private
CharIteratorIterate()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
allSatisfy(CharIterator iterator, CharPredicate predicate)
static boolean
anySatisfy(CharIterator iterator, CharPredicate predicate)
static <V,R extends java.util.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 Detail
-
forEach
public static void forEach(CharIterator iterator, CharProcedure procedure)
-
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 java.util.Collection<V>> R collect(CharIterator iterator, CharToObjectFunction<? extends V> function, R targetCollection)
-
detectIfNone
public static char detectIfNone(CharIterator iterator, CharPredicate predicate, char ifNone)
-
count
public static int count(CharIterator iterator, CharPredicate predicate)
-
anySatisfy
public static boolean anySatisfy(CharIterator iterator, CharPredicate predicate)
-
allSatisfy
public static boolean allSatisfy(CharIterator iterator, CharPredicate predicate)
-
noneSatisfy
public static boolean noneSatisfy(CharIterator iterator, CharPredicate predicate)
-
injectInto
public static <T> T injectInto(CharIterator iterator, T injectedValue, ObjectCharToObjectFunction<? super T,? extends T> function)
-
sum
public static long sum(CharIterator iterator)
-
max
public static char max(CharIterator iterator)
-
min
public static char min(CharIterator iterator)
-
-