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

Method shrink

ZezeJava/ZezeJava/src/main/java/Zeze/Util/LongHashSet.java:173–177  ·  view source on GitHub ↗
(int maxCap)

Source from the content-addressed store, hash-verified

171 }
172
173 public void shrink(int maxCap) {
174 int tableSize = tableSize(Math.max(maxCap, size));
175 if (tableSize < keyTable.length)
176 resize(tableSize);
177 }
178
179 public void ensureCapacity(int cap) {
180 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