public enum OsType extends java.lang.Enum<OsType>
getFolderName()
to get the folder name used on disk which for the OS.Enum Constant and Description |
---|
DARWIN
The OS used by Mac.
|
LINUX |
UNKNOWN |
WINDOWS |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFolderName()
The name of this OS as it appears on disk.
|
static OsType |
getHostOs()
|
static java.lang.String |
getOsName()
Get the display-friendly name of the current system's OS.
|
static OsType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OsType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OsType UNKNOWN
public static final OsType DARWIN
public static final OsType LINUX
public static final OsType WINDOWS
public static OsType[] values()
for (OsType c : OsType.values()) System.out.println(c);
public static 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 java.lang.String getOsName()
public static OsType getHostOs()
public java.lang.String getFolderName()