Package com.mockobjects.constraint
Class IsCloseTo
java.lang.Object
com.mockobjects.constraint.IsCloseTo
- All Implemented Interfaces:
Constraint
Is the value a number equal to a value within some range of
acceptable error?
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IsCloseTo
public IsCloseTo(double value, double error)
-
-
Method Details
-
eval
Description copied from interface:Constraint
Evaluates the constraint for argument o.- Specified by:
eval
in interfaceConstraint
- Returns:
true
if o meets the constraint,false
if it does not.
-
toString
-