add method

  1. @override
void add(
  1. E element
)
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

@override
void add(E element) {
  _modificationCount++;
  _add(element);
}