public static class LongPriorityQueues.SynchronizedPriorityQueue extends Object implements LongPriorityQueue
| 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.
|
LongComparator |
comparator()
Returns the comparator associated with this priority queue, or null if it
uses its elements' natural ordering.
|
Long |
dequeue()
Deprecated.
|
long |
dequeueLong()
Dequeues the first element from the queue.
|
void |
enqueue(long x)
Enqueues a new element.
|
void |
enqueue(Long x)
Deprecated.
|
boolean |
equals(Object o) |
Long |
first()
Deprecated.
|
long |
firstLong()
Returns the first element of the queue.
|
int |
hashCode() |
boolean |
isEmpty()
Checks whether the queue is empty.
|
Long |
last()
Deprecated.
|
long |
lastLong()
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(long x)
LongPriorityQueueenqueue in interface LongPriorityQueuex - the element to enqueue.PriorityQueue.enqueue(Object)public long dequeueLong()
LongPriorityQueuedequeueLong in interface LongPriorityQueueLongPriorityQueue.dequeue()public long firstLong()
LongPriorityQueuefirstLong in interface LongPriorityQueueLongPriorityQueue.first()public long lastLong()
LongPriorityQueuelastLong in interface LongPriorityQueueLongPriorityQueue.last()public boolean isEmpty()
PriorityQueueisEmpty in interface PriorityQueue<Long>public int size()
PriorityQueuesize in interface PriorityQueue<Long>public void clear()
PriorityQueueclear in interface PriorityQueue<Long>public void changed()
PriorityQueuechanged in interface PriorityQueue<Long>public LongComparator comparator()
LongPriorityQueue
Note that this specification strengthens the one given in
PriorityQueue.comparator().
comparator in interface LongPriorityQueuecomparator in interface PriorityQueue<Long>PriorityQueue.comparator()@Deprecated public void enqueue(Long x)
LongPriorityQueueenqueue in interface LongPriorityQueueenqueue in interface PriorityQueue<Long>x - the element to enqueue..@Deprecated public Long dequeue()
LongPriorityQueuedequeue in interface LongPriorityQueuedequeue in interface PriorityQueue<Long>@Deprecated public Long first()
LongPriorityQueuefirst in interface LongPriorityQueuefirst in interface PriorityQueue<Long>@Deprecated public Long last()
LongPriorityQueuelast in interface LongPriorityQueuelast in interface PriorityQueue<Long>