Package org.mockito.internal.matchers
Class EqualsWithDelta
- java.lang.Object
-
- org.mockito.internal.matchers.EqualsWithDelta
-
- All Implemented Interfaces:
java.io.Serializable
,ArgumentMatcher<java.lang.Number>
public class EqualsWithDelta extends java.lang.Object implements ArgumentMatcher<java.lang.Number>, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EqualsWithDelta(java.lang.Number value, java.lang.Number delta)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(java.lang.Number actual)
Informs if this matcher accepts the given argument.java.lang.String
toString()
-
-
-
Method Detail
-
matches
public boolean matches(java.lang.Number actual)
Description copied from interface:ArgumentMatcher
Informs if this matcher accepts the given argument.The method should never assert if the argument doesn't match. It should only return false.
See the example in the top level javadoc for
ArgumentMatcher
- Specified by:
matches
in interfaceArgumentMatcher<java.lang.Number>
- Parameters:
actual
- the argument- Returns:
- true if this matcher accepts the given argument.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-