public enum MailProtocol extends Enum<MailProtocol>
Modifier and Type | Method and Description |
---|---|
static MailProtocol |
fromString(String value) |
static MailProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MailProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MailProtocol SMTP
public static final MailProtocol SMTPS
public static MailProtocol[] values()
for (MailProtocol c : MailProtocol.values()) System.out.println(c);
public static MailProtocol valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static MailProtocol fromString(@Nullable String value)
Copyright © 2019 Atlassian. All rights reserved.