mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8133773: clarify specification of Spliterator.tryAdvance
Reviewed-by: psandoz, tvaleev, rriggs
(cherry picked from commit fdbfc8a73b)
This commit is contained in:
committed by
Vitaly Provodin
parent
ce0803e9ba
commit
8b896995de
@@ -295,7 +295,7 @@ import java.util.function.LongConsumer;
|
||||
*/
|
||||
public interface Spliterator<T> {
|
||||
/**
|
||||
* If a remaining element exists, performs the given action on it,
|
||||
* If a remaining element exists: performs the given action on it,
|
||||
* returning {@code true}; else returns {@code false}. If this
|
||||
* Spliterator is {@link #ORDERED} the action is performed on the
|
||||
* next element in encounter order. Exceptions thrown by the
|
||||
@@ -304,7 +304,7 @@ public interface Spliterator<T> {
|
||||
* Subsequent behavior of a spliterator is unspecified if the action throws
|
||||
* an exception.
|
||||
*
|
||||
* @param action The action
|
||||
* @param action The action whose operation is performed at-most once
|
||||
* @return {@code false} if no remaining elements existed
|
||||
* upon entry to this method, else {@code true}.
|
||||
* @throws NullPointerException if the specified action is null
|
||||
|
||||
Reference in New Issue
Block a user