RFR: JDK-8050818 Predicate::not - provide an easier way to negate a predicate (original) (raw)
Zheka Kozlov orionllmain at gmail.com
Tue May 29 13:10:36 UTC 2018
- Previous message: RFR: JDK-8050818 Predicate::not - provide an easier way to negate a predicate
- Next message: RFR: JDK-8050818 Predicate::not - provide an easier way to negate a predicate
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
What about "not null" predicate? This is also very common. Right now it is
possible via Objects::nonNull
but many people do not know about this
method. So, having a Predicate.notNull
method would be nice.
2018-05-29 19:52 GMT+07:00 Jim Laskey <james.laskey at oracle.com>:
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
- Previous message: RFR: JDK-8050818 Predicate::not - provide an easier way to negate a predicate
- Next message: RFR: JDK-8050818 Predicate::not - provide an easier way to negate a predicate
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]