Package net.nawaman.istream
Interface IStream<DATA>
-
- Type Parameters:
DATA- the data type of the stream.
- All Superinterfaces:
AutoCloseable,BaseStream<DATA,Stream<DATA>>,ExtensibleStream<DATA>,Stream<DATA>
public interface IStream<DATA> extends ExtensibleStream<DATA>
The stream type that we will be using in this module.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.stream.Stream
Stream.Builder<T extends Object>
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default IStream<DATA>concatWith(DATA... tails)default IStream<DATA>concatWith(Collection<DATA> tail)default IStream<DATA>concatWith(Stream<DATA> tail)static <D> IStream<D>empty()static <D> IStream<D>forArray(D... values)static <D> IStream<D>forCollection(Collection<D> values)static <D> IStream<D>from(Collection<D> values)static <D> IStream<D>of(D... values)default List<DATA>toList()-
Methods inherited from interface net.nawaman.istream.ExtensibleStream
allMatch, anyMatch, close, collect, collect, count, distinct, filter, findAny, findFirst, flatMap, flatMapToDouble, flatMapToInt, flatMapToLong, forEach, forEachOrdered, isParallel, iterator, limit, map, mapToDouble, mapToInt, mapToLong, max, min, noneMatch, onClose, parallel, peek, reduce, reduce, reduce, sequential, skip, sorted, sorted, spliterator, stream, toArray, toArray, unordered
-
-
-
-
Method Detail
-
empty
static <D> IStream<D> empty()
-
of
@SafeVarargs static <D> IStream<D> of(D... values)
-
from
static <D> IStream<D> from(Collection<D> values)
-
forArray
@SafeVarargs static <D> IStream<D> forArray(D... values)
-
forCollection
static <D> IStream<D> forCollection(Collection<D> values)
-
concatWith
default IStream<DATA> concatWith(Collection<DATA> tail)
-
-