Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Hypnotic-Development/Hypnotic-Client
/ get
Method
get
src/main/java/dev/hypnotic/utils/Pool.java:30–33 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
28
}
29
30
public
synchronized T get() {
31
if
(items.size() > 0)
return
items.poll();
32
return
producer.create();
33
}
34
35
public
synchronized
void
free(T obj) {
36
items.offer(obj);
Callers
nothing calls this directly
Calls
2
create
Method · 0.80
size
Method · 0.45
Tested by
no test coverage detected