Package com.google.common.truth
Interface Correspondence.BinaryPredicate<A extends @Nullable Object,E extends @Nullable Object>
-
- Enclosing class:
- Correspondence<A extends @Nullable Object,E extends @Nullable Object>
public static interface Correspondence.BinaryPredicate<A extends @Nullable Object,E extends @Nullable Object>
A functional interface for a binary predicate, to be used to test whether a pair of objects of typesA
andE
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 seeBinaryPredicate
used as the type of a field or variable, or a return type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
apply(A actual, E expected)
Returns whether or not the actual and expected values satisfy the condition defined by this predicate.
-