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

Comparing jsr166/src/main/java/util/PriorityQueue.java (file contents):
Revision 1.110 by jsr166, Wed Aug 24 21:46:18 2016 UTC vs.
Revision 1.111 by jsr166, Wed Nov 23 20:36:31 2016 UTC

# Line 54 | Line 54 | import java.util.function.Consumer;
54   * <p>This class and its iterator implement all of the
55   * <em>optional</em> methods of the {@link Collection} and {@link
56   * Iterator} interfaces.  The Iterator provided in method {@link
57 < * #iterator()} is <em>not</em> guaranteed to traverse the elements of
57 > * #iterator()} and the Spliterator provided in method {@link #spliterator()}
58 > * are <em>not</em> guaranteed to traverse the elements of
59   * the priority queue in any particular order. If you need ordered
60   * traversal, consider using {@code Arrays.sort(pq.toArray())}.
61   *
# Line 799 | Line 800 | public class PriorityQueue<E> extends Ab
800      /**
801       * Creates a <em><a href="Spliterator.html#binding">late-binding</a></em>
802       * and <em>fail-fast</em> {@link Spliterator} over the elements in this
803 <     * queue.
803 >     * queue. The spliterator does not traverse elements in any particular order
804 >     * (the {@link Spliterator#ORDERED ORDERED} characteristic is not reported).
805       *
806       * <p>The {@code Spliterator} reports {@link Spliterator#SIZED},
807       * {@link Spliterator#SUBSIZED}, and {@link Spliterator#NONNULL}.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines