public interface LongPriorityQueue extends ObjectPriorityQueue<java.lang.Long>, LongIterable
| Modifier and Type | Method and Description |
|---|---|
LongComparator |
comparator() |
default java.lang.Long |
dequeue()
Deprecated.
|
long |
dequeueLong()
Method to extract a element from the PriorityQueue
|
default void |
enqueue(java.lang.Long e)
Deprecated.
|
void |
enqueueLong(long e)
Method to insert a element into the PriorityQueue
|
default java.lang.Long |
first()
Deprecated.
|
default long |
firstLong()
Shows the element that is to be returned next
|
void |
onChanged()
Allows to notify the Queue to be revalidate its data
|
default java.lang.Long |
peek(int index)
Deprecated.
|
long |
peekLong(int index)
Peeking function to see whats inside the queue.
|
default boolean |
remove(java.lang.Long e)
Deprecated.
|
default boolean |
removeLast(java.lang.Long e)
Deprecated.
|
boolean |
removeLastLong(long e)
Removes the last found element in the queue
|
boolean |
removeLong(long e)
Removes the first found element in the queue
|
default java.lang.Long[] |
toArray()
Deprecated.
|
java.lang.Long[] |
toArray(java.lang.Long[] input)
Deprecated.
|
default long[] |
toLongArray()
A method to drop the contents of the Queue without clearing the queue
|
long[] |
toLongArray(long[] input)
A method to drop the contents of the Queue without clearing the queue
|
clear, isEmpty, sizeforEach, forEach, iterator, spliteratorvoid enqueueLong(long e)
e - the element that should be insertedlong dequeueLong()
java.util.NoSuchElementException - if no element is presentlong peekLong(int index)
index - of the element that is requested to be viewed.default long firstLong()
boolean removeLong(long e)
e - the element that should be removedboolean removeLastLong(long e)
e - the element that should be removedvoid onChanged()
onChanged in interface ObjectPriorityQueue<java.lang.Long>LongComparator comparator()
comparator in interface ObjectPriorityQueue<java.lang.Long>default long[] toLongArray()
long[] toLongArray(long[] 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.Long e)
ObjectPriorityQueueenqueue in interface ObjectPriorityQueue<java.lang.Long>e - the element that should be inserted@Deprecated default java.lang.Long dequeue()
ObjectPriorityQueuedequeue in interface ObjectPriorityQueue<java.lang.Long>@Deprecated default java.lang.Long peek(int index)
ObjectPriorityQueuepeek in interface ObjectPriorityQueue<java.lang.Long>index - of the element that is requested to be viewed.@Deprecated default java.lang.Long first()
ObjectPriorityQueuefirst in interface ObjectPriorityQueue<java.lang.Long>@Deprecated default boolean remove(java.lang.Long e)
ObjectPriorityQueueremove in interface ObjectPriorityQueue<java.lang.Long>e - the element that should be removed@Deprecated default boolean removeLast(java.lang.Long e)
ObjectPriorityQueueremoveLast in interface ObjectPriorityQueue<java.lang.Long>e - the element that should be removed@Deprecated default java.lang.Long[] toArray()
ObjectPriorityQueuetoArray in interface ObjectPriorityQueue<java.lang.Long>@Deprecated java.lang.Long[] toArray(java.lang.Long[] input)
ObjectPriorityQueuetoArray in interface ObjectPriorityQueue<java.lang.Long>input - where the elements should be inserted to. If it does not fit then it creates a new appropiatly created array