Class ValidatorMapValues<V>

    • Constructor Detail

      • ValidatorMapValues

        public ValidatorMapValues​(List<Validator<? super V>> validators)
        The constructor.
        Parameters:
        validators - the Validators used to validate each element.
    • Method Detail

      • validate

        public ValidationResult validate​(Map<?,​V> map,
                                         Object valueSource)
        Description copied from interface: Validator
        This method validates the given value.
        Parameters:
        map - is the value to validate.
        valueSource - is the source describing the origin of the given value. The source needs to have a reasonable string-representation as this may be displayed to the end-user to locate the source of the failure. In most cases it is suitable to directly pass a String.
        Returns:
        the ValidationResult.