public abstract class AbstractCharPriorityQueue extends AbstractPriorityQueue<Character> implements CharPriorityQueue
| Constructor and Description |
|---|
AbstractCharPriorityQueue() |
| Modifier and Type | Method and Description |
|---|---|
Character |
dequeue()
Delegates to the corresponding type-specific method.
|
void |
enqueue(Character x)
Delegates to the corresponding type-specific method.
|
Character |
first()
Delegates to the corresponding type-specific method.
|
Character |
last()
Delegates to the corresponding type-specific method.
|
char |
lastChar()
Throws an
UnsupportedOperationException. |
changed, isEmptyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparator, dequeueChar, enqueue, firstCharchanged, clear, isEmpty, sizepublic void enqueue(Character x)
enqueue in interface PriorityQueue<Character>x - the element to enqueue..public Character dequeue()
dequeue in interface PriorityQueue<Character>public Character first()
first in interface PriorityQueue<Character>public Character last()
last in interface PriorityQueue<Character>last in class AbstractPriorityQueue<Character>public char lastChar()
UnsupportedOperationException.lastChar in interface CharPriorityQueue