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