public static enum OsConst.OsType extends java.lang.Enum<OsConst.OsType>
| Enum Constant and Description |
|---|
MAC
Mac (Mac OS X, macOS)
|
OTHER
Other
|
UNIX
Unix (does not include Mac)
|
WINDOWS
Windows
|
| Modifier and Type | Method and Description |
|---|---|
(package private) static OsConst.OsType |
getOsType(java.lang.String osName)
Get the OS type.
|
static OsConst.OsType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OsConst.OsType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OsConst.OsType WINDOWS
public static final OsConst.OsType MAC
public static final OsConst.OsType UNIX
public static final OsConst.OsType OTHER
public static OsConst.OsType[] values()
for (OsConst.OsType c : OsConst.OsType.values()) System.out.println(c);
public static OsConst.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 nullstatic OsConst.OsType getOsType(java.lang.String osName)
osName - the OS name or null if none.