Home | History | Annotate | Download | only in stream

Lines Matching defs:of

6  * under the terms of the GNU General Public License version 2 only, as
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 * You should have received a copy of the GNU General Public License version
49 * A sequence of primitive int-valued elements supporting sequential and parallel
50 * aggregate operations. This is the {@code int} primitive specialization of
54 * {@link Stream} and {@link IntStream}, computing the sum of the weights of the
66 * specification of streams, stream operations, stream pipelines, and
76 * Returns a stream consisting of the elements of this stream that match
91 * Returns a stream consisting of the results of applying the given
92 * function to the elements of this stream.
105 * Returns an object-valued {@code Stream} consisting of the results of
106 * applying the given function to the elements of this stream.
111 * @param <U> the element type of the new stream
120 * Returns a {@code LongStream} consisting of the results of applying the
121 * given function to the elements of this stream.
134 * Returns a {@code DoubleStream} consisting of the results of applying the
135 * given function to the elements of this stream.
148 * Returns a stream consisting of the results of replacing each element of
149 * this stream with the contents of a mapped stream produced by applying
161 * {@code IntStream} of new values
168 * Returns a stream consisting of the distinct elements of this stream.
178 * Returns a stream consisting of the elements of this stream in sorted
189 * Returns a stream consisting of the elements of this stream, additionally
204 * IntStream.of(1, 2, 3, 4)
220 * Returns a stream consisting of the elements of this stream, truncated
229 * especially for large values of {@code maxSize}, since {@code limit(n)}
234 * speedups of {@code limit()} in parallel pipelines, if the semantics of
240 * @param maxSize the number of elements the stream should be limited to
247 * Returns a stream consisting of the remaining elements of this stream
248 * after discarding the first {@code n} elements of the stream.
258 * especially for large values of {@code n}, since {@code skip(n)}
263 * speedups of {@code skip()} in parallel pipelines, if the semantics of
269 * @param n the number of leading elements to skip
276 * Performs an action for each element of this stream.
282 * guarantee to respect the encounter order of the stream, as doing so
283 * would sacrifice the benefit of parallelism. For any given element, the
294 * Performs an action for each element of this stream, guaranteeing that
308 * Returns an array containing the elements of this stream.
313 * @return an array containing the elements of this stream
319 * elements of this stream, using the provided identity value and an
341 * @apiNote Sum, min, max, and average are all special cases of reduction.
342 * Summing a stream of numbers can be expressed as:
357 * synchronization and with greatly reduced risk of data races.
364 * @return the result of the reduction
374 * elements of this stream, using an
389 * return foundAny ? OptionalInt.of(result) : OptionalInt.empty();
404 * @return the result of the reduction
411 * reduction</a> operation on the elements of this stream. A mutable
414 * the state of the result rather than by replacing the result. This
429 * @param <R> type of the result
442 * @return the result of the reduction
450 * Returns the sum of elements in this stream. This is a special case
451 * of a <a href="package-summary.html#Reduction">reduction</a>
460 * @return the sum of elements in this stream
465 * Returns an {@code OptionalInt} describing the minimum element of this
467 * case of a <a href="package-summary.html#Reduction">reduction</a>
475 * @return an {@code OptionalInt} containing the minimum element of this
481 * Returns an {@code OptionalInt} describing the maximum element of this
483 * case of a <a href="package-summary.html#Reduction">reduction</a>
492 * @return an {@code OptionalInt} containing the maximum element of this
498 * Returns the count of elements in this stream. This is a special case of
507 * @return the count of elements in this stream
512 * Returns an {@code OptionalDouble} describing the arithmetic mean of elements of
514 * special case of a
520 * @return an {@code OptionalDouble} containing the average element of this
527 * summary data about the elements of this stream. This is a special
528 * case of a <a href="package-summary.html#Reduction">reduction</a>.
534 * about the elements of this stream
539 * Returns whether any elements of this stream match the provided
548 * This method evaluates the <em>existential quantification</em> of the
549 * predicate over the elements of the stream (for some x P(x)).
553 * predicate to apply to elements of this stream
554 * @return {@code true} if any elements of the stream match the provided
560 * Returns whether all elements of this stream match the provided predicate.
569 * This method evaluates the <em>universal quantification</em> of the
570 * predicate over the elements of the stream (for all x P(x)). If the
572 * satisfied</em> and is always {@code true} (regardless of P(x)).
576 * predicate to apply to elements of this stream
577 * @return {@code true} if either all elements of the stream match the
583 * Returns whether no elements of this stream match the provided predicate.
592 * This method evaluates the <em>universal quantification</em> of the
593 * negated predicate over the elements of the stream (for all x ~P(x)). If
595 * and is always {@code true}, regardless of P(x).
599 * predicate to apply to elements of this stream
600 * @return {@code true} if either no elements of the stream match the
606 * Returns an {@link OptionalInt} describing the first element of this
613 * @return an {@code OptionalInt} describing the first element of this stream,
619 * Returns an {@link OptionalInt} describing some element of the stream, or
625 * <p>The behavior of this operation is explicitly nondeterministic; it is
631 * @return an {@code OptionalInt} describing some element of this stream, or
638 * Returns a {@code LongStream} consisting of the elements of this stream,
644 * @return a {@code LongStream} consisting of the elements of this stream,
650 * Returns a {@code DoubleStream} consisting of the elements of this stream,
656 * @return a {@code DoubleStream} consisting of the elements of this stream,
662 * Returns a {@code Stream} consisting of the elements of this stream,
668 * @return a {@code Stream} consistent of the elements of this stream,
711 public static IntStream of(int t) {
718 * @param values the elements of the new stream
721 public static IntStream of(int... values) {
727 * application of a function {@code f} to an initial element {@code seed},
728 * producing a {@code Stream} consisting of {@code seed}, {@code f(seed)},
733 * {@code n}, will be the result of applying the function {@code f} to the
766 * generating constant streams, streams of random elements, etc.
779 * (inclusive) to {@code endExclusive} (exclusive) by an incremental step of
783 * <p>An equivalent sequence of increasing values can be produced
791 * @return a sequential {@code IntStream} for the range of {@code int}
805 * (inclusive) to {@code endInclusive} (inclusive) by an incremental step of
809 * <p>An equivalent sequence of increasing values can be produced
817 * @return a sequential {@code IntStream} for the range of {@code int}
831 * elements of the first stream followed by all the elements of the
833 * of the input streams are ordered, and parallel if either of the input
839 * Accessing an element of a deeply concatenated stream can result in deep
844 * @return the concatenation of the two input streams