public static class DoublePriorityQueues.SynchronizedPriorityQueue extends Object implements DoublePriorityQueue
| Modifier and Type | Method and Description |
|---|---|
void |
changed()
Notifies the queue that the first element has changed (optional operation).
|
void |
clear()
Removes all elements from this queue.
|
DoubleComparator |
comparator()
Returns the comparator associated with this priority queue, or null if it
uses its elements' natural ordering.
|
Double |
dequeue()
Deprecated.
|
double |
dequeueDouble()
Dequeues the first element from the queue.
|
void |
enqueue(double x)
Enqueues a new element.
|
void |
enqueue(Double x)
Deprecated.
|
boolean |
equals(Object o) |
Double |
first()
Deprecated.
|
double |
firstDouble()
Returns the first element of the queue.
|
int |
hashCode() |
boolean |
isEmpty()
Checks whether the queue is empty.
|
Double |
last()
Deprecated.
|
double |
lastDouble()
Returns the last element of the queue, that is, the element the would be
dequeued last (optional operation).
|
int |
size()
Returns the number of elements in this queue.
|
public void enqueue(double x)
DoublePriorityQueueenqueue in interface DoublePriorityQueuex - the element to enqueue.PriorityQueue.enqueue(Object)public double dequeueDouble()
DoublePriorityQueuedequeueDouble in interface DoublePriorityQueueDoublePriorityQueue.dequeue()public double firstDouble()
DoublePriorityQueuefirstDouble in interface DoublePriorityQueueDoublePriorityQueue.first()public double lastDouble()
DoublePriorityQueuelastDouble in interface DoublePriorityQueueDoublePriorityQueue.last()public boolean isEmpty()
PriorityQueueisEmpty in interface PriorityQueue<Double>public int size()
PriorityQueuesize in interface PriorityQueue<Double>public void clear()
PriorityQueueclear in interface PriorityQueue<Double>public void changed()
PriorityQueuechanged in interface PriorityQueue<Double>public DoubleComparator comparator()
DoublePriorityQueue
Note that this specification strengthens the one given in
PriorityQueue.comparator().
comparator in interface DoublePriorityQueuecomparator in interface PriorityQueue<Double>PriorityQueue.comparator()@Deprecated public void enqueue(Double x)
DoublePriorityQueueenqueue in interface DoublePriorityQueueenqueue in interface PriorityQueue<Double>x - the element to enqueue..@Deprecated public Double dequeue()
DoublePriorityQueuedequeue in interface DoublePriorityQueuedequeue in interface PriorityQueue<Double>@Deprecated public Double first()
DoublePriorityQueuefirst in interface DoublePriorityQueuefirst in interface PriorityQueue<Double>@Deprecated public Double last()
DoublePriorityQueuelast in interface DoublePriorityQueuelast in interface PriorityQueue<Double>