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.99 by jsr166, Mon Jul 22 18:29:27 2013 UTC vs.
Revision 1.100 by dl, Wed Aug 7 12:52:23 2013 UTC

# Line 200 | Line 200 | public class PriorityBlockingQueue<E> ex
200      }
201  
202      /**
203 +     * Creates a {@code PriorityBlockingQueue} with the default
204 +     * initial capacity that orders its elements according to the
205 +     * specified comparator.
206 +     *
207 +     * @param  comparator the comparator that will be used to order this
208 +     *         priority queue.  If {@code null}, the {@linkplain Comparable
209 +     *         natural ordering} of the elements will be used.
210 +     * @since 1.8
211 +     */
212 +    public PriorityBlockingQueue(Comparator<? super E> comparator) {
213 +        this(DEFAULT_INITIAL_CAPACITY, comparator);
214 +    }
215 +
216 +    /**
217       * Creates a {@code PriorityBlockingQueue} containing the elements
218       * in the specified collection.  If the specified collection is a
219       * {@link SortedSet} or a {@link PriorityQueue}, this

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines