offer

fun offer(element: E?): Boolean

Inserts the specified element into this priority queue.

Return

true (as specified by Queue.offer)

Throws

if the specified element cannot be compared with elements currently in this priority queue according to the priority queue's ordering

if the specified element is null