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