com.mockobjects.constraint
Class IsCloseTo
java.lang.Object
com.mockobjects.constraint.IsCloseTo
- Constraint
public class IsCloseTo
extends java.lang.Object
Is the value a number equal to a value within some range of
acceptable error?
boolean | eval(Object arg) - Evaluates the constraint for argument o.
|
String | toString()
|
IsCloseTo
public IsCloseTo(double value,
double error)
eval
public boolean eval(Object arg)
Evaluates the constraint for argument o.
- eval in interface Constraint
true
if o meets the constraint,
false
if it does not.
toString
public String toString()
Copyright © 2002 Mock Objects. All Rights Reserved.