org.apache.pivot.wtk.validation
Class IntRangeValidator
java.lang.Object
org.apache.pivot.wtk.validation.FormattedValidator<NumberFormat>
org.apache.pivot.wtk.validation.DecimalValidator
org.apache.pivot.wtk.validation.IntValidator
org.apache.pivot.wtk.validation.IntRangeValidator
- All Implemented Interfaces:
- Validator
public class IntRangeValidator
- extends IntValidator
A validator for an int value limited to a range.
BigInteger math is used here so that proper checks against
the limits of the type can be done.
- See Also:
ComparableRangeValidator
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntRangeValidator
public IntRangeValidator()
IntRangeValidator
public IntRangeValidator(Locale locale)
IntRangeValidator
public IntRangeValidator(int minValue,
int maxValue)
IntRangeValidator
public IntRangeValidator(Locale locale,
int minValue,
int maxValue)
getMinimum
public int getMinimum()
setMinimum
public void setMinimum(int minValue)
getMaximum
public int getMaximum()
setMaximum
public void setMaximum(int maxValue)
isValid
public boolean isValid(String text)
- Description copied from interface:
Validator
- Determines if a text value is valid based on the rules of the
validator.
- Specified by:
isValid in interface Validator- Overrides:
isValid in class FormattedValidator<NumberFormat>
- Returns:
- true if the value is valid; false, otherwise.