RFR: CSR - JDK-8203428 Predicate::not
paul.sandoz at oracle.com
Fri May 18 17:54:59 UTC 2018
> On May 18, 2018, at 9:35 AM, Jim Laskey <james.laskey at oracle.com> wrote:
> Introduce a new static method Predicate::not which will allow developers to negate predicate lambdas trivially.
> csr: https://bugs.openjdk.java.net/browse/JDK-8203428
+1 thank you for taking action on this.
Predicate not captures the majority use case very concisely and clearly.
I am reluctant to go for an alternative or companion Predicate.of, and would need to think carefully about that idiom and it's application on other functional interfaces (perhaps we went too far adding such default methods to these interfaces…).
More information about the core-libs-dev