com.agical.rmock.core.match.constraint
Class InstanceOfConstraint

java.lang.Object
  extended by com.agical.rmock.core.match.operator.AbstractExpression
      extended by com.agical.rmock.core.match.constraint.AbstractConstraint
          extended by com.agical.rmock.core.match.constraint.InstanceOfConstraint
All Implemented Interfaces:
Constraint, Expression

public class InstanceOfConstraint
extends AbstractConstraint

(c) Agical AB 2005

Author:
joakim.ohlrogge

Constructor Summary
InstanceOfConstraint(Class clazz)
           
 
Method Summary
 boolean passes(Object object)
           
 
Methods inherited from class com.agical.rmock.core.match.constraint.AbstractConstraint
describeWith, equals, getName, getReference, hashCode, toString
 
Methods inherited from class com.agical.rmock.core.match.operator.AbstractExpression
and, or, xor
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.agical.rmock.core.match.Expression
and, or, xor
 

Constructor Detail

InstanceOfConstraint

public InstanceOfConstraint(Class clazz)
Parameters:
clazz -
Method Detail

passes

public boolean passes(Object object)
Parameters:
object - The object to check
Returns:
true if the object passes this constraint, otherwise false.
See Also:
Expression.passes(java.lang.Object)


Copyright © 2005-2011 Agical AB. All Rights Reserved.