Package com.mockobjects.constraint
Class IsInstanceOf
- java.lang.Object
-
- com.mockobjects.constraint.IsInstanceOf
-
- All Implemented Interfaces:
Constraint
public class IsInstanceOf extends java.lang.Object implements Constraint
Tests whether the value is an instance of a class.
-
-
Constructor Summary
Constructors Constructor Description IsInstanceOf(java.lang.Class theclass)Creates a new instance of IsInstanceOf
-
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
-
-