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