Interface NumberRangeValidator

All Superinterfaces:
Cloneable, Validator, ValueValidator
All Known Implementing Classes:
NumberRangeValidatorImpl

public interface NumberRangeValidator extends ValueValidator
Verifies that a number is within an allowed range.
  • Method Details

    • setup

      void setup(@Nullable @Nullable Double lowerBound, boolean includeLowerBound, @Nullable @Nullable Double upperBound, boolean includeUpperBound)
    • getLowerBound

      @Nullable @Nullable Number getLowerBound()
      Returns the number range's min value, or null if none specified.
    • getUpperBound

      @Nullable @Nullable Number getUpperBound()
      Returns the number range's max value, or null if none specified.