Creates a PriorityQueue containing the elements in the specified collection. The priority queue has an initial capacity of 110% of the size of the specified collection or 1 if the collection is empty. If the specified collection is an instance of a PriorityQueue, the priority queue will be sorted according to the same comparator, or according to its elements' natural order if the collection is sorted according to its elements' natural order. Otherwise, the priority queue is ordered according to its elements' natural order.
Creates a PriorityQueue with the specified initial capacity that orders its elements according to the specified comparator.
Reconstitute the PriorityQueue instance from a stream (that is, deserialize it).