public interface BooleanPriorityQueue extends BooleanIterable
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
clears all elements within the PriorityQueue,
this does not resize the backing arrays
|
BooleanComparator |
comparator() |
BooleanPriorityQueue |
copy()
A Function that does a shallow clone of the PriorityQueue itself.
|
boolean |
dequeue()
Method to extract a element from the PriorityQueue
|
void |
enqueue(boolean e)
Method to insert a element into the PriorityQueue
|
default void |
enqueueAll(boolean... e)
Method to mass insert elements into the PriorityQueue
|
default void |
enqueueAll(boolean[] e,
int length)
Method to mass insert elements into the PriorityQueue
|
default void |
enqueueAll(boolean[] e,
int offset,
int length)
Method to mass insert elements into the PriorityQueue
|
default void |
enqueueAll(BooleanCollection c)
Method to mass insert elements into the PriorityQueue
|
default boolean |
first()
Shows the element that is to be returned next
|
default boolean |
isEmpty() |
void |
onChanged()
Allows to notify the Queue to be revalidate its data
|
boolean |
peek(int index)
Peeking function to see whats inside the queue.
|
boolean |
removeFirst(boolean e)
Removes the first found element in the queue
|
boolean |
removeLast(boolean e)
Removes the last found element in the queue
|
int |
size() |
default BooleanPriorityQueue |
synchronizeQueue()
Creates a Wrapped PriorityQueue that is Synchronized
|
default BooleanPriorityQueue |
synchronizeQueue(java.lang.Object mutex)
Creates a Wrapped PriorityQueue that is Synchronized
|
default boolean[] |
toBooleanArray()
A method to drop the contents of the Queue without clearing the queue
|
boolean[] |
toBooleanArray(boolean[] input)
A method to drop the contents of the Queue without clearing the queue
|
arrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, forEachIndexed, iterator, limit, map, matchesAll, matchesAny, matchesNone, peek, pour, pourAsList, reduce, reduce, repeat, sorted, spliteratordefault boolean isEmpty()
int size()
void clear()
void enqueue(boolean e)
e - the element that should be inserteddefault void enqueueAll(boolean... e)
e - the elements that should be inserteddefault void enqueueAll(boolean[] e,
int length)
e - the elements that should be insertedlength - the amount of elements that should be inserteddefault void enqueueAll(boolean[] e,
int offset,
int length)
e - the elements that should be insertedoffset - the offset where in the array should be startedlength - the amount of elements that should be inserteddefault void enqueueAll(BooleanCollection c)
c - the elements that should be inserted from the Collectionboolean dequeue()
java.util.NoSuchElementException - if no element is presentboolean peek(int index)
index - of the element that is requested to be viewed.default boolean first()
boolean removeFirst(boolean e)
e - the element that should be removedboolean removeLast(boolean e)
e - the element that should be removedvoid onChanged()
BooleanPriorityQueue copy()
BooleanComparator comparator()
default BooleanPriorityQueue synchronizeQueue()
BooleanPriorityQueues.synchronize(speiger.src.collections.booleans.queues.BooleanPriorityQueue)default BooleanPriorityQueue synchronizeQueue(java.lang.Object mutex)
mutex - is the controller of the synchronization blockBooleanPriorityQueues.synchronize(speiger.src.collections.booleans.queues.BooleanPriorityQueue)default boolean[] toBooleanArray()
toBooleanArray in interface BooleanIterableboolean[] toBooleanArray(boolean[] input)
input - where the elements should be inserted to. If it does not fit then it creates a new appropiatly created array