public static class FloatPriorityQueues.SynchronizedPriorityQueue extends Object implements FloatPriorityQueue
| 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.
|
FloatComparator |
comparator()
Returns the comparator associated with this priority queue, or null if it
uses its elements' natural ordering.
|
Float |
dequeue()
Deprecated.
|
float |
dequeueFloat()
Dequeues the first element from the queue.
|
void |
enqueue(float x)
Enqueues a new element.
|
void |
enqueue(Float x)
Deprecated.
|
boolean |
equals(Object o) |
Float |
first()
Deprecated.
|
float |
firstFloat()
Returns the first element of the queue.
|
int |
hashCode() |
boolean |
isEmpty()
Checks whether the queue is empty.
|
Float |
last()
Deprecated.
|
float |
lastFloat()
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(float x)
FloatPriorityQueueenqueue in interface FloatPriorityQueuex - the element to enqueue.PriorityQueue.enqueue(Object)public float dequeueFloat()
FloatPriorityQueuedequeueFloat in interface FloatPriorityQueueFloatPriorityQueue.dequeue()public float firstFloat()
FloatPriorityQueuefirstFloat in interface FloatPriorityQueueFloatPriorityQueue.first()public float lastFloat()
FloatPriorityQueuelastFloat in interface FloatPriorityQueueFloatPriorityQueue.last()public boolean isEmpty()
PriorityQueueisEmpty in interface PriorityQueue<Float>public int size()
PriorityQueuesize in interface PriorityQueue<Float>public void clear()
PriorityQueueclear in interface PriorityQueue<Float>public void changed()
PriorityQueuechanged in interface PriorityQueue<Float>public FloatComparator comparator()
FloatPriorityQueue
Note that this specification strengthens the one given in
PriorityQueue.comparator().
comparator in interface FloatPriorityQueuecomparator in interface PriorityQueue<Float>PriorityQueue.comparator()@Deprecated public void enqueue(Float x)
FloatPriorityQueueenqueue in interface FloatPriorityQueueenqueue in interface PriorityQueue<Float>x - the element to enqueue..@Deprecated public Float dequeue()
FloatPriorityQueuedequeue in interface FloatPriorityQueuedequeue in interface PriorityQueue<Float>@Deprecated public Float first()
FloatPriorityQueuefirst in interface FloatPriorityQueuefirst in interface PriorityQueue<Float>@Deprecated public Float last()
FloatPriorityQueuelast in interface FloatPriorityQueuelast in interface PriorityQueue<Float>