public abstract class AbstractLongPriorityQueue extends AbstractPriorityQueue<Long> implements LongPriorityQueue
Constructor and Description |
---|
AbstractLongPriorityQueue() |
Modifier and Type | Method and Description |
---|---|
Long |
dequeue()
Delegates to the corresponding type-specific method.
|
void |
enqueue(Long x)
Delegates to the corresponding type-specific method.
|
Long |
first()
Delegates to the corresponding type-specific method.
|
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(Long x)
enqueue
in interface PriorityQueue<Long>
x
- the element to enqueue..public Long dequeue()
dequeue
in interface PriorityQueue<Long>
public Long first()
first
in interface PriorityQueue<Long>
public Long last()
last
in interface PriorityQueue<Long>
last
in class AbstractPriorityQueue<Long>
public long lastLong()
UnsupportedOperationException
.lastLong
in interface LongPriorityQueue