@FunctionalInterface
public interface Matcher<T1,T2>
extends java.util.function.BiPredicate<T1,T2>
| Modifier and Type | Method and Description |
|---|---|
boolean |
areEqual(T1 object1,
T2 object2)
Are the given two objects considered equal?
|
default Predicate1<T2> |
foldLeft(T1 object1)
Get a predicate with a fix argument for the first object
of the equality check.
|
default Predicate1<T1> |
foldRight(T2 object2)
Get a predicate with a fix argument for the second object
of the equality check.
|
default boolean |
test(T1 t1,
T2 t2) |
boolean areEqual(T1 object1, T2 object2)
object1 - first objectobject2 - second objecttrue if this matcher considers the two objects equalfalse if this matcher considers them different@NotNull default Predicate1<T2> foldLeft(T1 object1)
object1 - fix first objectobject1@NotNull default Predicate1<T1> foldRight(T2 object2)
object2 - fix second object argumentobject2