Interface RangeValidator<V>

Type Parameters:
V - The value type this validator supports.
All Superinterfaces:
com.globalmentor.beans.PropertyBindable, Validator<V>
All Known Implementing Classes:
AbstractComparableRangeValidator, AbstractRangeValidator, DateRangeValidator, DecimalRangeValidator, IntegerRangeValidator, LongRangeValidator

public interface RangeValidator<V> extends Validator<V>
A validator restricting a value to a range. The step value is considered relative either to the minimum value, if available, the maximum value, if available, or zero, in that order or priority.
Author:
Garret Wilson
  • Method Details

    • getMinimum

      V getMinimum()
      Returns:
      The minimum value, inclusive, or null if the range has no lower bound.
    • getMaximum

      V getMaximum()
      Returns:
      The maximum value, inclusive, or null if the range has no upper bound.
    • getStep

      V getStep()
      Returns:
      The step amount, or null if the range has no increment value specified.