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

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.EndsWithConstraint
All Implemented Interfaces:
Constraint, Expression

public class EndsWithConstraint
extends AbstractConstraint
implements Constraint

Author:
brolund (c) 2005 Agical AB

Constructor Summary
EndsWithConstraint(java.lang.Object reference)
           
 
Method Summary
 boolean passes(java.lang.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.Constraint
getName, getReference
 
Methods inherited from interface com.agical.rmock.core.match.Expression
and, describeWith, or, xor
 

Constructor Detail

EndsWithConstraint

public EndsWithConstraint(java.lang.Object reference)
Method Detail

passes

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


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