| Modifier and Type | Field and Description |
|---|---|
static CharIterator |
EMPTY |
| Constructor and Description |
|---|
CharIterator() |
| Modifier and Type | Method and Description |
|---|---|
static CharIterator |
empty() |
<E extends Exception> |
foreachIndexed(Throwables.IndexedCharConsumer<E> action) |
void |
forEachRemaining(Consumer<? super Character> action)
Deprecated.
|
<E extends Exception> |
foreachRemaining(Throwables.CharConsumer<E> action) |
static CharIterator |
generate(BooleanSupplier hasNext,
CharSupplier supplier) |
static CharIterator |
generate(CharSupplier supplier)
Returns an infinite
CharIterator. |
ObjIterator<IndexedChar> |
indexed() |
ObjIterator<IndexedChar> |
indexed(long startIndex) |
Character |
next()
Deprecated.
|
abstract char |
nextChar() |
static CharIterator |
of(char... a) |
static CharIterator |
of(char[] a,
int fromIndex,
int toIndex) |
static CharIterator |
of(Supplier<? extends CharIterator> iteratorSupplier)
Lazy evaluation.
|
static CharIterator |
oF(Supplier<char[]> arraySupplier)
Lazy evaluation.
|
void |
remove()
Deprecated.
- UnsupportedOperationException
|
<C extends Collection<T>> |
toCollection(Supplier<? extends C> supplier) |
ImmutableList<T> |
toImmutableList() |
ImmutableSet<T> |
toImmutableSet() |
Set<T> |
toSet() |
public static final CharIterator EMPTY
public static CharIterator empty()
@SafeVarargs public static CharIterator of(char... a)
a - public static CharIterator of(char[] a, int fromIndex, int toIndex)
a - fromIndex - toIndex - public static CharIterator of(Supplier<? extends CharIterator> iteratorSupplier)
iteratorSupplier - public static CharIterator oF(Supplier<char[]> arraySupplier)
arraySupplier - public static CharIterator generate(CharSupplier supplier)
CharIterator.supplier - public static CharIterator generate(BooleanSupplier hasNext, CharSupplier supplier)
hasNext - supplier - @Deprecated public Character next()
public abstract char nextChar()
@Beta public ObjIterator<IndexedChar> indexed()
@Beta public ObjIterator<IndexedChar> indexed(long startIndex)
@Deprecated public void forEachRemaining(Consumer<? super Character> action)
action - public <E extends Exception> void foreachRemaining(Throwables.CharConsumer<E> action) throws E extends Exception
E - action - E - the eE extends Exceptionpublic <E extends Exception> void foreachIndexed(Throwables.IndexedCharConsumer<E> action) throws E extends Exception
E - action - E - the eE extends Exception@Deprecated public void remove() throws UnsupportedOperationException
remove in interface Iterator<T>UnsupportedOperationExceptionpublic Set<T> toSet()
public <C extends Collection<T>> C toCollection(Supplier<? extends C> supplier)
C - supplier - public ImmutableList<T> toImmutableList()
public ImmutableSet<T> toImmutableSet()
Copyright © 2021. All rights reserved.