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

Method ensureCapacity

Ports/CLDC11/src/java/util/Vector.java:383–390  ·  view source on GitHub ↗
(int minimumCapacity)

Source from the content-addressed store, hash-verified

381 ///
382 /// - #capacity
383 public synchronized void ensureCapacity(int minimumCapacity) {
384 if (elementData.length < minimumCapacity) {
385 int next = (capacityIncrement <= 0 ? elementData.length
386 : capacityIncrement)
387 + elementData.length;
388 grow(minimumCapacity > next ? minimumCapacity : next);
389 }
390 }
391
392 /// Compares the specified object to this vector and returns if they are
393 /// equal. The object must be a List which contains the same objects in the

Callers 1

setSizeMethod · 0.95

Calls 1

growMethod · 0.95

Tested by

no test coverage detected