@ Override public boolean add ( E e ) { if ( e == null ) throw new NullPointerException ( "e == null" ) ; elements [ tail ] = e ; if ( ( tail = ( tail + 1 ) & ( elements . length - 1 ) ) == head ) doubleCapacity ( ) ; return true ; }
Inserts the specified element at the end of this queue .