Lines Matching refs:minimumCapacity
94 * <li>The <code>minimumCapacity</code> argument.
97 * If the <code>minimumCapacity</code> argument is nonpositive, this
100 * @param minimumCapacity the minimum desired capacity.
102 public void ensureCapacity(int minimumCapacity) {
103 if (minimumCapacity > 0)
104 ensureCapacityInternal(minimumCapacity);
111 private void ensureCapacityInternal(int minimumCapacity) {
113 if (minimumCapacity - value.length > 0)
114 expandCapacity(minimumCapacity);
121 void expandCapacity(int minimumCapacity) {
123 if (newCapacity - minimumCapacity < 0)
124 newCapacity = minimumCapacity;
126 if (minimumCapacity < 0) // overflow