public interface PrimitiveCharIterable
extends java.lang.Iterable<java.lang.Character>
for creating one on the fly| Modifier and Type | Field and Description |
|---|---|
static PrimitiveCharIterable |
EMPTY
Empty iterable of primitive char values.
|
static PrimitiveCharIterator |
EMPTY_CHAR_ITERATOR
Empty iterator of primitive char values.
|
| Modifier and Type | Method and Description |
|---|---|
default PrimitiveIntIterable |
asIntIterable()
View this byte iterable as an int iterable.
|
default PrimitiveLongIterable |
asLongIterable()
View this byte iterable as a long iterable.
|
PrimitiveCharIterator |
charIterator()
Get a primitive char iterator.
|
default boolean |
containsChar(char value)
Does this char iterable contain the given value?
|
default void |
forEachChar(CharConsumer action)
Invoke the given action with each char value in this iterable.
|
default <E extends java.lang.Exception> |
forEachCharFragile(FragileCharConsumer<E> action)
Invoke the given fragile action with each value in this iterable.
|
default java.util.Iterator<java.lang.Character> |
iterator() |
static final PrimitiveCharIterator EMPTY_CHAR_ITERATOR
PrimitiveCharIterator.EMPTYstatic final PrimitiveCharIterable EMPTY
@NotNull PrimitiveCharIterator charIterator()
@NotNull default java.util.Iterator<java.lang.Character> iterator()
iterator in interface java.lang.Iterable<java.lang.Character>default void forEachChar(@NotNull CharConsumer action)
action - action to be call for each char value in sequemce.default <E extends java.lang.Exception> void forEachCharFragile(@NotNull FragileCharConsumer<E> action) throws E extends java.lang.Exception
E - checked exception thrown by actionaction - action to be called for each value in sequenceE - if action throws itE extends java.lang.Exceptiondefault boolean containsChar(char value)
value - value to check fortrue if the value is contained in this iterable, false if not@NotNull default PrimitiveIntIterable asIntIterable()
@NotNull default PrimitiveLongIterable asLongIterable()