@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(IntIterator iterator) |
static IntIterable |
from(java.util.stream.IntStream intStream) |
static IntIterable |
from(java.lang.Iterable<java.lang.Integer> iterable) |
static IntIterable |
from(java.util.Iterator<java.lang.Integer> iterator) |
static IntIterable |
from(java.lang.Object container)
Converts a container of some kind into a possibly once-only
IntIterable. |
static IntIterable |
from(java.util.stream.Stream<java.lang.Integer> stream) |
IntIterator |
iterator() |
static IntIterable |
of(int... integers) |
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 from(java.lang.Object container)
IntIterable.container - the non-null container to turn into an IntIterable, can be one of Iterable,
IntIterable, Iterator, IntIterator, Stream of Integers, IntStream, array of Integers, or int array.IntIterable.java.lang.ClassCastException - if the container is not one of the permitted classes.static IntIterable from(java.lang.Iterable<java.lang.Integer> iterable)
static IntIterable from(IntIterator iterator)
static IntIterable from(java.util.Iterator<java.lang.Integer> iterator)
static IntIterable from(java.util.stream.IntStream intStream)
static IntIterable of(int... integers)
static IntIterable from(java.lang.Integer... integers)
static IntIterable from(java.util.stream.Stream<java.lang.Integer> stream)