Lines Matching defs:nbits
148 * {@code nbits-1}. All bits are initially {@code false}.
150 * @param nbits the initial size of the bit set
154 public BitSet(int nbits) {
155 // nbits can't be negative; size 0 is OK
156 if (nbits < 0)
157 throw new NegativeArraySizeException("nbits < 0: " + nbits);
159 initWords(nbits);
163 private void initWords(int nbits) {
164 words = new long[wordIndex(nbits-1) + 1];