public abstract class AbstractShortPriorityQueue extends AbstractPriorityQueue<java.lang.Short> implements ShortPriorityQueue
| Constructor and Description |
|---|
AbstractShortPriorityQueue() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Short |
dequeue()
Delegates to the corresponding type-specific method.
|
void |
enqueue(java.lang.Short x)
Delegates to the corresponding type-specific method.
|
java.lang.Short |
first()
Delegates to the corresponding type-specific method.
|
java.lang.Short |
last()
Delegates to the corresponding type-specific method.
|
short |
lastShort()
Throws an
UnsupportedOperationException. |
changed, isEmptyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparator, dequeueShort, enqueue, firstShortchanged, clear, isEmpty, sizepublic void enqueue(java.lang.Short x)
enqueue in interface PriorityQueue<java.lang.Short>x - the element to enqueue..public java.lang.Short dequeue()
dequeue in interface PriorityQueue<java.lang.Short>public java.lang.Short first()
first in interface PriorityQueue<java.lang.Short>public java.lang.Short last()
last in interface PriorityQueue<java.lang.Short>last in class AbstractPriorityQueue<java.lang.Short>public short lastShort()
UnsupportedOperationException.lastShort in interface ShortPriorityQueue