T - matched number typeabstract class BaseIsCloseTo<T extends Number> extends TypeSafeMatcher<T>
| Modifier and Type | Field and Description |
|---|---|
private T |
error
Accepted error.
|
private T |
matched
Matched value.
|
| Constructor and Description |
|---|
BaseIsCloseTo(T matched,
T error)
Dedicated constructor.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) abstract long |
actualDelta(T item)
Calculates the actual delta.
|
void |
describeMismatchSafely(T item,
Description mismatchDescription) |
void |
describeTo(Description description) |
(package private) T |
error()
Get the accepted error.
|
(package private) T |
matched()
Get the matched value.
|
boolean |
matchesSafely(T item) |
describeMismatch, matches_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic final boolean matchesSafely(T item)
matchesSafely in class TypeSafeMatcher<T extends Number>final T error()
nullfinal T matched()
nullabstract long actualDelta(T item)
item - any longpublic final void describeMismatchSafely(T item, Description mismatchDescription)
describeMismatchSafely in class TypeSafeMatcher<T extends Number>public final void describeTo(Description description)
Copyright © 2014 Sven Strittmatter. All Rights Reserved.