I can\'t get it to compile, is it even possible to chain predicate lambdas?
Arrays.asList(\"1\",\"2\",\"3\").stream().filter( (e -> e==\"1\" ).or(e-> e
Predicate pred1 = "1"::equals; Predicate pred2 = "2"::equals; public void tester(){ Arrays.asList("1","2","3").stream().filter(pred1.or(pred2)).count(); }
You can move your separate your conditions to make it possible to recombine them other ways.