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.100 by jsr166, Fri Aug 29 21:42:37 2014 UTC vs.
Revision 1.105 by jsr166, Fri Feb 27 19:01:11 2015 UTC

# Line 24 | Line 24
24   */
25  
26   package java.util;
27 +
28   import java.util.function.Consumer;
28 import java.util.stream.Stream;
29  
30   /**
31   * An unbounded priority {@linkplain Queue queue} based on a priority heap.
# Line 77 | Line 77 | import java.util.stream.Stream;
77   *
78   * @since 1.5
79   * @author Josh Bloch, Doug Lea
80 < * @param <E> the type of elements held in this collection
80 > * @param <E> the type of elements held in this queue
81   */
82   public class PriorityQueue<E> extends AbstractQueue<E>
83      implements java.io.Serializable {
# Line 111 | Line 111 | public class PriorityQueue<E> extends Ab
111       * The number of times this priority queue has been
112       * <i>structurally modified</i>.  See AbstractList for gory details.
113       */
114 <    transient int modCount = 0; // non-private to simplify nested class access
114 >    transient int modCount;     // non-private for nested class access
115  
116      /**
117       * Creates a {@code PriorityQueue} with the default initial
# Line 435 | Line 435 | public class PriorityQueue<E> extends Ab
435       * The following code can be used to dump the queue into a newly
436       * allocated array of {@code String}:
437       *
438 <     *  <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
438 >     * <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
439       *
440       * Note that {@code toArray(new Object[0])} is identical in function to
441       * {@code toArray()}.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines