org.springmodules.validation.util.condition.range
Class AbstractBetweenCondition
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.AbstractBetweenCondition
- All Implemented Interfaces:
- Condition
- Direct Known Subclasses:
- BetweenCondition, BetweenIncludingCondition, BetweenIncludingLowerBoundCondition, BetweenIncludingUpperBoundCondition
public abstract class AbstractBetweenCondition
- extends AbstractRangeCondition
An AbstractRangeCondition implementation that serves as a base class for all between conditions.
- Author:
- Uri Boness
|
Constructor Summary |
AbstractBetweenCondition(java.lang.Comparable lowerBound,
java.lang.Comparable upperBound)
Constructs a new BetweenCondition with the given bounds (upper and lower) the checked value will be
compared with. |
AbstractBetweenCondition(java.lang.Object lowerBound,
java.lang.Object upperBound,
java.util.Comparator comparator)
|
|
Method Summary |
java.lang.Object |
getLowerBound()
Returns the lower bound that is associated with this condition. |
java.lang.Object |
getUpperBound()
Returns the upper bound that is associated with this condition. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractBetweenCondition
public AbstractBetweenCondition(java.lang.Comparable lowerBound,
java.lang.Comparable upperBound)
- Constructs a new BetweenCondition with the given bounds (upper and lower) the checked value will be
compared with.
- Parameters:
lowerBound - The lower bound the checked object will be compared with.upperBound - The upper bound the checked object will be compared with.
AbstractBetweenCondition
public AbstractBetweenCondition(java.lang.Object lowerBound,
java.lang.Object upperBound,
java.util.Comparator comparator)
getLowerBound
public java.lang.Object getLowerBound()
- Returns the lower bound that is associated with this condition.
- Returns:
- The lower bound that is associated with this condition.
getUpperBound
public java.lang.Object getUpperBound()
- Returns the upper bound that is associated with this condition.
- Returns:
- The upper bound that is associated with this condition.
Copyright © 2005. All Rights Reserved.