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

Method trimToSize

vm/JavaAPI/src/java/util/Vector.java:1010–1014  ·  view source on GitHub ↗

Sets the capacity of this vector to be the same as the size. @see #capacity @see #ensureCapacity @see #size

()

Source from the content-addressed store, hash-verified

1008 * @see #size
1009 */
1010 public synchronized void trimToSize() {
1011 if (elementData.length != elementCount) {
1012 grow(elementCount);
1013 }
1014 }
1015}

Callers 4

invoke2Method · 0.45
invoke4Method · 0.45
invoke9Method · 0.45
invoke46Method · 0.45

Calls 1

growMethod · 0.95

Tested by

no test coverage detected