public interface ByteIterable
extends java.lang.Iterable<java.lang.Byte>
Iterable that reduces (un)boxing| Modifier and Type | Method and Description |
|---|---|
default void |
forEach(ByteConsumer action)
A Type Specific foreach function that reduces (un)boxing
|
default void |
forEach(java.util.function.Consumer<? super java.lang.Byte> action)
Deprecated.
Please use the corresponding type-specific function instead.
|
ByteIterator |
iterator()
Returns an iterator over elements of type
T. |
default ByteSplititerator |
spliterator()
A Type Specific Type Splititerator to reduce boxing/unboxing
|
ByteIterator iterator()
T.iterator in interface java.lang.Iterable<java.lang.Byte>default void forEach(ByteConsumer action)
action - The action to be performed for each elementjava.lang.NullPointerException - if the specified action is nullIterable.forEach(Consumer)The default implementation behaves as if:
iterator().forEachRemaining(action);
@Deprecated default void forEach(java.util.function.Consumer<? super java.lang.Byte> action)
This default implementation delegates to the corresponding type-specific function.
forEach in interface java.lang.Iterable<java.lang.Byte>default ByteSplititerator spliterator()
spliterator in interface java.lang.Iterable<java.lang.Byte>