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, isEmpty
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparator, dequeueDouble, enqueue, firstDouble
changed, clear, isEmpty, size
public 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