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

Method get

streams/RandomWords.java:23–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 }
22 }
23 @Override public String get() {
24 return words.get(rand.nextInt(words.size()));
25 }
26 @Override public String toString() {
27 return words.stream()
28 .collect(Collectors.joining(" "));

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
sizeMethod · 0.45

Tested by

no test coverage detected