Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BruceEckel/OnJava8-Examples
/ main
Method
main
generics/CRGWithBasicHolder.java:9–16 ·
view source on GitHub ↗
(String[] args)
Source
from the content-addressed store, hash-verified
7
8
public
class
CRGWithBasicHolder {
9
public
static
void
main(String[] args) {
10
Subtype
11
st1 =
new
Subtype(),
12
st2 =
new
Subtype();
13
st1.set(st2);
14
Subtype st3 = st1.get();
15
st1.f();
16
}
17
}
18
/* Output:
19
Subtype
Callers
nothing calls this directly
Calls
3
set
Method · 0.65
get
Method · 0.65
f
Method · 0.65
Tested by
no test coverage detected