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

Method showInv

onjava/HTMLColors.java:221–228  ·  view source on GitHub ↗
(Map<String,Integer> m, int count)

Source from the content-addressed store, hash-verified

219 showrgb(lst, lst.size());
220 }
221 public static
222 void showInv(Map<String,Integer> m, int count) {
223 m.entrySet().stream()
224 .limit(count)
225 .forEach(e ->
226 System.out.format(
227 "%-20s 0x%06X%n", e.getKey(), e.getValue()));
228 }
229 public static void showInv(Map<String,Integer> m) {
230 showInv(m, m.size());
231 }

Callers 1

mainMethod · 0.80

Calls 6

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

Tested by 1

mainMethod · 0.64