Package io.github.multiform_validator
Class Validate
java.lang.Object
io.github.multiform_validator.Validate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe ValidateEmailOptionsParams class represents the options for email validation. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanvalidateEmail(String email) Validates an email address using the default options.static booleanvalidateEmail(String email, Validate.ValidateEmailOptionsParams options) Validates an email address using the specified options.
-
Method Details
-
validateEmail
Validates an email address using the default options.- Parameters:
email- The email address to validate.- Returns:
- true if the email address is valid, false otherwise.
- Throws:
IllegalArgumentException- if the input value is empty.
-
validateEmail
Validates an email address using the specified options.- Parameters:
email- The email address to validate.options- The options for email validation.- Returns:
- true if the email address is valid, false otherwise.
- Throws:
IllegalArgumentException- if the input value is empty or if both validDomains and validDomainsList are used at the same time.
-