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

Method Foo2

generics/FactoryConstraint.java:40–42  ·  view source on GitHub ↗
(Supplier<T> factory)

Source from the content-addressed store, hash-verified

38class Foo2<T> {
39 private List<T> x = new ArrayList<>();
40 Foo2(Supplier<T> factory) {
41 Suppliers.fill(x, factory, 5);
42 }
43 @Override public String toString() {
44 return x.toString();
45 }

Callers

nothing calls this directly

Calls 1

fillMethod · 0.95

Tested by

no test coverage detected