Class MinSizeMapConstraintValidator

    • Constructor Detail

      • MinSizeMapConstraintValidator

        public MinSizeMapConstraintValidator​(int minValue,
                                             boolean inclusive)
        Creates the default instance of MinSizeMapConstraintValidator with the specified parameters.
        Parameters:
        minValue - the supported min value.
        inclusive - whether the specified minimum is inclusive or exclusive.
    • Method Detail

      • validate

        public void validate​(Map<?,​?> map,
                             HttpModelType httpModelType,
                             String modelName)
        Description copied from interface: ConstraintValidator
        Validates the single actual.

        The state of the actual must not be altered.

        Specified by:
        validate in interface ConstraintValidator<Map<?,​?>>
        Parameters:
        map - the actual value to validate
        httpModelType - the http model type
        modelName - the parameter or header name