|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unimi.dsi.fastutil.AbstractIndirectPriorityQueue
An abstract class providing basic methods for implementing the IndirectPriorityQueue interface.
This class defines changed(int), allChanged(), remove(int) and last() as throwing an
UnsupportedOperationException.
| Constructor Summary | |
AbstractIndirectPriorityQueue()
|
|
| Method Summary | |
void |
allChanged()
Notifies the queue that the all elements have changed (optional operation). |
void |
changed()
Notifies the queue that the first element has changed (optional operation). |
void |
changed(int index)
Notifies the queue that the specified element has changed (optional operation). |
boolean |
isEmpty()
Checks whether the queue is empty. |
int |
last()
Returns the last element of the queue, that is, the element the would be dequeued last (optional operation). |
void |
remove(int index)
Removes the specified element from the queue (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.IndirectPriorityQueue |
clear, comparator, dequeue, enqueue, first, size |
| Constructor Detail |
public AbstractIndirectPriorityQueue()
| Method Detail |
public int last()
IndirectPriorityQueue
last in interface IndirectPriorityQueuepublic void changed()
IndirectPriorityQueue
changed in interface IndirectPriorityQueuepublic void changed(int index)
IndirectPriorityQueueNote that the specified element must belong to the queue.
changed in interface IndirectPriorityQueueindex - the element that has changed.public void allChanged()
IndirectPriorityQueue
allChanged in interface IndirectPriorityQueuepublic void remove(int index)
IndirectPriorityQueueNote that the specified element must belong to the queue.
remove in interface IndirectPriorityQueueindex - the element to be removed.public boolean isEmpty()
IndirectPriorityQueue
isEmpty in interface IndirectPriorityQueue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||