Class ValidatorRange<V extends Comparable<?>>

Type Parameters:
V - is the generic type of the value to validate.
All Implemented Interfaces:
io.github.mmm.base.lang.Composable<Validator<?>>, Validator<V>, Iterable<Validator<?>>

public class ValidatorRange<V extends Comparable<?>> extends AbstractValidatorRange<V,V>
Validator validating that a given value is within a specific Range.
Since:
1.0.0
  • Constructor Details

    • ValidatorRange

      public ValidatorRange(io.github.mmm.base.range.Range<V> range)
      The constructor.
      Parameters:
      range - is the Range the value has to be within.
    • ValidatorRange

      public ValidatorRange(V min, V max)
      The constructor.
      Parameters:
      min - is the minimum value allowed.
      max - is the maximum value allowed.
  • Method Details