public static interface Correspondence.BinaryPredicate<A,E>
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.
Modifier and Type | Method and Description |
---|---|
boolean |
apply(A actual,
E expected)
Returns whether or not the actual and expected values satisfy the condition defined by this
predicate.
|
Copyright © 2020. All rights reserved.