public static class CharPriorityQueues.SynchronizedPriorityQueue extends java.lang.Object implements CharPriorityQueue
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
clears all elements within the PriorityQueue,
this does not resize the backing arrays
|
CharComparator |
comparator() |
CharPriorityQueue |
copy()
A Function that does a shallow clone of the PriorityQueue itself.
|
int |
count(Char2BooleanFunction filter)
Helper function to reduce stream usage that allows to count the valid elements.
|
char |
dequeue()
Method to extract a element from the PriorityQueue
|
void |
enqueue(char e)
Method to insert a element into the PriorityQueue
|
void |
enqueueAll(char[] e,
int offset,
int length)
Method to mass insert elements into the PriorityQueue
|
void |
enqueueAll(CharCollection c)
Method to mass insert elements into the PriorityQueue
|
char |
findFirst(Char2BooleanFunction filter)
Helper function to reduce stream usage that allows to filter for the first match.
|
void |
forEach(CharConsumer action)
A Type Specific foreach function that reduces (un)boxing
|
<E> void |
forEach(E input,
ObjectCharConsumer<E> action)
Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.
|
CharIterator |
iterator()
Returns an iterator over elements of type
T. |
boolean |
matchesAll(Char2BooleanFunction filter)
Helper function to reduce stream usage that allows to filter for all matches.
|
boolean |
matchesAny(Char2BooleanFunction filter)
Helper function to reduce stream usage that allows to filter for any matches.
|
boolean |
matchesNone(Char2BooleanFunction filter)
Helper function to reduce stream usage that allows to filter for no matches.
|
void |
onChanged()
Allows to notify the Queue to be revalidate its data
|
char |
peek(int index)
Peeking function to see whats inside the queue.
|
boolean |
removeFirst(char e)
Removes the first found element in the queue
|
boolean |
removeLast(char e)
Removes the last found element in the queue
|
int |
size() |
char[] |
toCharArray(char[] input)
A method to drop the contents of the Queue without clearing the queue
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenqueueAll, enqueueAll, first, isEmpty, synchronizeQueue, synchronizeQueue, toCharArrayarrayflatMap, asAsync, distinct, filter, flatMap, forEach, limit, map, peek, pour, pourAsList, pourAsSet, reduce, reduce, sorted, spliteratorpublic CharIterator iterator()
CharIterableT.iterator in interface java.lang.Iterable<java.lang.Character>iterator in interface CharIterablepublic int size()
size in interface CharPriorityQueuepublic void clear()
CharPriorityQueueclear in interface CharPriorityQueuepublic void enqueue(char e)
CharPriorityQueueenqueue in interface CharPriorityQueuee - the element that should be insertedpublic void enqueueAll(char[] e,
int offset,
int length)
CharPriorityQueueenqueueAll in interface CharPriorityQueuee - the elements that should be insertedoffset - the offset where in the array should be startedlength - the amount of elements that should be insertedpublic void enqueueAll(CharCollection c)
CharPriorityQueueenqueueAll in interface CharPriorityQueuec - the elements that should be inserted from the Collectionpublic char dequeue()
CharPriorityQueuedequeue in interface CharPriorityQueuepublic char peek(int index)
CharPriorityQueuepeek in interface CharPriorityQueueindex - of the element that is requested to be viewed.public boolean removeFirst(char e)
CharPriorityQueueremoveFirst in interface CharPriorityQueuee - the element that should be removedpublic boolean removeLast(char e)
CharPriorityQueueremoveLast in interface CharPriorityQueuee - the element that should be removedpublic void onChanged()
CharPriorityQueueonChanged in interface CharPriorityQueuepublic CharComparator comparator()
comparator in interface CharPriorityQueuepublic char[] toCharArray(char[] input)
CharPriorityQueuetoCharArray in interface CharPriorityQueueinput - where the elements should be inserted to. If it does not fit then it creates a new appropiatly created arraypublic CharPriorityQueue copy()
CharPriorityQueuecopy in interface CharPriorityQueuepublic void forEach(CharConsumer action)
CharIterableforEach in interface CharIterableaction - The action to be performed for each elementIterable.forEach(Consumer)public <E> void forEach(E input,
ObjectCharConsumer<E> action)
CharIterableforEach in interface CharIterableE - the generic type of the Objectinput - the object that should be includedaction - The action to be performed for each elementpublic boolean matchesAny(Char2BooleanFunction filter)
CharIterablematchesAny in interface CharIterablefilter - that should be appliedpublic boolean matchesNone(Char2BooleanFunction filter)
CharIterablematchesNone in interface CharIterablefilter - that should be appliedpublic boolean matchesAll(Char2BooleanFunction filter)
CharIterablematchesAll in interface CharIterablefilter - that should be appliedpublic char findFirst(Char2BooleanFunction filter)
CharIterablefindFirst in interface CharIterablefilter - that should be appliedpublic int count(Char2BooleanFunction filter)
CharIterablecount in interface CharIterablefilter - that should be applied