Interface Predicates


public interface Predicates
Utility methods to work with Predicates.
Since:
2.7
Author:
Mark Paluch
  • Method Details

    • isTrue

      static <T> Predicate<T> isTrue()
      A Predicate that yields always true.
      Returns:
      a Predicate that yields always true.
    • isFalse

      static <T> Predicate<T> isFalse()
      A Predicate that yields always false.
      Returns:
      a Predicate that yields always false.
    • negate

      static <T> Predicate<T> negate(Predicate<T> predicate)
      Returns a Predicate that represents the logical negation of predicate.
      Returns:
      a Predicate that represents the logical negation of predicate.