public abstract class AbstractBytePriorityQueue extends AbstractPriorityQueue<Byte> implements BytePriorityQueue
Constructor and Description |
---|
AbstractBytePriorityQueue() |
Modifier and Type | Method and Description |
---|---|
Byte |
dequeue()
Delegates to the corresponding type-specific method.
|
void |
enqueue(Byte x)
Delegates to the corresponding type-specific method.
|
Byte |
first()
Delegates to the corresponding type-specific method.
|
Byte |
last()
Delegates to the corresponding type-specific method.
|
byte |
lastByte()
Throws an
UnsupportedOperationException . |
changed, isEmpty
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparator, dequeueByte, enqueue, firstByte
changed, clear, isEmpty, size
public void enqueue(Byte x)
enqueue
in interface PriorityQueue<Byte>
x
- the element to enqueue..public Byte dequeue()
dequeue
in interface PriorityQueue<Byte>
public Byte first()
first
in interface PriorityQueue<Byte>
public Byte last()
last
in interface PriorityQueue<Byte>
last
in class AbstractPriorityQueue<Byte>
public byte lastByte()
UnsupportedOperationException
.lastByte
in interface BytePriorityQueue