mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8130828: Fix some typos and omissions in the the j.u.stream JavaDoc
Reviewed-by: smarks
This commit is contained in:
parent
791c9bdc4d
commit
8856bacb17
7 changed files with 24 additions and 18 deletions
|
@ -291,7 +291,7 @@ public interface IntStream extends BaseStream<Integer, IntStream> {
|
|||
*
|
||||
* <p>Independent of whether this stream is ordered or unordered if all
|
||||
* elements of this stream match the given predicate then this operation
|
||||
* takes all elements (the result is the same is the input), or if no
|
||||
* takes all elements (the result is the same as the input), or if no
|
||||
* elements of the stream match the given predicate then no elements are
|
||||
* taken (the result is an empty stream).
|
||||
*
|
||||
|
@ -326,6 +326,7 @@ public interface IntStream extends BaseStream<Integer, IntStream> {
|
|||
* predicate to apply to elements to determine the longest
|
||||
* prefix of elements.
|
||||
* @return the new stream
|
||||
* @since 1.9
|
||||
*/
|
||||
default IntStream takeWhile(IntPredicate predicate) {
|
||||
Objects.requireNonNull(predicate);
|
||||
|
@ -358,7 +359,7 @@ public interface IntStream extends BaseStream<Integer, IntStream> {
|
|||
* elements of this stream match the given predicate then this operation
|
||||
* drops all elements (the result is an empty stream), or if no elements of
|
||||
* the stream match the given predicate then no elements are dropped (the
|
||||
* result is the same is the input).
|
||||
* result is the same as the input).
|
||||
*
|
||||
* <p>This is a <a href="package-summary.html#StreamOps">stateful
|
||||
* intermediate operation</a>.
|
||||
|
@ -391,6 +392,7 @@ public interface IntStream extends BaseStream<Integer, IntStream> {
|
|||
* predicate to apply to elements to determine the longest
|
||||
* prefix of elements.
|
||||
* @return the new stream
|
||||
* @since 1.9
|
||||
*/
|
||||
default IntStream dropWhile(IntPredicate predicate) {
|
||||
Objects.requireNonNull(predicate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue