org.apache.commons.collections.PriorityQueue |
Known Indirect Subclasses |
This interface is deprecated.
Replaced by the Buffer interface and implementations in buffer subpackage.
Due to be removed in v4.0.
Defines a collection for priority queues, which can insert, peek and pop.
This interface is now replaced by the Buffer
interface.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Clear all elements from queue.
| |||||||||||
Insert an element into queue.
| |||||||||||
Test if queue is empty.
| |||||||||||
Return element on top of heap but don't remove it.
| |||||||||||
Return element on top of heap and remove it.
|
Clear all elements from queue.
Insert an element into queue.
element | the element to be inserted |
---|
ClassCastException | if the specified element 's
type prevents it from being compared to other items in the queue to
determine its relative priority.
|
---|
Test if queue is empty.
Return element on top of heap but don't remove it.
NoSuchElementException | if isEmpty() == true
|
---|
Return element on top of heap and remove it.
NoSuchElementException | if isEmpty() == true
|
---|