Package com.google.common.truth
Interface Correspondence.BinaryPredicate<A,E>
- Enclosing class:
- Correspondence<A,
E>
public static interface Correspondence.BinaryPredicate<A,E>
A functional interface for a binary predicate, to be used to test whether a pair of objects of
types
A
and E
satisfy some condition.
This interface will normally be implemented using a lambda or a method reference, and the
resulting object will normally be passed directly to Correspondence.from(com.google.common.truth.Correspondence.BinaryPredicate<A, E>, java.lang.String)
. As a result,
you should almost never see BinaryPredicate
used as the type of a field or variable, or
a return type.
-
Method Summary
-
Method Details
-
apply
Returns whether or not the actual and expected values satisfy the condition defined by this predicate.
-