jdk/src/java.base/share/classes/java/util/Spliterator.java
changeset 28541 f6b5d78556d6
parent 28059 e576535359cc
child 28666 49cdfa0ea390
equal deleted inserted replaced
28540:04b399ec3dfc 28541:f6b5d78556d6
   123  * {@link #forEachRemaining(java.util.function.Consumer) forEachRemaining()}
   123  * {@link #forEachRemaining(java.util.function.Consumer) forEachRemaining()}
   124  * does not affect the order in which the values, transformed to boxed values,
   124  * does not affect the order in which the values, transformed to boxed values,
   125  * are encountered.
   125  * are encountered.
   126  *
   126  *
   127  * @apiNote
   127  * @apiNote
   128  * <p>Spliterators, like {@code Iterators}s, are for traversing the elements of
   128  * <p>Spliterators, like {@code Iterator}s, are for traversing the elements of
   129  * a source.  The {@code Spliterator} API was designed to support efficient
   129  * a source.  The {@code Spliterator} API was designed to support efficient
   130  * parallel traversal in addition to sequential traversal, by supporting
   130  * parallel traversal in addition to sequential traversal, by supporting
   131  * decomposition as well as single-element iteration.  In addition, the
   131  * decomposition as well as single-element iteration.  In addition, the
   132  * protocol for accessing elements via a Spliterator is designed to impose
   132  * protocol for accessing elements via a Spliterator is designed to impose
   133  * smaller per-element overhead than {@code Iterator}, and to avoid the inherent
   133  * smaller per-element overhead than {@code Iterator}, and to avoid the inherent