Skip to content

Tag: predicate

Java – How do I create Predicates as Arrays.asList() arguments?

I have a few predicates that I want to put in a list so I can then call stream().noneMatch() on my list. I successfully did this by creating named Predicates but how can I create them within an Arrays.asList()’s argument list? Here’s the working code that I’d like to convert: I’d expect the result of the conversion to look something