org.springmodules.validation.util.condition.range
Class AbstractRangeCondition
java.lang.Object
org.springmodules.validation.util.condition.AbstractCondition
org.springmodules.validation.util.condition.NonNullAcceptingCondition
org.springmodules.validation.util.condition.range.AbstractRangeCondition
- All Implemented Interfaces:
- Condition
- Direct Known Subclasses:
- AbstractBetweenCondition, AbstractSingleBoundCondition
public abstract class AbstractRangeCondition
- extends NonNullAcceptingCondition
A base class for all range conditions.
- Author:
- Uri Boness
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRangeCondition
public AbstractRangeCondition(Comparator comparator)
- Constructs a new AbstractRangeCondition.
doCheck
public final boolean doCheck(Object bean)
- See
AbstractCondition.doCheck(Object)
.
Delegates to checkRange(Object, java.util.Comparator)
- Specified by:
doCheck
in class AbstractCondition
- Parameters:
bean
- The object to be checked.
- Returns:
true
if the given object adheres to this condition, false
otherwise.
checkRange
protected abstract boolean checkRange(Object value,
Comparator comparator)
- Checks the condition upon the given range object.
- Parameters:
value
- The value to be checkedcomparator
- The comparator to be used for the checked value.
- Returns:
true
if the given range adheres to this condition, false
otherwise.
Copyright © 2009. All Rights Reserved.