enqueue(item) {
    if (this.getCount() >= this.maxSize_) {
      this.dequeue();
    }
    this.tail_.push(item);
  }
/**
   * Adds an item to the buffer.  Drops the last added item if the
   * buffer is full.
   * @param {T} item
   */
Adds an item to the buffer.  Drops the last added item if the
buffer is full.
@param {T} item
Adds an item to the buffer . Drops the last added item if the buffer is full . @param { T } item
enqueue(item) {
    if (this.getCount() >= this.maxSize_) {
      this.dequeue();
    }
    this.tail_.push(item);
  }
enqueue ( item ) { if ( this . getCount ( ) >= this . maxSize_ ) { this . dequeue ( ) ; } this . tail_ . push ( item ) ; }
Adds an item to the buffer.
Adds an item to the buffer .