|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A type-specific PriorityQueue; provides some additional methods that use polymorphism to reduce type juggling.
| Method Summary | |
long |
dequeueLong()
Dequeues the first element from the queue. |
void |
enqueue(long x)
Enqueues a new element. |
long |
firstLong()
Returns the front element of the queue. |
long |
lastLong()
Returns the rear element of the queue, that is, the element the would be dequeued last (optional operation). |
| Methods inherited from interface it.unimi.dsi.fastutil.PriorityQueue |
changed, clear, comparator, dequeue, enqueue, first, isEmpty, last, size |
| Method Detail |
public void enqueue(long x)
x - the element to enqueue..public long dequeueLong()
NoSuchElementException - if the queue is empty.public long firstLong()
NoSuchElementException - if the queue is empty.public long lastLong()
NoSuchElementException - if the queue is empty.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||