org.springmodules.validation.util.condition.range
Class GreaterThanOrEqualsCondition
java.lang.Object
org.springmodules.validation.util.condition.AbstractCondition
org.springmodules.validation.util.condition.NonNullAcceptingCondition
org.springmodules.validation.util.condition.range.AbstractRangeCondition
org.springmodules.validation.util.condition.range.AbstractSingleBoundCondition
org.springmodules.validation.util.condition.range.GreaterThanOrEqualsCondition
- All Implemented Interfaces:
- Condition
public class GreaterThanOrEqualsCondition
- extends AbstractSingleBoundCondition
An AbstractSingleBoundCondition
implementation that checkCalendar whether the checked value is greater than or
equals a specific loweer bound.
- Author:
- Uri Boness
Method Summary |
protected boolean |
checkRange(Object value,
Comparator comparator)
Checks whether the given value is greater than or equals the lower bound associated with this condition. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GreaterThanOrEqualsCondition
public GreaterThanOrEqualsCondition(Comparable lowerBound)
- Constructs a new GreaterThanOrEqualsCondition with a given lower bound.
- Parameters:
lowerBound
- The lower bound.
GreaterThanOrEqualsCondition
public GreaterThanOrEqualsCondition(Object lowerBound,
Comparator comparator)
- Constructs a new GreaterThanOrEqualsCondition with given lower bound and the comparator to be used to compare the checked value.
- Parameters:
lowerBound
- The lower bound.comparator
- The comparator.
checkRange
protected boolean checkRange(Object value,
Comparator comparator)
- Checks whether the given value is greater than or equals the lower bound associated with this condition.
- Specified by:
checkRange
in class AbstractRangeCondition
- Parameters:
value
- The value to be checked.comparator
- The comparator used to compare the checked value.
- Returns:
true
if the given value is greater than or equals the lower bound, false
otherwise.
Copyright © 2009. All Rights Reserved.