Class ComposedValidator<V>

    • Constructor Detail

    • Method Detail

      • validate

        public ValidationResult validate​(V value,
                                         Object valueSource)
        Description copied from interface: Validator
        This method validates the given value.
        Parameters:
        value - 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.
      • getMin

        public Object getMin()
        Returns:
        the minimum allowed value. Typically of type <V> but this can not be guaranteed.
      • getMax

        public Object getMax()
        Returns:
        the maximum allowed value. Typically of type <V> but this can not be guaranteed.