public abstract class AbstractCharPriorityQueue extends AbstractPriorityQueue<java.lang.Character> implements CharPriorityQueue
Constructor and Description |
---|
AbstractCharPriorityQueue() |
Modifier and Type | Method and Description |
---|---|
java.lang.Character |
dequeue()
Delegates to the corresponding type-specific method.
|
void |
enqueue(java.lang.Character x)
Delegates to the corresponding type-specific method.
|
java.lang.Character |
first()
Delegates to the corresponding type-specific method.
|
java.lang.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(java.lang.Character x)
enqueue
in interface PriorityQueue<java.lang.Character>
x
- the element to enqueue..public java.lang.Character dequeue()
dequeue
in interface PriorityQueue<java.lang.Character>
public java.lang.Character first()
first
in interface PriorityQueue<java.lang.Character>
public java.lang.Character last()
last
in interface PriorityQueue<java.lang.Character>
last
in class AbstractPriorityQueue<java.lang.Character>
public char lastChar()
UnsupportedOperationException
.lastChar
in interface CharPriorityQueue