extend
Adds a validation rule to the set of rules being built.
This method allows you to extend the current rule set with additional validation logic. Rules are evaluated in the order they are added, and all failing rules contribute to the final validation error.
Return
This builder instance for method chaining.
Parameters
The validation rule to add to the set.
Adds multiple validation rules to the set of rules being built.
This method allows you to extend the current rule set with a collection of validation rules all at once. This is particularly useful when you want to compose rule sets from multiple sources or reuse existing validation rule collections.
Rules from the collection are evaluated in their iteration order, and all failing rules contribute to the final validation error.
Return
This builder instance for method chaining.
Parameters
The collection of validation rules to add to the set.