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