public interface CharPriorityQueue extends ObjectPriorityQueue<java.lang.Character>, CharIterable
| Modifier and Type | Method and Description |
|---|---|
CharComparator |
comparator() |
default java.lang.Character |
dequeue()
Deprecated.
|
char |
dequeueChar()
Method to extract a element from the PriorityQueue
|
default void |
enqueue(java.lang.Character e)
Deprecated.
|
void |
enqueueChar(char e)
Method to insert a element into the PriorityQueue
|
default java.lang.Character |
first()
Deprecated.
|
default char |
firstChar()
Shows the element that is to be returned next
|
void |
onChanged()
Allows to notify the Queue to be revalidate its data
|
default java.lang.Character |
peek(int index)
Deprecated.
|
char |
peekChar(int index)
Peeking function to see whats inside the queue.
|
default boolean |
remove(java.lang.Character e)
Deprecated.
|
boolean |
removeChar(char e)
Removes the first found element in the queue
|
default boolean |
removeLast(java.lang.Character e)
Deprecated.
|
boolean |
removeLastChar(char e)
Removes the last found element in the queue
|
default java.lang.Character[] |
toArray()
Deprecated.
|
java.lang.Character[] |
toArray(java.lang.Character[] input)
Deprecated.
|
default char[] |
toCharArray()
A method to drop the contents of the Queue without clearing the queue
|
char[] |
toCharArray(char[] input)
A method to drop the contents of the Queue without clearing the queue
|
clear, isEmpty, sizeforEach, forEach, iterator, spliteratorvoid enqueueChar(char e)
e - the element that should be insertedchar dequeueChar()
java.util.NoSuchElementException - if no element is presentchar peekChar(int index)
index - of the element that is requested to be viewed.default char firstChar()
boolean removeChar(char e)
e - the element that should be removedboolean removeLastChar(char e)
e - the element that should be removedvoid onChanged()
onChanged in interface ObjectPriorityQueue<java.lang.Character>CharComparator comparator()
comparator in interface ObjectPriorityQueue<java.lang.Character>default char[] toCharArray()
char[] toCharArray(char[] input)
input - where the elements should be inserted to. If it does not fit then it creates a new appropiatly created array@Deprecated default void enqueue(java.lang.Character e)
ObjectPriorityQueueenqueue in interface ObjectPriorityQueue<java.lang.Character>e - the element that should be inserted@Deprecated default java.lang.Character dequeue()
ObjectPriorityQueuedequeue in interface ObjectPriorityQueue<java.lang.Character>@Deprecated default java.lang.Character peek(int index)
ObjectPriorityQueuepeek in interface ObjectPriorityQueue<java.lang.Character>index - of the element that is requested to be viewed.@Deprecated default java.lang.Character first()
ObjectPriorityQueuefirst in interface ObjectPriorityQueue<java.lang.Character>@Deprecated default boolean remove(java.lang.Character e)
ObjectPriorityQueueremove in interface ObjectPriorityQueue<java.lang.Character>e - the element that should be removed@Deprecated default boolean removeLast(java.lang.Character e)
ObjectPriorityQueueremoveLast in interface ObjectPriorityQueue<java.lang.Character>e - the element that should be removed@Deprecated default java.lang.Character[] toArray()
ObjectPriorityQueuetoArray in interface ObjectPriorityQueue<java.lang.Character>@Deprecated java.lang.Character[] toArray(java.lang.Character[] input)
ObjectPriorityQueuetoArray in interface ObjectPriorityQueue<java.lang.Character>input - where the elements should be inserted to. If it does not fit then it creates a new appropiatly created array