|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unimi.dsi.fastutil.shorts.ShortPriorityQueues.SynchronizedPriorityQueue
A synchronized wrapper class for priority queues.
| Field Summary | |
static long |
serialVersionUID
|
| Method Summary | |
void |
changed()
Notifies the queue that the first element has changed (optional operation). |
void |
clear()
Removes all elements from this queue. |
Comparator |
comparator()
Returns the comparator associated with this queue, or null if it uses its elements' natural ordering. |
Object |
dequeue()
Dequeues the first() element from the queue. |
short |
dequeueShort()
Dequeues the first element from the queue. |
void |
enqueue(Object x)
Enqueues a new element. |
void |
enqueue(short x)
Enqueues a new element. |
Object |
first()
Returns the first element of the queue. |
short |
firstShort()
Returns the front element of the queue. |
boolean |
isEmpty()
Checks whether the queue is empty. |
Object |
last()
Returns the last element of the queue, that is, the element the would be dequeued last (optional operation). |
short |
lastShort()
Returns the rear 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. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final long serialVersionUID
| Method Detail |
public void enqueue(short x)
ShortPriorityQueue
enqueue in interface ShortPriorityQueuex - the element to enqueue..public short dequeueShort()
ShortPriorityQueue
dequeueShort in interface ShortPriorityQueuepublic short firstShort()
ShortPriorityQueue
firstShort in interface ShortPriorityQueuepublic short lastShort()
ShortPriorityQueue
lastShort in interface ShortPriorityQueuepublic boolean isEmpty()
PriorityQueue
isEmpty in interface PriorityQueuepublic int size()
PriorityQueue
size in interface PriorityQueuepublic void clear()
PriorityQueue
clear in interface PriorityQueuepublic void changed()
PriorityQueue
changed in interface PriorityQueuepublic Comparator comparator()
PriorityQueuenull if it uses its elements' natural ordering.
comparator in interface PriorityQueuenull if it uses its elements' natural ordering.public void enqueue(Object x)
PriorityQueue
enqueue in interface PriorityQueuex - the element to enqueue..public Object dequeue()
PriorityQueuePriorityQueue.first() element from the queue.
dequeue in interface PriorityQueuepublic Object first()
PriorityQueue
first in interface PriorityQueuepublic Object last()
PriorityQueue
last in interface PriorityQueue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||