org.springmodules.validation.valang.predicates
Class NotEqualsTestPredicate
java.lang.Object
  
org.springmodules.validation.valang.predicates.AbstractPropertyPredicate
      
org.springmodules.validation.valang.predicates.EqualsTestPredicate
          
org.springmodules.validation.valang.predicates.NotEqualsTestPredicate
- All Implemented Interfaces: 
 - org.apache.commons.collections.Predicate
 
public class NotEqualsTestPredicate
- extends EqualsTestPredicate
 
Tests if a value is not equal to another.
- Author:
 
  - David Winterfeldt
 
 
| 
Method Summary | 
 boolean | 
evaluate(Object target)
 
          The evaluate method takes the result of both functions and tests with the operator. | 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
NotEqualsTestPredicate
public NotEqualsTestPredicate(Function leftFunction,
                              Operator operator,
                              Function rightFunction,
                              int line,
                              int column)
Constructor taking two functions and an operator.
- Parameters:
 leftFunction - the left functionoperator - the operator.
evaluate
public boolean evaluate(Object target)
The evaluate method takes the result of both functions and tests with the operator.
- Specified by:
 evaluate in interface org.apache.commons.collections.Predicate- Overrides:
 evaluate in class EqualsTestPredicate
 
- Parameters:
 target - The target bean.
- Returns:
 - boolean      Whether or not the test passed.
 
 
Copyright © 2009. All Rights Reserved.