@FunctionalInterface
public interface IntIterable
extends java.lang.Iterable<java.lang.Integer>
| Modifier and Type | Method and Description |
|---|---|
default void |
forEach(java.util.function.Consumer<? super java.lang.Integer> consumer)
Performs the given action for each
int in this iterable. |
default void |
forEachInt(java.util.function.IntConsumer consumer)
Performs the given action for each
int in this iterable. |
static IntIterable |
from(java.lang.Integer... integers) |
static IntIterable |
from(java.lang.Iterable<java.lang.Integer> iterable) |
IntIterator |
iterator() |
static IntIterable |
of(int... integers) |
static IntIterable |
once(IntIterator iterator) |
static IntIterable |
once(java.util.PrimitiveIterator.OfInt iterator) |
IntIterator iterator()
iterator in interface java.lang.Iterable<java.lang.Integer>default void forEach(java.util.function.Consumer<? super java.lang.Integer> consumer)
int in this iterable.forEach in interface java.lang.Iterable<java.lang.Integer>default void forEachInt(java.util.function.IntConsumer consumer)
int in this iterable.static IntIterable of(int... integers)
static IntIterable from(java.lang.Integer... integers)
static IntIterable from(java.lang.Iterable<java.lang.Integer> iterable)
static IntIterable once(IntIterator iterator)
static IntIterable once(java.util.PrimitiveIterator.OfInt iterator)