|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.AbstractPriorityQueue<K>
public abstract class AbstractPriorityQueue<K>
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. |
K |
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<K>
public K last()
PriorityQueue
last
in interface PriorityQueue<K>
public boolean isEmpty()
PriorityQueue
isEmpty
in interface PriorityQueue<K>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |