|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.AbstractPriorityQueue<java.lang.Long>
it.unimi.dsi.fastutil.longs.AbstractLongPriorityQueue
public abstract class AbstractLongPriorityQueue
An abstract class providing basic methods for priority queues implementing a type-specific interface.
Constructor Summary | |
---|---|
AbstractLongPriorityQueue()
|
Method Summary | |
---|---|
java.lang.Long |
dequeue()
Delegates to the corresponding type-specific method. |
void |
enqueue(java.lang.Long x)
Delegates to the corresponding type-specific method. |
java.lang.Long |
first()
Delegates to the corresponding type-specific method. |
java.lang.Long |
last()
Delegates to the corresponding type-specific method. |
long |
lastLong()
Throws an UnsupportedOperationException . |
Methods inherited from class it.unimi.dsi.fastutil.AbstractPriorityQueue |
---|
changed, isEmpty |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongPriorityQueue |
---|
comparator, dequeueLong, enqueue, firstLong |
Methods inherited from interface it.unimi.dsi.fastutil.PriorityQueue |
---|
changed, clear, isEmpty, size |
Constructor Detail |
---|
public AbstractLongPriorityQueue()
Method Detail |
---|
public void enqueue(java.lang.Long x)
enqueue
in interface PriorityQueue<java.lang.Long>
x
- the element to enqueue..public java.lang.Long dequeue()
dequeue
in interface PriorityQueue<java.lang.Long>
public java.lang.Long first()
first
in interface PriorityQueue<java.lang.Long>
public java.lang.Long last()
last
in interface PriorityQueue<java.lang.Long>
last
in class AbstractPriorityQueue<java.lang.Long>
public long lastLong()
UnsupportedOperationException
.
lastLong
in interface LongPriorityQueue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |