(E object)
| 219 | /// |
| 220 | /// - `object`: the object to add to the vector. |
| 221 | public synchronized void addElement(E object) { |
| 222 | if (elementCount == elementData.length) { |
| 223 | growByOne(); |
| 224 | } |
| 225 | elementData[elementCount++] = object; |
| 226 | modCount++; |
| 227 | } |
| 228 | |
| 229 | /// Returns the number of elements this vector can hold without growing. |
| 230 | /// |
no test coverage detected