Package org.apache.camel.util.function
Class Predicates
java.lang.Object
org.apache.camel.util.function.Predicates
Predicate helpers, inspired by http://minborgsjavapot.blogspot.it/2016/03/put-your-java-8-method-references-to.html
-
Method Summary
-
Method Details
-
of
Wrap a predicate, useful for method references. -
negate
Negates a predicate, useful for method references.Stream.of("A", "", "B") .filter(Predicates.negate(String::isEmpty)) .count();
-