add method

  1. @override
void add(
  1. E value
)
override

Adds value at the end of the queue.

Implementation

@override
void add(E value) {
  if (length >= _capacity) {
    L.d('EvictingQueue超出容量, 移除首元素');
    removeFirst();
  }
  super.add(value);
}