|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.dsi.fastutil.AbstractIndirectPriorityQueue<K>
public abstract class AbstractIndirectPriorityQueue<K>
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, front, size |
| Constructor Detail |
|---|
public AbstractIndirectPriorityQueue()
| Method Detail |
|---|
public int last()
IndirectPriorityQueue
last in interface IndirectPriorityQueue<K>public void changed()
IndirectPriorityQueue
changed in interface IndirectPriorityQueue<K>public void changed(int index)
IndirectPriorityQueueNote that the specified element must belong to the queue.
changed in interface IndirectPriorityQueue<K>index - the element that has changed.public void allChanged()
IndirectPriorityQueue
allChanged in interface IndirectPriorityQueue<K>public void remove(int index)
IndirectPriorityQueueNote that the specified element must belong to the queue.
remove in interface IndirectPriorityQueue<K>index - the element to be removed.public boolean isEmpty()
IndirectPriorityQueue
isEmpty in interface IndirectPriorityQueue<K>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||