public class ByteRangeValidator extends RangeValidator<Byte>
Byte
is inside a given range.Constructor and Description |
---|
ByteRangeValidator(String errorMessage,
Byte minValue,
Byte maxValue)
Creates a validator for checking that an Byte is within a given range.
|
apply, getMaxValue, getMinValue, isMaxValueIncluded, isMinValueIncluded, isValid, of, setMaxValue, setMaxValueIncluded, setMinValue, setMinValueIncluded, toString
getMessage, toResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
alwaysPass, from, from, from, from
andThen
public ByteRangeValidator(String errorMessage, Byte minValue, Byte 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 © 2023. All rights reserved.