ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/PriorityBlockingQueue.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/PriorityBlockingQueue.java (file contents):
Revision 1.116 by jsr166, Wed Nov 23 14:51:10 2016 UTC vs.
Revision 1.117 by jsr166, Wed Nov 23 20:36:31 2016 UTC

# Line 36 | Line 36 | import java.util.function.Consumer;
36   * <p>This class and its iterator implement all of the
37   * <em>optional</em> methods of the {@link Collection} and {@link
38   * Iterator} interfaces.  The Iterator provided in method {@link
39 < * #iterator()} is <em>not</em> guaranteed to traverse the elements of
39 > * #iterator()} and the Spliterator provided in method {@link #spliterator()}
40 > * are <em>not</em> guaranteed to traverse the elements of
41   * the PriorityBlockingQueue in any particular order. If you need
42   * ordered traversal, consider using
43   * {@code Arrays.sort(pq.toArray())}.  Also, method {@code drainTo}
# Line 966 | Line 967 | public class PriorityBlockingQueue<E> ex
967  
968      /**
969       * Returns a {@link Spliterator} over the elements in this queue.
970 +     * The spliterator does not traverse elements in any particular order
971 +     * (the {@link Spliterator#ORDERED ORDERED} characteristic is not reported).
972       *
973       * <p>The returned spliterator is
974       * <a href="package-summary.html#Weakly"><i>weakly consistent</i></a>.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines