com.mockobjects.constraint
public class IsInstanceOf extends java.lang.Object implements Constraint
Constructor and Description |
---|
IsInstanceOf(java.lang.Class theclass)
Creates a new instance of IsInstanceOf
|
public IsInstanceOf(java.lang.Class theclass)
theclass
- The predicate evaluates to true for instances of this class
or one of its subclasses.public boolean eval(java.lang.Object arg)
Constraint
eval
in interface Constraint
true
if o meets the constraint,
false
if it does not.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2002 Mock Objects. All Rights Reserved.