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

Method clear

ZezeJava/ZezeJava/src/main/java/Zeze/Util/LongHashSet.java:154–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152 }
153
154 public void clear() {
155 if (size == 0)
156 return;
157 size = 0;
158 hasZeroKey = false;
159 Arrays.fill(keyTable, 0);
160 }
161
162 public void clear(int maxCap) {
163 int tableSize = tableSize(Math.max(maxCap, 0));

Callers 1

testLongHashSetMethod · 0.95

Calls 3

tableSizeMethod · 0.95
resizeMethod · 0.95
fillMethod · 0.80

Tested by 1

testLongHashSetMethod · 0.76