public void addFirst ( E e ) { if ( e == null ) throw new NullPointerException ( ) ; elements [ head = ( head - 1 ) & ( elements . length - 1 ) ] = e ; if ( head == tail ) doubleCapacity ( ) ; }
Inserts the specified element at the front of this deque .