Enum Class GlobalMailAccount

java.lang.Object
java.lang.Enum<GlobalMailAccount>
org.miaixz.bus.extra.mail.GlobalMailAccount
All Implemented Interfaces:
Serializable, Comparable<GlobalMailAccount>, Constable

public enum GlobalMailAccount extends Enum<GlobalMailAccount>
全局邮件帐户,依赖于邮件配置文件MailAccount.MAIL_SETTING_PATHS
Since:
Java 17+
Author:
Kimi Liu
  • Enum Constant Details

  • Method Details

    • values

      public static GlobalMailAccount[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GlobalMailAccount valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getAccount

      public MailAccount getAccount()
      获得邮件帐户
      Returns:
      邮件帐户