Lines Matching defs:capacity
61 * Creates an AbstractStringBuilder of the specified capacity.
63 AbstractStringBuilder(int capacity) {
64 value = new char[capacity];
78 * Returns the current capacity. The capacity is the amount of storage
82 * @return the current capacity
84 public int capacity() {
89 * Ensures that the capacity is at least equal to the specified minimum.
90 * If the current capacity is less than the argument, then a new internal
91 * array is allocated with greater capacity. The new capacity is the
95 * <li>Twice the old capacity, plus <code>2</code>.
100 * @param minimumCapacity the minimum desired capacity.
138 * returned by a subsequent call to the {@link #capacity()} method.