push method
void
push(
- T e
Implementation
void push(T e) {
_list.addLast(e);
if(this.cachedItems != -1 && _list.length > this.cachedItems) {
this._list.removeFirst();
}
}
void push(T e) {
_list.addLast(e);
if(this.cachedItems != -1 && _list.length > this.cachedItems) {
this._list.removeFirst();
}
}