public interface WithStream
| Modifier and Type | Method and Description |
|---|---|
default DoubleStream |
stream(double... items)
Convert a varargs array to a stream.
|
default IntStream |
stream(int... items)
Convert a varargs array to a stream.
|
default <T> Stream<T> |
stream(Iterable<T> i)
Turns an
Iterable of T into a Stream of T |
default LongStream |
stream(long... items)
Convert a varargs array to a stream.
|
default <T> Stream<T> |
stream(T... items)
Convert a varargs array to a stream.
|
default <T> Stream<T> |
streamParallel(Iterable<T> i)
Turns an
Iterable of T into a parallel Stream of
T |
default DoubleStream stream(double... items)
items - items to convertdefault IntStream stream(int... items)
items - items to convertdefault LongStream stream(long... items)
items - items to convertdefault <T> Stream<T> stream(T... items)
T - type of elementsitems - items to convertdefault <T> Stream<T> stream(Iterable<T> i)
Iterable of T into a Stream of TT - the type of the elements of the Iterable and resulting
Stream.i - the Iterable of TStream of TCopyright © 2021. All rights reserved.