Package com.mockobjects.constraint
Class IsGreaterThan
- java.lang.Object
-
- com.mockobjects.constraint.IsGreaterThan
-
- All Implemented Interfaces:
Constraint
public class IsGreaterThan extends java.lang.Object implements Constraint
Is the value greater than anotherComparablevalue?
-
-
Constructor Summary
Constructors Constructor Description IsGreaterThan(java.lang.Comparable o)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleaneval(java.lang.Object arg)Evaluates the constraint for argument o.java.lang.StringtoString()
-
-
-
Method Detail
-
eval
public boolean eval(java.lang.Object arg)
Description copied from interface:ConstraintEvaluates the constraint for argument o.- Specified by:
evalin interfaceConstraint- Returns:
trueif o meets the constraint,falseif it does not.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-