public abstract class AbstractDoublePriorityQueue extends AbstractPriorityQueue<Double> implements DoublePriorityQueue
| Constructor and Description |
|---|
AbstractDoublePriorityQueue() |
| Modifier and Type | Method and Description |
|---|---|
Double |
dequeue()
Delegates to the corresponding type-specific method.
|
void |
enqueue(Double x)
Delegates to the corresponding type-specific method.
|
Double |
first()
Delegates to the corresponding type-specific method.
|
Double |
last()
Delegates to the corresponding type-specific method.
|
double |
lastDouble()
Throws an
UnsupportedOperationException. |
changed, isEmptyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparator, dequeueDouble, enqueue, firstDoublechanged, clear, isEmpty, sizepublic void enqueue(Double x)
enqueue in interface PriorityQueue<Double>x - the element to enqueue..public Double dequeue()
dequeue in interface PriorityQueue<Double>public Double first()
first in interface PriorityQueue<Double>public Double last()
last in interface PriorityQueue<Double>last in class AbstractPriorityQueue<Double>public double lastDouble()
UnsupportedOperationException.lastDouble in interface DoublePriorityQueue