org.springmodules.validation.valang.predicates
Class LessThanOrEqualTestPredicate
java.lang.Object
org.springmodules.validation.valang.predicates.AbstractPropertyPredicate
org.springmodules.validation.valang.predicates.AbstractCompareTestPredicate
org.springmodules.validation.valang.predicates.LessThanOrEqualTestPredicate
- All Implemented Interfaces:
- org.apache.commons.collections.Predicate
public class LessThanOrEqualTestPredicate
- extends AbstractCompareTestPredicate
Tests if a value is less than or equal to another.
- Author:
- David Winterfeldt
Method Summary |
protected boolean |
doEvaluate(BigDecimal leftValue,
BigDecimal rightValue)
Evaluates a BigDecimal and is called by
evaluate . |
protected boolean |
doEvaluate(Date leftValue,
Date rightValue)
Evaluates a BigDecimal and is called by
evaluate . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LessThanOrEqualTestPredicate
public LessThanOrEqualTestPredicate(Function leftFunction,
Operator operator,
Function rightFunction,
int line,
int column)
Constructor taking two functions and an operator.
- Parameters:
leftFunction
- the left functionoperator
- the operator.
doEvaluate
protected boolean doEvaluate(BigDecimal leftValue,
BigDecimal rightValue)
- Evaluates a
BigDecimal
and is called by
evaluate
.
- Specified by:
doEvaluate
in class AbstractCompareTestPredicate
doEvaluate
protected boolean doEvaluate(Date leftValue,
Date rightValue)
- Evaluates a
BigDecimal
and is called by
evaluate
.
- Specified by:
doEvaluate
in class AbstractCompareTestPredicate
Copyright © 2009. All Rights Reserved.