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

Method trimToSize

lib/java/util/Vector.java:1036–1040  ·  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

1034 * @see #size
1035 */
1036 public synchronized void trimToSize() {
1037 if (elementData.length != elementCount) {
1038 grow(elementCount);
1039 }
1040 }
1041
1042// private synchronized void writeObject(ObjectOutputStream stream)
1043// throws IOException {

Callers

nothing calls this directly

Calls 1

growMethod · 0.95

Tested by

no test coverage detected