Interface Predicate2<T1,T2>

All Superinterfaces:
Serializable

public interface Predicate2<T1,T2> 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.BiPredicate counterpart does not.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a predicate that represents the logical negation of this predicate.
    boolean
    test(T1 param1, T2 param2)
     
  • Method Details

    • negate

      Predicate2<T1,T2> negate()
      Returns a predicate that represents the logical negation of this predicate.
      Since:
      2.0.0
    • test

      boolean test(T1 param1, T2 param2)