java.lang.Object | |
↳ | org.apache.commons.collections.SynchronizedPriorityQueue |
This class is deprecated.
PriorityQueue is replaced by the Buffer interface, see buffer subpackage.
Due to be removed in v4.0.
A thread safe version of the PriorityQueue. Provides synchronized wrapper methods for all the methods defined in the PriorityQueue interface.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
m_priorityQueue | The underlying priority queue. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new synchronized priority queue.
|
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.
| |||||||||||
Returns a string representation of the underlying queue.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.commons.collections.PriorityQueue
|
Constructs a new synchronized priority queue.
priorityQueue | the priority queue to synchronize |
---|
Clear all elements from queue.
Insert an element into queue.
element | the element to be inserted |
---|
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 |
---|
Returns a string representation of the underlying queue.