public class ShortRangeValidator extends RangeValidator<Short>
Short is inside a given range.| Constructor and Description |
|---|
ShortRangeValidator(String errorMessage,
Short minValue,
Short maxValue)
Creates a validator for checking that an Short is within a given range.
|
apply, getMaxValue, getMinValue, isMaxValueIncluded, isMinValueIncluded, isValid, of, setMaxValue, setMaxValueIncluded, setMinValue, setMinValueIncluded, toStringgetMessage, toResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitalwaysPass, from, from, from, fromandThenpublic ShortRangeValidator(String errorMessage, Short minValue, Short maxValue)
RangeValidator.setMinValueIncluded(boolean) or
RangeValidator.setMaxValueIncluded(boolean) to change it.errorMessage - the message to display in case the value does not validate.minValue - The minimum value to accept or null for no limitmaxValue - The maximum value to accept or null for no limitCopyright © 2025. All rights reserved.