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

Method toString

onjava/TypeCounter.java:33–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 }
32 }
33 @Override public String toString() {
34 String result = entrySet().stream()
35 .map(pair -> String.format("%s=%s",
36 pair.getKey().getSimpleName(),
37 pair.getValue()))
38 .collect(Collectors.joining(", "));
39 return "{" + result + "}";
40 }
41}

Callers

nothing calls this directly

Calls 5

streamMethod · 0.45
entrySetMethod · 0.45
formatMethod · 0.45
getKeyMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected