Class Validate

java.lang.Object
io.github.multiform_validator.Validate

public class Validate extends Object
  • Method Details

    • validateEmail

      public static boolean validateEmail(String email)
      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

      public static boolean validateEmail(String email, Validate.ValidateEmailOptionsParams options)
      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.