MCPcopy Create free account
hub / github.com/davidgiven/luje / addElement

Method addElement

lib/java/util/Vector.java:221–227  ·  view source on GitHub ↗

Adds the specified object at the end of this vector. @param object the object to add to the vector.

(E object)

Source from the content-addressed store, hash-verified

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

Callers 1

addFileMethod · 0.80

Calls 1

growByOneMethod · 0.95

Tested by

no test coverage detected