|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.dsi.fastutil.chars.CharPriorityQueues.SynchronizedPriorityQueue
public static class CharPriorityQueues.SynchronizedPriorityQueue
A synchronized wrapper class for priority queues.
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Method Summary | |
|---|---|
void |
changed()
Notifies the queue that the first element has changed (optional operation). |
void |
clear()
Removes all elements from this queue. |
CharComparator |
comparator()
Returns the comparator associated with this sorted set, or null if it uses its elements' natural ordering. |
Character |
dequeue()
Dequeues the PriorityQueue.first() element from the queue. |
char |
dequeueChar()
Dequeues the first element from the queue. |
void |
enqueue(char x)
Enqueues a new element. |
void |
enqueue(Character x)
Enqueues a new element. |
Character |
first()
Returns the first element of the queue. |
char |
firstChar()
Returns the front element of the queue. |
boolean |
isEmpty()
Checks whether the queue is empty. |
Character |
last()
Returns the last element of the queue, that is, the element the would be dequeued last (optional operation). |
char |
lastChar()
Returns the rear element of the queue, that is, the element the would be dequeued last (optional operation). |
int |
size()
Returns the number of elements in this queue. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
| Method Detail |
|---|
public void enqueue(char x)
CharPriorityQueue
enqueue in interface CharPriorityQueuex - the element to enqueue..public char dequeueChar()
CharPriorityQueue
dequeueChar in interface CharPriorityQueuepublic char firstChar()
CharPriorityQueue
firstChar in interface CharPriorityQueuepublic char lastChar()
CharPriorityQueue
lastChar in interface CharPriorityQueuepublic boolean isEmpty()
PriorityQueue
isEmpty in interface PriorityQueue<Character>public int size()
PriorityQueue
size in interface PriorityQueue<Character>public void clear()
PriorityQueue
clear in interface PriorityQueue<Character>public void changed()
PriorityQueue
changed in interface PriorityQueue<Character>public CharComparator comparator()
CharPriorityQueueNote that this specification strengthens the one given in PriorityQueue.comparator().
comparator in interface CharPriorityQueuecomparator in interface PriorityQueue<Character>null if it uses its elements' natural ordering.PriorityQueue.comparator()public void enqueue(Character x)
PriorityQueue
enqueue in interface PriorityQueue<Character>x - the element to enqueue..public Character dequeue()
PriorityQueuePriorityQueue.first() element from the queue.
dequeue in interface PriorityQueue<Character>public Character first()
PriorityQueue
first in interface PriorityQueue<Character>public Character last()
PriorityQueue
last in interface PriorityQueue<Character>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||