public class EqualsWithDelta extends ArgumentMatcher<Number> implements Serializable
| Constructor and Description |
|---|
EqualsWithDelta(Number value,
Number delta) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(Description description)
Generates a description of the object.
|
boolean |
matches(Object actual)
Returns whether this matcher accepts the given argument.
|
_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic boolean matches(Object actual)
ArgumentMatcherThe method should never assert if the argument doesn't match. It should only return false.
matches in interface Matcher<Number>matches in class ArgumentMatcher<Number>actual - the argumentBaseMatcherpublic void describeTo(Description description)
SelfDescribingdescribeTo in interface SelfDescribingdescribeTo in class ArgumentMatcher<Number>description - The description to be built or appended to.Copyright © 2018. All rights reserved.