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