mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-11 14:11:36 +00:00
8131052: Documentation of AbstractSpliterator refers to forEach rather than forEachRemaining
Reviewed-by: dfuchs
This commit is contained in:
parent
1aa0bf7daf
commit
1bd70b71fc
@ -1235,8 +1235,8 @@ public final class Spliterators {
|
||||
* <p>An extending class need only
|
||||
* implement {@link #tryAdvance(java.util.function.Consumer) tryAdvance}.
|
||||
* The extending class should override
|
||||
* {@link #forEachRemaining(java.util.function.Consumer) forEach} if it can
|
||||
* provide a more performant implementation.
|
||||
* {@link #forEachRemaining(java.util.function.Consumer) forEachRemaining}
|
||||
* if it can provide a more performant implementation.
|
||||
*
|
||||
* @apiNote
|
||||
* This class is a useful aid for creating a spliterator when it is not
|
||||
@ -1356,10 +1356,10 @@ public final class Spliterators {
|
||||
* permit limited parallelism.
|
||||
*
|
||||
* <p>To implement a spliterator an extending class need only
|
||||
* implement {@link #tryAdvance(java.util.function.IntConsumer)}
|
||||
* implement {@link #tryAdvance(java.util.function.IntConsumer)
|
||||
* tryAdvance}. The extending class should override
|
||||
* {@link #forEachRemaining(java.util.function.IntConsumer)} forEach} if it
|
||||
* can provide a more performant implementation.
|
||||
* {@link #forEachRemaining(java.util.function.IntConsumer) forEachRemaining}
|
||||
* if it can provide a more performant implementation.
|
||||
*
|
||||
* @apiNote
|
||||
* This class is a useful aid for creating a spliterator when it is not
|
||||
@ -1466,10 +1466,10 @@ public final class Spliterators {
|
||||
* to permit limited parallelism.
|
||||
*
|
||||
* <p>To implement a spliterator an extending class need only
|
||||
* implement {@link #tryAdvance(java.util.function.LongConsumer)}
|
||||
* implement {@link #tryAdvance(java.util.function.LongConsumer)
|
||||
* tryAdvance}. The extending class should override
|
||||
* {@link #forEachRemaining(java.util.function.LongConsumer)} forEach} if it
|
||||
* can provide a more performant implementation.
|
||||
* {@link #forEachRemaining(java.util.function.LongConsumer) forEachRemaining}
|
||||
* if it can provide a more performant implementation.
|
||||
*
|
||||
* @apiNote
|
||||
* This class is a useful aid for creating a spliterator when it is not
|
||||
@ -1576,10 +1576,10 @@ public final class Spliterators {
|
||||
* {@code trySplit} to permit limited parallelism.
|
||||
*
|
||||
* <p>To implement a spliterator an extending class need only
|
||||
* implement {@link #tryAdvance(java.util.function.DoubleConsumer)}
|
||||
* implement {@link #tryAdvance(java.util.function.DoubleConsumer)
|
||||
* tryAdvance}. The extending class should override
|
||||
* {@link #forEachRemaining(java.util.function.DoubleConsumer)} forEach} if
|
||||
* it can provide a more performant implementation.
|
||||
* {@link #forEachRemaining(java.util.function.DoubleConsumer) forEachRemaining}
|
||||
* if it can provide a more performant implementation.
|
||||
*
|
||||
* @apiNote
|
||||
* This class is a useful aid for creating a spliterator when it is not
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user