|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unimi.dsi.fastutil.IndirectDoublePriorityQueues.SynchronizedIndirectDoublePriorityQueue
A synchronized wrapper class for indirect double priority queues.
| Field Summary | |
static long |
serialVersionUID
|
| 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 i)
Notifies the queue that the specified element has changed (optional operation). |
void |
clear()
Removes all elements from this queue. |
Comparator |
comparator()
Returns the comparator associated with this queue, or null if it uses its elements' natural ordering. |
int |
dequeue()
Dequeues the first element from the queue. |
void |
enqueue(int x)
Enqueues a new element. |
int |
first()
Returns the first element of the queue. |
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 i)
Removes the specified element from the queue (optional operation). |
Comparator |
secondaryComparator()
Returns the secondary comparator of this queue. |
int |
secondaryFirst()
Returns the first element of this queue with respect to the secondary comparator. |
int |
secondaryLast()
Returns the last element of this queue with respect to the secondary comparator (optional operation). |
int |
size()
Returns the number of elements in this queue. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final long serialVersionUID
| Method Detail |
public void enqueue(int x)
IndirectPriorityQueue
enqueue in interface IndirectPriorityQueuex - the element to enqueue..public int dequeue()
IndirectPriorityQueue
dequeue in interface IndirectPriorityQueuepublic int first()
IndirectPriorityQueue
first in interface IndirectPriorityQueuepublic int last()
IndirectPriorityQueue
last in interface IndirectPriorityQueuepublic int secondaryFirst()
IndirectDoublePriorityQueue
secondaryFirst in interface IndirectDoublePriorityQueuepublic int secondaryLast()
IndirectDoublePriorityQueue
secondaryLast in interface IndirectDoublePriorityQueuepublic boolean isEmpty()
IndirectPriorityQueue
isEmpty in interface IndirectPriorityQueuepublic int size()
IndirectPriorityQueue
size in interface IndirectPriorityQueuepublic void clear()
IndirectPriorityQueue
clear in interface IndirectPriorityQueuepublic void changed()
IndirectPriorityQueue
changed in interface IndirectPriorityQueuepublic void allChanged()
IndirectPriorityQueue
allChanged in interface IndirectPriorityQueuepublic void changed(int i)
IndirectPriorityQueueNote that the specified element must belong to the queue.
changed in interface IndirectPriorityQueuei - the element that has changed.public void remove(int i)
IndirectPriorityQueueNote that the specified element must belong to the queue.
remove in interface IndirectPriorityQueuei - the element to be removed.public Comparator comparator()
IndirectPriorityQueuenull if it uses its elements' natural ordering.
comparator in interface IndirectPriorityQueuenull if it uses its elements' natural ordering.public Comparator secondaryComparator()
IndirectDoublePriorityQueue
secondaryComparator in interface IndirectDoublePriorityQueueIndirectDoublePriorityQueue.secondaryFirst()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||