Interface Predicates


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

  • 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.
    • isIncluded

      static boolean isIncluded(Constructor<?> candidate)
      Whether to consider a Constructor. We generally exclude synthetic constructors for non-Kotlin classes.
      Parameters:
      candidate -
      Returns:
    • isExcluded

      static boolean isExcluded(Constructor<?> candidate)
      Whether to not consider a Constructor. We generally exclude synthetic constructors for non-Kotlin classes.
      Parameters:
      candidate -
      Returns: