com.mockobjects.constraint

Class IsInstanceOf

Implemented Interfaces:
Constraint

public class IsInstanceOf
extends java.lang.Object
implements Constraint

Tests whether the value is an instance of a class.

Constructor Summary

IsInstanceOf(Class theclass)
Creates a new instance of IsInstanceOf

Method Summary

boolean
eval(Object arg)
String
toString()

Constructor Details

IsInstanceOf

public IsInstanceOf(Class theclass)
Creates a new instance of IsInstanceOf
Parameters:
theclass - The predicate evaluates to true for instances of this class or one of its subclasses.

Method Details

eval

public boolean eval(Object arg)
Specified by:
eval in interface Constraint

toString

public String toString()

Copyright © 2002 Mock Objects. All Rights Reserved.