(int fromIndex, int toIndex)
| 33 | } |
| 34 | |
| 35 | private static long getTrueMask(int fromIndex, int toIndex) { |
| 36 | int currentRange = toIndex - fromIndex; |
| 37 | return (MASK >>> (BITS_PER_LONG - currentRange)) << (fromIndex % BITS_PER_LONG); |
| 38 | } |
| 39 | |
| 40 | public BitSet(int bitLength) { |
| 41 | if (bitLength % BITS_PER_LONG == 0) { |