Class ObservableProperties.NumberBoundsChecker

    • Constructor Detail

      • NumberBoundsChecker

        public NumberBoundsChecker(Number min,
                                   Number max,
                                   boolean includeMin,
                                   boolean includeMax)
        Parameters:
        min - the minimum accepted value.
        max - the maximum accepted value.
        includeMin - if true then this applies a "greater than or equal to" check. If false then this simply applies a "greater than" check, so if someone tries to use a value that is exactly equal to the minimum: it will fail.
        includeMax - if true then this applies a "less than or equal to" check. If false then this simply applies a "less than" check, so if someone tries to use a value that is exactly equal to the maximum: it will fail.