PriorityQueue

constructor(capacity: Int)

Creates a priority queue with the specified capacity.

Parameters

E

Element that implemented Comparable interface.

capacity

Initial capacity.