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

Method entrySet

onjava/CountMap.java:46–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 }
45 }
46 @Override
47 public Set<Map.Entry<Integer,String>> entrySet() {
48 // LinkedHashSet retains initialization order:
49 return IntStream.range(0, size)
50 .mapToObj(Entry::new)
51 .collect(Collectors
52 .toCollection(LinkedHashSet::new));
53 }
54 public static void main(String[] args) {
55 final int size = 6;
56 CountMap cm = new CountMap(60);

Callers 9

countMethod · 0.45
toStringMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
toStringMethod · 0.45
invertMethod · 0.45
showMethod · 0.45
showInvMethod · 0.45

Calls 1

rangeMethod · 0.80

Tested by

no test coverage detected