Interface Predicate<T>

All Superinterfaces:
Serializable

public interface Predicate<T> extends Serializable
Java API: Defines a criteria and determines whether the parameter meets this criteria. Serializable is needed to be able to grab line number for Java 8 lambdas. Supports throwing Exception in the apply, which the java.util.function.Predicate counterpart does not.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a predicate that represents the logical negation of this predicate.
    boolean
    test(T param)
     
  • Method Details

    • negate

      Predicate<T> negate()
      Returns a predicate that represents the logical negation of this predicate.
      Since:
      2.0.0
    • test

      boolean test(T param)