public void fastFlip ( int index ) { assert index >= 0 && index < numBits ; int wordNum = index >> 6 ; // div 64 int bit = index & 0x3f ; // mod 64 long bitmask = 1L << bit ; bits [ wordNum ] ^= bitmask ; }
flips a bit . The index should be less than the OpenBitSet size .