|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BytePriorityQueue
A type-specific PriorityQueue
; provides some additional methods that use polymorphism to avoid (un)boxing.
Additionally, this interface strengthens comparator()
.
Method Summary | |
---|---|
ByteComparator |
comparator()
Returns the comparator associated with this sorted set, or null if it uses its elements' natural ordering. |
byte |
dequeueByte()
Dequeues the first element from the queue. |
void |
enqueue(byte x)
Enqueues a new element. |
byte |
firstByte()
Returns the front element of the queue. |
byte |
lastByte()
Returns the rear element of the queue, that is, the element the would be dequeued last (optional operation). |
Methods inherited from interface it.unimi.dsi.fastutil.PriorityQueue |
---|
changed, clear, dequeue, enqueue, first, isEmpty, last, size |
Method Detail |
---|
void enqueue(byte x)
x
- the element to enqueue..byte dequeueByte()
java.util.NoSuchElementException
- if the queue is empty.byte firstByte()
java.util.NoSuchElementException
- if the queue is empty.byte lastByte()
java.util.NoSuchElementException
- if the queue is empty.ByteComparator comparator()
Note that this specification strengthens the one given in PriorityQueue.comparator()
.
comparator
in interface PriorityQueue<java.lang.Byte>
null
if it uses its elements' natural ordering.PriorityQueue.comparator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |