public boolean getBit ( int index ) { assertValidIndex ( index ) ; int word = index / WORD_LENGTH ; int offset = index % WORD_LENGTH ; return ( data [ word ] & ( 1 << offset ) ) != 0 ; }
Returns the bit at the specified index .