java.io.Serializable
, java.lang.Comparable<SystemInfo.OperatingSystem>
public static enum SystemInfo.OperatingSystem extends java.lang.Enum<SystemInfo.OperatingSystem>
Enum Constant | Description |
---|---|
MAC |
|
UNIX |
|
UNSUPPORTED |
|
WINDOWS |
Modifier and Type | Method | Description |
---|---|---|
static SystemInfo.OperatingSystem |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static SystemInfo.OperatingSystem[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SystemInfo.OperatingSystem WINDOWS
public static final SystemInfo.OperatingSystem MAC
public static final SystemInfo.OperatingSystem UNIX
public static final SystemInfo.OperatingSystem UNSUPPORTED
public static SystemInfo.OperatingSystem[] values()
for (SystemInfo.OperatingSystem c : SystemInfo.OperatingSystem.values()) System.out.println(c);
public static SystemInfo.OperatingSystem 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