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

Method show

streams/Matching.java:14–21  ·  view source on GitHub ↗
(Matcher match, int val)

Source from the content-addressed store, hash-verified

12
13public class Matching {
14 static void show(Matcher match, int val) {
15 System.out.println(
16 match.test(
17 IntStream.rangeClosed(1, 9)
18 .boxed()
19 .peek(n -> System.out.format("%d ", n)),
20 n -> n < val));
21 }
22 public static void main(String[] args) {
23 show(Stream::allMatch, 10);
24 show(Stream::allMatch, 4);

Callers 1

mainMethod · 0.95

Calls 4

peekMethod · 0.80
boxedMethod · 0.80
testMethod · 0.65
formatMethod · 0.45

Tested by

no test coverage detected