public interface IntIterable
extends java.lang.Iterable<java.lang.Integer>
Iterable that reduces (un)boxing| Modifier and Type | Method and Description |
|---|---|
default void |
forEach(java.util.function.Consumer<? super java.lang.Integer> action)
Deprecated.
Please use the corresponding type-specific function instead.
|
default void |
forEach(IntConsumer action)
A Type Specific foreach function that reduces (un)boxing
|
IntIterator |
iterator()
Returns an iterator over elements of type
T. |
default IntSplititerator |
spliterator()
A Type Specific Type Splititerator to reduce boxing/unboxing
|
IntIterator iterator()
T.iterator in interface java.lang.Iterable<java.lang.Integer>default void forEach(IntConsumer 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.Integer> action)
This default implementation delegates to the corresponding type-specific function.
forEach in interface java.lang.Iterable<java.lang.Integer>default IntSplititerator spliterator()
spliterator in interface java.lang.Iterable<java.lang.Integer>