public enum ServerName extends Enum<ServerName>
| Enum Constant and Description |
|---|
MAIL_PROCESSOR |
SMTP_SERVER |
| Modifier and Type | Method and Description |
|---|---|
static ServerName |
parse(String nameAsString) |
static ServerName |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServerName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerName MAIL_PROCESSOR
public static final ServerName SMTP_SERVER
public static ServerName[] values()
for (ServerName c : ServerName.values()) System.out.println(c);
public static ServerName 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 ServerName parse(String nameAsString)
Copyright © 2015. All rights reserved.