Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
38
class
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
fill
Method · 0.95
Tested by
no test coverage detected