private void ensureCapacity(int value){
  if (value >= Bits.getMax(bits)) {
    int[] newBits=Bits.makeBitSet(Math.max(value + 1,2 * Bits.getMax(bits)));
    System.arraycopy(bits,0,newBits,0,bits.length);
    bits=newBits;
  }
}

private void ensureCapacity ( int value ) { if ( value >= Bits . getMax ( bits ) ) { int [ ] newBits = Bits . makeBitSet ( Math . max ( value + 1 , 2 * Bits . getMax ( bits ) ) ) ; System . arraycopy ( bits , 0 , newBits , 0 , bits . length ) ; bits = newBits ; } }
ensures that the bit set has the capacity to represent the given value .
