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