Predicates?
Mike Duigou
mike.duigou at oracle.com
Thu Apr 18 11:56:40 PDT 2013
On Apr 18 2013, at 11:38 , Michael Nascimento wrote:
> Hi folks,
>
> Have you already considered a Predicates class / static methods in
> Predicate with useful methods such as alwaysTrue(), alwaysFalse(),
We had this in the past but honestly t -> false is just simpler.
> isNull() etc?
We added Objects.isNull and Objects.isNonNull to be used as method references rather than on Predicates.
> Something like Predicates in Guava:
>
> http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/base/Predicates.html
>
> Regards,
> Michael
>
More information about the lambda-dev
mailing list