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