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, isEmpty
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparator, dequeueChar, enqueue, firstChar
changed, clear, isEmpty, size
public 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