public final Object dequeue ( ) throws NoSuchElementException { // if (tc.isEntryEnabled()) // SibTr.entry(tc, "dequeue"); if ( m_head == m_tail ) throw new NoSuchElementException ( ) ; Object obj = m_array [ m_head ] ; m_array [ m_head ++ ] = null ; if ( m_head == m_array . length ) m_head = 0 ; // if (tc.isEntryEnabled()) // SibTr.exit(tc, "dequeue", obj); return obj ; }
Return the first element on the queue .