public interface FloatPriorityQueue extends PriorityQueue<Float>
PriorityQueue; provides some additional methods that use polymorphism to avoid (un)boxing.
Additionally, this interface strengthens comparator().
| Modifier and Type | Method and Description |
|---|---|
FloatComparator |
comparator()
Returns the comparator associated with this sorted set, or null if it uses its elements' natural ordering.
|
float |
dequeueFloat()
Dequeues the first element from the queue.
|
void |
enqueue(float x)
Enqueues a new element.
|
float |
firstFloat()
Returns the first element of the queue.
|
float |
lastFloat()
Returns the last element of the queue, that is, the element the would be dequeued last (optional operation).
|
void enqueue(float x)
x - the element to enqueue.float dequeueFloat()
NoSuchElementException - if the queue is empty.float firstFloat()
NoSuchElementException - if the queue is empty.float lastFloat()
NoSuchElementException - if the queue is empty.FloatComparator comparator()
Note that this specification strengthens the one given in PriorityQueue.comparator().
comparator in interface PriorityQueue<Float>null if it uses its elements' natural ordering.PriorityQueue.comparator()