Java Reference
In-Depth Information
Creates a new PriorityQueue whose initial contents are the
contents of coll . The capacity of the queue is initially 110%
of the size of coll to allow for some growth without resizing.
This queue will be ordered the same way as coll .
public PriorityQueue(PriorityQueue<? extends E> coll)
Creates a new PriorityQueue whose initial contents are the
contents of coll . The capacity of the queue is initially 110%
of the size of coll to allow for some growth without resizing.
This queue will be ordered the same way as coll .
Since PriorityQueue does not accept null elements, all constructors
that take collections throw NullPointerException if a null element is en-
countered.
The comparator used to construct the priority queue can be retrieved
with the comparator method. This has the same contract as the comparator
method in SortedSet , returning null if the elements' natural ordering is
being used.
 
Search WWH ::




Custom Search