| |
|
| java.lang.Object org.strecks.validator.LongValidator org.strecks.validator.LongRangeValidator
LongRangeValidator | public class LongRangeValidator extends LongValidator implements Validator<Long>(Code) | | Validator which ensures that value is within a given range. Uses Commons Validator
GenericValidator.isInRange() . Uses the converted value, so needs tot be used in
conjunction with a Converter
author: Phil Zoio |
Method Summary | |
public long | getMax() | public long | getMin() | public void | setMax(long max) Sets the maximum value in range. | public void | setMin(long min) Sets the minimum value in range. | public boolean | validate(Long value) Uses GenericValidator.isInRange() to determine whether value is within given
range. |
LongRangeValidator | public LongRangeValidator()(Code) | | |
getMax | public long getMax()(Code) | | |
getMin | public long getMin()(Code) | | |
setMax | public void setMax(long max)(Code) | | Sets the maximum value in range. Defaults to Longs.MAX_VALUE
|
setMin | public void setMin(long min)(Code) | | Sets the minimum value in range. Defaults to Long.MIN_VALUE
|
validate | public boolean validate(Long value)(Code) | | Uses GenericValidator.isInRange() to determine whether value is within given
range. If not required and no value specified, then returns true
|
Methods inherited from org.strecks.validator.LongValidator | public boolean validate(Long value)(Code)(Java Doc)
|
|
|
|