Home | History | Annotate | Download | only in stream

Lines Matching defs:stream

25 package java.util.stream;
38 * illustrates an aggregate operation using the stream types {@link Stream}
42 * int sum = widgets.stream()
48 * See the class documentation for {@link Stream} and the package documentation
49 * for <a href="package-summary.html">java.util.stream</a> for additional
50 * specification of streams, stream operations, stream pipelines, and
51 * parallelism, which governs the behavior of all stream types.
53 * @param <T> the type of the stream elements
54 * @param <S> the type of of the stream implementing {@code BaseStream}
56 * @see Stream
60 * @see <a href="package-summary.html">java.util.stream</a>
65 * Returns an iterator for the elements of this stream.
70 * @return the element iterator for this stream
75 * Returns a spliterator for the elements of this stream.
80 * @return the element spliterator for this stream
85 * Returns whether this stream, if a terminal operation were to be executed,
87 * terminal stream operation method may yield unpredictable results.
89 * @return {@code true} if this stream would execute in parallel if executed
94 * Returns an equivalent stream that is sequential. May return
95 * itself, either because the stream was already sequential, or because
96 * the underlying stream state was modified to be sequential.
101 * @return a sequential stream
106 * Returns an equivalent stream that is parallel. May return
107 * itself, either because the stream was already parallel, or because
108 * the underlying stream state was modified to be parallel.
113 * @return a parallel stream
118 * Returns an equivalent stream that is
120 * itself, either because the stream was already unordered, or because
121 * the underlying stream state was modified to be unordered.
126 * @return an unordered stream
131 * Returns an equivalent stream with an additional close handler. Close
133 * is called on the stream, and are executed in the order they were
145 * @param closeHandler A task to execute when the stream is closed
146 * @return a stream with a handler that is run if the stream is closed
151 * Closes this stream, causing all close handlers for this stream pipeline