Created
December 18, 2016 13:52
-
-
Save ru-rocker/791761358ad024215df63eb53077c5f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Supplier<Stream<Integer>> supplier = () -> Stream.of(1, 2, 3, 4); | |
boolean anyMatch = supplier.get().anyMatch(s -> s > 0); | |
System.out.println(anyMatch);// true | |
boolean noneMatch = supplier.get().noneMatch(s -> s > 0); | |
System.out.println(noneMatch);// false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment