public class EqualsResultMatcher<U>
extends org.hamcrest.DiagnosingMatcher<U>
Supplier
The goal is to defer the computation until the matcher needs to be actually evaluated.
Mainly useful in conjunction with retrying matchers such as EventuallyMatcher| Constructor and Description |
|---|
EqualsResultMatcher(java.util.function.Supplier<U> supplier) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
static <U> EqualsResultMatcher<U> |
equalsResult(java.util.function.Supplier<U> supplier) |
protected boolean |
matches(Object item,
org.hamcrest.Description mismatchDescription) |
public EqualsResultMatcher(java.util.function.Supplier<U> supplier)
protected boolean matches(Object item, org.hamcrest.Description mismatchDescription)
matches in class org.hamcrest.DiagnosingMatcher<U>public void describeTo(org.hamcrest.Description description)
public static <U> EqualsResultMatcher<U> equalsResult(java.util.function.Supplier<U> supplier)