add method
override
Adds element to the queue.
The element will become the next to be removed by removeFirst when all elements with higher priority have been removed.
Implementation
void add(E element) {
_add(element);
}
Adds element to the queue.
The element will become the next to be removed by removeFirst when all elements with higher priority have been removed.
void add(E element) {
_add(element);
}