push method

void push(
  1. T e
)

Implementation

void push(T e) {
  _list.addLast(e);

  if(this.cachedItems != -1 && _list.length > this.cachedItems) {
    this._list.removeFirst();
  }
}