|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.AbstractPriorityQueue
An abstract class providing basic methods for implementing the PriorityQueue
interface.
This class defines changed()
and last()
as throwing an
UnsupportedOperationException
.
Constructor Summary | |
AbstractPriorityQueue()
|
Method Summary | |
void |
changed()
Notifies the queue that the first element has changed (optional operation). |
boolean |
isEmpty()
Checks whether the queue is empty. |
Object |
last()
Returns the last element of the queue, that is, the element the would be dequeued last (optional operation). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface it.unimi.dsi.fastutil.PriorityQueue |
clear, comparator, dequeue, enqueue, first, size |
Constructor Detail |
public AbstractPriorityQueue()
Method Detail |
public void changed()
PriorityQueue
changed
in interface PriorityQueue
public Object last()
PriorityQueue
last
in interface PriorityQueue
public boolean isEmpty()
PriorityQueue
isEmpty
in interface PriorityQueue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |