@FunctionalInterface
public interface CharIterable
extends java.lang.Iterable<java.lang.Character>
| Modifier and Type | Method and Description |
|---|---|
default void |
forEach(java.util.function.Consumer<? super java.lang.Character> consumer)
Perform the given action for each
char in this iterable. |
default void |
forEachChar(CharConsumer consumer)
Perform the given action for each
char in this iterable. |
static CharIterable |
from(java.lang.Character... characters) |
static CharIterable |
from(CharIterator iterator) |
static CharIterable |
from(java.util.stream.IntStream charStream) |
static CharIterable |
from(java.lang.Iterable<java.lang.Character> iterable) |
static CharIterable |
from(java.util.Iterator<java.lang.Character> iterator) |
static CharIterable |
from(java.lang.Object container)
Converts a container of some kind into a possibly once-only
CharIterable. |
static CharIterable |
from(java.util.stream.Stream<java.lang.Character> stream) |
CharIterator |
iterator() |
static CharIterable |
of(char... characters) |
CharIterator iterator()
iterator in interface java.lang.Iterable<java.lang.Character>default void forEach(java.util.function.Consumer<? super java.lang.Character> consumer)
char in this iterable.forEach in interface java.lang.Iterable<java.lang.Character>default void forEachChar(CharConsumer consumer)
char in this iterable.static CharIterable from(java.lang.Object container)
CharIterable.container - the non-null container to turn into an CharIterable, can be one of Iterable,
CharIterable, Iterator, CharIterator, Stream of Characters, IntStream, array of Characters, or char array.CharIterable.java.lang.ClassCastException - if the container is not one of the permitted classes.static CharIterable from(java.lang.Iterable<java.lang.Character> iterable)
static CharIterable from(CharIterator iterator)
static CharIterable from(java.util.Iterator<java.lang.Character> iterator)
static CharIterable from(java.util.stream.IntStream charStream)
static CharIterable of(char... characters)
static CharIterable from(java.lang.Character... characters)
static CharIterable from(java.util.stream.Stream<java.lang.Character> stream)