org.springmodules.validation.valang.predicates
Class GreaterThanOrEqualTestPredicate
java.lang.Object
org.springmodules.validation.valang.predicates.AbstractPropertyPredicate
org.springmodules.validation.valang.predicates.AbstractCompareTestPredicate
org.springmodules.validation.valang.predicates.GreaterThanOrEqualTestPredicate
- All Implemented Interfaces:
- org.apache.commons.collections.Predicate
public class GreaterThanOrEqualTestPredicate
- extends AbstractCompareTestPredicate
Tests if a value is greater 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 |
GreaterThanOrEqualTestPredicate
public GreaterThanOrEqualTestPredicate(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.