/** * Expand the absolute capacity of the builder so it can accept at least * the specified number of elements without being resized. */ Builder<E> ensureCapacity(int minCapacity) { if (contents.length < minCapacity) { contents = ObjectArrays.arraysCopyOf( contents, expandedCapacity(contents.length, minCapacity)); } return this; }