Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BruceEckel/OnJava8-Examples
/ list
Method
list
reflection/pets/Creator.java:34–37 ·
view source on GitHub ↗
(int size)
Source
from the content-addressed store, hash-verified
32
return
stream().limit(size).toArray(Pet[]::
new
);
33
}
34
public
List<Pet> list(
int
size) {
35
return
stream().limit(size)
36
.collect(Collectors.toCollection(ArrayList::
new
));
37
}
38
}
Callers
10
main
Method · 0.80
main
Method · 0.80
main
Method · 0.80
main
Method · 0.80
main
Method · 0.80
main
Method · 0.80
main
Method · 0.80
main
Method · 0.80
main
Method · 0.80
main
Method · 0.80
Calls
1
stream
Method · 0.95
Tested by
no test coverage detected