MCPcopy 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
8public 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:
19Subtype

Callers

nothing calls this directly

Calls 3

setMethod · 0.65
getMethod · 0.65
fMethod · 0.65

Tested by

no test coverage detected