Class AbstractValidatorSize<V>

Type Parameters:
V - the generic type of the value to validate.
All Implemented Interfaces:
io.github.mmm.base.lang.Composable<Validator<?>>, Validator<V>, Iterable<Validator<?>>
Direct Known Subclasses:
ValidatorCharSequnceSize, ValidatorCollectionSize, ValidatorMapSize, ValidatorPatternSize

public abstract class AbstractValidatorSize<V> extends AbstractValidatorRange<V,Integer>
Validator validating that a given value has a size or length that is contained in a given Range.
Since:
1.0.0
  • Constructor Details

    • AbstractValidatorSize

      public AbstractValidatorSize(io.github.mmm.base.range.Range<Integer> range)
      The constructor.
      Parameters:
      range - is the Range the value has to be contained in.
  • Method Details

    • isLength

      protected final boolean isLength()
      Specified by:
      isLength in class AbstractValidatorRange<V,Integer>
      Returns:
      true if validating the length or size of the value, false otherwise.