java predicate1 Java - 함수형 인터페이스(Predicate) 합성 and(), or(), negate()로 두 Predicate를 하나로 합성할 수 있다. Predicate p = i -> i i i%2 == 0; Predicate notP = p.negate(); // i >= 10 Predicate all = notP.and(q).or(r); // 10 2017. 3. 1. 이전 1 다음