MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / put

Method put

patterns/SingletonPattern.java:28–30  ·  view source on GitHub ↗
(Resource<T> r, T val)

Source from the content-addressed store, hash-verified

26 System.out.println(val);
27 }
28 public static <T> void put(Resource<T> r, T val) {
29 r.set(val);
30 }
31 public static void main(String[] args) {
32 System.out.println("Inside main()");
33 Resource<Integer> ir =

Callers 1

mainMethod · 0.95

Calls 1

setMethod · 0.65

Tested by

no test coverage detected