public enum EnumOS extends Enum<EnumOS>
| Enum Constant and Description |
|---|
LINUX |
MACOS |
SOLARIS |
UNKNOWN |
WINDOWS |
| Modifier and Type | Method and Description |
|---|---|
static EnumOS |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnumOS[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumOS LINUX
public static final EnumOS SOLARIS
public static final EnumOS WINDOWS
public static final EnumOS MACOS
public static final EnumOS UNKNOWN
public static EnumOS[] values()
for (EnumOS c : EnumOS.values()) System.out.println(c);
public static EnumOS 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 null