Searched defs:minimumCapacity (Results 1 - 2 of 2) sorted by relevance

/openjdk7/jdk/src/share/classes/java/lang/
H A DAbstractStringBuilder.java94 * <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) { argument
103 if (minimumCapacity > 0)
104 ensureCapacityInternal(minimumCapacity);
111 private void ensureCapacityInternal(int minimumCapacity) { argument
113 if (minimumCapacity - value.length > 0)
114 expandCapacity(minimumCapacity);
121 void expandCapacity(int minimumCapacity) { argument
[all...]
H A DStringBuffer.java152 public synchronized void ensureCapacity(int minimumCapacity) { argument
153 if (minimumCapacity > value.length) {
154 expandCapacity(minimumCapacity);

Completed in 3861 milliseconds