public static enum OsDetector.OperatingSystemType extends java.lang.Enum<OsDetector.OperatingSystemType>
Enum Constant and Description |
---|
LINUX
Generic linux-based operating system.
|
MAC
OS X or Mac OS.
|
UNKNOWN
An unknown operating system.
|
WINDOWS
A windows operating system.
|
Modifier and Type | Method and Description |
---|---|
static OsDetector.OperatingSystemType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OsDetector.OperatingSystemType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OsDetector.OperatingSystemType WINDOWS
public static final OsDetector.OperatingSystemType MAC
public static final OsDetector.OperatingSystemType LINUX
public static final OsDetector.OperatingSystemType UNKNOWN
public static OsDetector.OperatingSystemType[] values()
for (OsDetector.OperatingSystemType c : OsDetector.OperatingSystemType.values()) System.out.println(c);
public static OsDetector.OperatingSystemType 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