S - the type of the scalars (elements of the field)public class ScalarIsCloseTo<S>
extends org.hamcrest.TypeSafeMatcher<S>
| Constructor and Description |
|---|
ScalarIsCloseTo(ScalarSupport<S> scalarSupport,
S value,
S tolerance) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
protected boolean |
matchesSafely(S valueToAssert) |
describeMismatch, describeMismatchSafely, matchespublic ScalarIsCloseTo(ScalarSupport<S> scalarSupport, S value, S tolerance)