public abstract class AbstractFloatPriorityQueue extends AbstractPriorityQueue<Float> implements FloatPriorityQueue
Constructor and Description |
---|
AbstractFloatPriorityQueue() |
Modifier and Type | Method and Description |
---|---|
Float |
dequeue()
Delegates to the corresponding type-specific method.
|
void |
enqueue(Float x)
Delegates to the corresponding type-specific method.
|
Float |
first()
Delegates to the corresponding type-specific method.
|
Float |
last()
Delegates to the corresponding type-specific method.
|
float |
lastFloat()
Throws an
UnsupportedOperationException . |
changed, isEmpty
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparator, dequeueFloat, enqueue, firstFloat
changed, clear, isEmpty, size
public void enqueue(Float x)
enqueue
in interface PriorityQueue<Float>
x
- the element to enqueue..public Float dequeue()
dequeue
in interface PriorityQueue<Float>
public Float first()
first
in interface PriorityQueue<Float>
public Float last()
last
in interface PriorityQueue<Float>
last
in class AbstractPriorityQueue<Float>
public float lastFloat()
UnsupportedOperationException
.lastFloat
in interface FloatPriorityQueue