(int bitIndex)
| 244 | } |
| 245 | |
| 246 | @Override |
| 247 | public void flip(int bitIndex) { |
| 248 | if ((bitIndex + 1) < 1) { |
| 249 | throw new IndexOutOfBoundsException("bitIndex=" + bitIndex); |
| 250 | } |
| 251 | if (bitIndex >= bitsLength) { |
| 252 | resize(bitIndex); |
| 253 | } |
| 254 | final int w = wordIndex(bitIndex); |
| 255 | final int w1 = level1Index(w); |
| 256 | final int w2 = level2Index(w); |
| 257 | long[] a3 = getOrCreateBlock(w1, w2); |
| 258 | a3[level3Index(w)] ^= (1L << bitIndex); // Flip the designated bit |
| 259 | invalidateState(); |
| 260 | } |
| 261 | |
| 262 | @Override |
| 263 | public int nextSetBit(int fromIndex) { |
nothing calls this directly
no test coverage detected