Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BruceEckel/OnJava8-Examples
/ Shelf
Method
Shelf
generics/Store.java:39–41 ·
view source on GitHub ↗
(int nProducts)
Source
from the content-addressed store, hash-verified
37
38
class
Shelf extends ArrayList<Product> {
39
Shelf(
int
nProducts) {
40
Suppliers.fill(this, Product.generator, nProducts);
41
}
42
}
43
44
class
Aisle extends ArrayList<Shelf> {
Callers
nothing calls this directly
Calls
1
fill
Method · 0.95
Tested by
no test coverage detected