RFR: JDK-8050818 Predicate::not - provide an easier way to negate a predicate

Paul Sandoz paul.sandoz at oracle.com
Wed May 30 17:41:48 UTC 2018


+1

—

Actually… even small API tweaks are not easy :-), this got me thinking whether this method should explicitly state negate is called, since it has implications for subtypes. Something to consider as a follow on tweak perhaps.

Paul.

> On May 29, 2018, at 5:52 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.
> 
> webrev: http://cr.openjdk.java.net/~jlaskey/8050818/webrev/index.html
> bug: https://bugs.openjdk.java.net/browse/JDK-8050818
> csr: https://bugs.openjdk.java.net/browse/JDK-8203428
> 



More information about the core-libs-dev mailing list