T - Data type for Streampublic interface Streamable<T>
extends java.lang.Iterable<T>
| Modifier and Type | Method and Description |
|---|---|
static <T> Streamable<T> |
fromIterable(java.lang.Iterable<T> iterable)
(Lazily) Construct a Streamable from an Iterable.
|
static <T> Streamable<T> |
fromStream(java.util.stream.Stream<T> stream)
(Lazily) Construct a Streamable from a Stream.
|
default java.lang.Object |
getStreamable() |
default java.util.Iterator<T> |
iterator() |
static <T> Streamable<T> |
of(T... values)
Construct a Streamable that returns a Stream
|
static <T> Streamable<T> |
reveresedOf(T... values)
Construct a Streamable that returns an efficient Stream with the values reversed.
|
static <T> Streamable<T> |
reveresedOfList(java.util.ArrayList<T> values)
Construct a Streamable that returns an efficient Stream with the values in the
supplied list reversed
|
default SequenceM<T> |
sequenceM() |
default java.util.stream.Stream<T> |
stream() |
default java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>default java.lang.Object getStreamable()
default java.util.stream.Stream<T> stream()
static <T> Streamable<T> fromStream(java.util.stream.Stream<T> stream)
stream - to construct Streamable fromstatic <T> Streamable<T> fromIterable(java.lang.Iterable<T> iterable)
iterable - to construct Streamable fromstatic <T> Streamable<T> reveresedOf(T... values)
values - to construct Stream from (reversed)static <T> Streamable<T> reveresedOfList(java.util.ArrayList<T> values)
values - to construct a Stream from (reversed)static <T> Streamable<T> of(T... values)
values - to construct Streamable from