BaseStream (Java SE 25 & JDK 25)
- Type Parameters:
T- the type of the stream elementsS- the type of the stream implementingBaseStream
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
DoubleStream, IntStream, LongStream, Stream<T>
-
Method Summary
voidclose()Closes this stream, causing all close handlers for this stream pipeline to be called.
booleanReturns whether this stream, if a terminal operation were to be executed, would execute in parallel.
iterator()Returns an iterator for the elements of this stream.
Returns an equivalent stream with an additional close handler.
parallel()Returns an equivalent stream that is parallel.
Returns an equivalent stream that is sequential.
Returns a spliterator for the elements of this stream.
Returns an equivalent stream that is unordered.
-
Method Details
-
iterator
-
spliterator
-
isParallel
-
sequential
-
parallel
-
unordered
-
onClose
-
close
-