Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
testLongHashSet
Method · 0.95
Calls
3
tableSize
Method · 0.95
resize
Method · 0.95
fill
Method · 0.80
Tested by
1
testLongHashSet
Method · 0.76