Lines Matching defs:capacity
64 * Constructs a new vector using the default capacity.
71 * Constructs a new vector using the specified capacity.
73 * @param capacity
74 * the initial capacity of the new vector.
76 * if {@code capacity} is negative.
78 public Vector(int capacity) {
79 this(capacity, 0);
83 * Constructs a new vector using the specified capacity and capacity
86 * @param capacity
87 * the initial capacity of the new vector.
89 * the amount to increase the capacity when this vector is full.
91 * if {@code capacity} is negative.
93 public Vector(int capacity, int capacityIncrement) {
94 if (capacity < 0) {
95 throw new IllegalArgumentException("capacity < 0: " + capacity);
97 elementData = newElementArray(capacity);
231 * @return the capacity of this vector.
235 public synchronized int capacity() {
251 * Returns a new vector with the same elements, size, capacity and capacity
366 * @see #capacity
745 * capacity unchanged.
1037 * Sets the capacity of this vector to be the same as the size.
1039 * @see #capacity