java.lang.Object | +--org.apache.commons.collections.SynchronizedPriorityQueueAll Implemented Interfaces:
The underlying priority queue. |
SynchronizedPriorityQueue(final PriorityQueue priorityQueue) Constructs a new synchronized priority queue. |
synchronized void | clear() Clear all elements from queue. |
synchronized void | insert(final Object element) Insert an element into queue. |
synchronized boolean | isEmpty() Test if queue is empty. |
synchronized Object | peek() Return element on top of heap but don't remove it. |
synchronized Object | pop() Return element on top of heap and remove it. |
synchronized String | toString() Returns a string representation of the underlying queue. |
protected final PriorityQueue m_priorityQueue
public SynchronizedPriorityQueue(final PriorityQueue priorityQueue)
public synchronized void clear()
public synchronized void insert(final Object element)
public synchronized boolean isEmpty()
public synchronized Object peek()
- if isEmpty() == truepublic synchronized Object pop()
- if isEmpty() == truepublic synchronized String toString()