public A next ( ) { A x = elems . head ; if ( ! elems . isEmpty ( ) ) { elems = elems . tail ; if ( elems . isEmpty ( ) ) last = null ; count -- ; } return x ; }
Return first element in this buffer and remove