PriorityQueue
Constructors
Link copied to clipboard
constructor(initialCapacity: Int = DEFAULT_INITIAL_CAPACITY, comparator: Comparator<in E> = Comparator { a, b -> (a as Comparable<E>).compareTo(b) })
Creates a PriorityQueue with the specified initial capacity that orders its elements according to the specified comparator.