MCPcopy Create free account
hub / github.com/e2wugui/zeze / shrink

Method shrink

ZezeJava/ZezeJava/src/main/java/Zeze/Util/IntHashMap.java:487–491  ·  view source on GitHub ↗
(int maxCap)

Source from the content-addressed store, hash-verified

485 }
486
487 public void shrink(int maxCap) {
488 final int tableSize = tableSize(Math.max(maxCap, size));
489 if (tableSize < keyTable.length)
490 resize(tableSize);
491 }
492
493 public void ensureCapacity(int cap) {
494 final int tableSize = tableSize(Math.max(cap, 0));

Callers

nothing calls this directly

Calls 2

tableSizeMethod · 0.95
resizeMethod · 0.95

Tested by

no test coverage detected