Class EmptyStreams
- java.lang.Object
-
- com.github.marschall.emptystreams.EmptyStreams
-
public final class EmptyStreams extends Object
Class with factory methods for empty streams.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DoubleStream
emptyDoubleStream()
Returns and emptyDoubleStream
.static IntStream
emptyIntStream()
Returns and emptyIntStream
.static LongStream
emptyLongStream()
Returns and emptyLongStream
.static <T> Stream<T>
emptyStream()
Returns and emptyStream
.
-
-
-
Method Detail
-
emptyIntStream
public static IntStream emptyIntStream()
Returns and emptyIntStream
.- Returns:
- an empty stream
- See Also:
IntStream.empty()
-
emptyLongStream
public static LongStream emptyLongStream()
Returns and emptyLongStream
.- Returns:
- an empty stream
- See Also:
LongStream.empty()
-
emptyDoubleStream
public static DoubleStream emptyDoubleStream()
Returns and emptyDoubleStream
.- Returns:
- an empty stream
- See Also:
DoubleStream.empty()
-
emptyStream
public static <T> Stream<T> emptyStream()
Returns and emptyStream
.- Type Parameters:
T
- the type of the stream elements- Returns:
- an empty stream
- See Also:
Stream.empty()
-
-