public class IsCloseTo extends TypeSafeMatcher<java.lang.Double>
| Constructor and Description |
|---|
IsCloseTo(double value,
double error) |
| Modifier and Type | Method and Description |
|---|---|
static Matcher<java.lang.Double> |
closeTo(double operand,
double error) |
void |
describeTo(Description description)
Generates a description of the object.
|
boolean |
matchesSafely(java.lang.Double item)
Subclasses should implement this.
|
matches_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic boolean matchesSafely(java.lang.Double item)
TypeSafeMatchermatchesSafely in class TypeSafeMatcher<java.lang.Double>public void describeTo(Description description)
SelfDescribingdescription - The description to be built or appended to.public static Matcher<java.lang.Double> closeTo(double operand, double error)