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

Method showrgb

onjava/HTMLColors.java:212–217  ·  view source on GitHub ↗
(Collection<Integer> lst, int count)

Source from the content-addressed store, hash-verified

210 show(lst, lst.size());
211 }
212 public static
213 void showrgb(Collection<Integer> lst, int count) {
214 lst.stream()
215 .limit(count)
216 .forEach(n -> System.out.format("0x%06X%n", n));
217 }
218 public static void showrgb(Collection<Integer> lst) {
219 showrgb(lst, lst.size());
220 }

Callers 1

mainMethod · 0.80

Calls 3

streamMethod · 0.45
formatMethod · 0.45
sizeMethod · 0.45

Tested by 1

mainMethod · 0.64