| Enum Constant and Description |
|---|
FREEBSD |
LINUX |
MACOSX |
OPENBSD |
UNIX |
WINDOWS |
| Modifier and Type | Method and Description |
|---|---|
static OsName |
getName()
get the current OsName for the running system
|
static OsName |
getName(java.lang.String osName)
get OsName from String.
|
static OsName |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OsName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OsName LINUX
public static final OsName UNIX
public static final OsName WINDOWS
public static final OsName FREEBSD
public static final OsName OPENBSD
public static final OsName MACOSX
public static OsName[] values()
for (OsName c : OsName.values()) System.out.println(c);
public static OsName 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 OsName getName(java.lang.String osName)
Usual operation is getting the value from System property os.name
osName - Stringpublic static OsName getName()