T - the type of elements maintained by this Collectionpublic interface ObjectPriorityDequeue<T> extends ObjectPriorityQueue<T>
| Modifier and Type | Method and Description |
|---|---|
T |
dequeueLast()
A Method to remove a element from the last place instead of the first
|
void |
enqueueFirst(T e)
Method to insert a element into the first Index instead of the last.
|
default T |
last()
Peeking function for the last element
|
clear, comparator, dequeue, enqueue, first, isEmpty, onChanged, peek, remove, removeLast, size, toArray, toArrayvoid enqueueFirst(T e)
e - the element that should be inserted into the first placeT dequeueLast()
java.util.NoSuchElementException - if no element is in the dequedefault T last()