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

Method clear

ZezeJava/ZezeJava/src/main/java/Zeze/Util/IntHashMap.java:465–473  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

463 }
464
465 public void clear() {
466 if (size == 0)
467 return;
468 size = 0;
469 hasZeroValue = false;
470 zeroValue = null;
471 Arrays.fill(keyTable, 0);
472 Arrays.fill(valueTable, null);
473 }
474
475 public void clear(int maxCap) {
476 final int tableSize = tableSize(Math.max(maxCap, 0));

Callers 1

testIntHashMapMethod · 0.95

Calls 3

tableSizeMethod · 0.95
resizeMethod · 0.95
fillMethod · 0.80

Tested by 1

testIntHashMapMethod · 0.76