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

Method main

arrays/ParameterizedArrayType.java:15–24  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

13
14public class ParameterizedArrayType {
15 public static void main(String[] args) {
16 Integer[] ints = { 1, 2, 3, 4, 5 };
17 Double[] doubles = { 1.1, 2.2, 3.3, 4.4, 5.5 };
18 Integer[] ints2 =
19 new ClassParameter<Integer>().f(ints);
20 Double[] doubles2 =
21 new ClassParameter<Double>().f(doubles);
22 ints2 = MethodParameter.f(ints);
23 doubles2 = MethodParameter.f(doubles);
24 }
25}

Callers

nothing calls this directly

Calls 2

fMethod · 0.95
fMethod · 0.65

Tested by

no test coverage detected