Enum Constant and Description |
---|
linux |
macos |
solaris |
unknown |
windows |
Modifier and Type | Method and Description |
---|---|
static EnumOS2 |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumOS2[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumOS2 linux
public static final EnumOS2 solaris
public static final EnumOS2 windows
public static final EnumOS2 macos
public static final EnumOS2 unknown
public static EnumOS2[] values()
for (EnumOS2 c : EnumOS2.values()) System.out.println(c);
public static EnumOS2 valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null