Class SizeMapConstraintValidator

    • Constructor Detail

      • SizeMapConstraintValidator

        public SizeMapConstraintValidator​(int expectedSize)
        Creates the default instance of SizeMapConstraintValidator with the specified map size.
        Parameters:
        expectedSize - the specified map size
    • 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.

        Parameters:
        map - the actual value to validate
        httpModelType - the http model type
        modelName - the parameter or header name