trimToSize

Re-allocates the internal buffer to not consume any memory beyond what is necessary to store the bits. This trims any spare capacity, and should only be used if the BitSet is not expected to grow further, and memory is a concern. If the set might grow again, this is almost certainly not worth it.