MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / grow

Method grow

Ports/CLDC11/src/java/util/Vector.java:479–484  ·  view source on GitHub ↗
(int newCapacity)

Source from the content-addressed store, hash-verified

477 }
478
479 private void grow(int newCapacity) {
480 E[] newData = newElementArray(newCapacity);
481 // Assumes elementCount is <= newCapacity
482 System.arraycopy(elementData, 0, newData, 0, elementCount);
483 elementData = newData;
484 }
485
486 /// JIT optimization
487 private void growByOne() {

Callers 2

ensureCapacityMethod · 0.95
trimToSizeMethod · 0.95

Calls 2

newElementArrayMethod · 0.95
arraycopyMethod · 0.95

Tested by

no test coverage detected