Class ValidatorMapSize

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

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

    • ValidatorMapSize

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

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