public abstract class AbstractLongPriorityQueue extends AbstractPriorityQueue<java.lang.Long> implements LongPriorityQueue
Constructor and Description |
---|
AbstractLongPriorityQueue() |
Modifier and Type | Method and Description |
---|---|
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 . |
changed, isEmpty
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparator, dequeueLong, enqueue, firstLong
changed, clear, isEmpty, size
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