Class ValidationDocumentFilter<T>

    • Constructor Detail

      • ValidationDocumentFilter

        public ValidationDocumentFilter()
    • Method Detail

      • addValidator

        public final void addValidator​(Value.Validator<T> validator)
        Adds a validator to this validation document
        Parameters:
        validator - the validator to add
      • validate

        protected final void validate​(T value)
        Validates the given value using all the underlying validators (if any).
        Parameters:
        value - the value to validate
        See Also:
        addValidator(Value.Validator)