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