Lines Matching defs:minCapacity
85 * @param minCapacity the desired minimum capacity
86 * @throws OutOfMemoryError if {@code minCapacity < 0}. This is
88 * {@code (long) Integer.MAX_VALUE + (minCapacity - Integer.MAX_VALUE)}.
90 private void ensureCapacity(int minCapacity) {
92 if (minCapacity - buf.length > 0)
93 grow(minCapacity);
100 * @param minCapacity the desired minimum capacity
102 private void grow(int minCapacity) {
106 if (newCapacity - minCapacity < 0)
107 newCapacity = minCapacity;
109 if (minCapacity < 0) // overflow