Class ValidatorCollectionSize

All Implemented Interfaces:
io.github.mmm.base.lang.Composable<Validator<?>>, Validator<Collection<?>>, Iterable<Validator<?>>

public class ValidatorCollectionSize extends AbstractValidatorSize<Collection<?>>
Validator validating that the size of a given Collection is within a predefined Range.
Since:
1.0.0
  • Constructor Details

    • ValidatorCollectionSize

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

      public ValidatorCollectionSize(int maxLength)
      The constructor.
      Parameters:
      maxLength - the maximum size allowed for the Collection values.
  • Method Details