PriorityQueuePolicy

constructor(initialContents: Collection<T> = emptyList(), comparator: Comparator<T>)

Parameters

T

the type of entities in the queue

initialContents

the initial entities in the queue

comparator

the Comparator that defines the priority order