/** * Grows the set to a larger number of bits. * @param bit element that must fit in set */ public void growToInclude(int bit) { int newSize = Math.max(bits.length << 1, numWordsToHold(bit)); long newbits[] = new long[newSize]; System.arraycopy(bits, 0, newbits, 0, bits.length); bits = newbits; }