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

Method array

reflection/pets/Creator.java:31–33  ·  view source on GitHub ↗
(int size)

Source from the content-addressed store, hash-verified

29 return Stream.generate(this);
30 }
31 public Pet[] array(int size) {
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));

Callers

nothing calls this directly

Calls 1

streamMethod · 0.95

Tested by

no test coverage detected