MCPcopy 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

mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80

Calls 1

streamMethod · 0.95

Tested by

no test coverage detected