public abstract class AbstractIntPriorityQueue extends AbstractPriorityQueue<Integer> implements IntPriorityQueue
Constructor and Description |
---|
AbstractIntPriorityQueue() |
Modifier and Type | Method and Description |
---|---|
Integer |
dequeue()
Delegates to the corresponding type-specific method.
|
void |
enqueue(Integer x)
Delegates to the corresponding type-specific method.
|
Integer |
first()
Delegates to the corresponding type-specific method.
|
Integer |
last()
Delegates to the corresponding type-specific method.
|
int |
lastInt()
Throws an
UnsupportedOperationException . |
changed, isEmpty
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparator, dequeueInt, enqueue, firstInt
changed, clear, isEmpty, size
public void enqueue(Integer x)
enqueue
in interface PriorityQueue<Integer>
x
- the element to enqueue..public Integer dequeue()
dequeue
in interface PriorityQueue<Integer>
public Integer first()
first
in interface PriorityQueue<Integer>
public Integer last()
last
in interface PriorityQueue<Integer>
last
in class AbstractPriorityQueue<Integer>
public int lastInt()
UnsupportedOperationException
.lastInt
in interface IntPriorityQueue