Created
December 16, 2015 08:54
-
-
Save codeaholicguy/9961ac202364c959a476 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
Predicate<Person> p1 = p -> p.getAge() > 20; | |
Predicate<Person> p2 = p -> p.getAge() < 30; | |
Predicate<Person> p3 = p -> p.getGender().equals("male"); | |
Predicate<Person> p = p1.and(p2).and(p3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment