public enum OsType extends Enum<OsType>
Enum Constant and Description |
---|
LINUX
Linux Operating System.
|
MAC
MacOS Operating System.
|
UNKNOWN
Unknown Operating System.
|
WINDOWS
Windows Operating System.
|
Modifier and Type | Method and Description |
---|---|
static OsType |
getOsType()
Returns the platform Operating System Type.
|
static boolean |
isLinux()
Returns
true if the Operating System is Linux. |
static boolean |
isMac()
Returns
true if the Operating System is MacOS. |
static boolean |
isUnknown()
Returns
true if the Operating System is Unknown. |
static boolean |
isWindows()
Returns
true if the Operating System is Windows. |
static OsType |
valueOf(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 LINUX
public static final OsType MAC
public static final OsType WINDOWS
public static final OsType UNKNOWN
public static OsType[] values()
for (OsType c : OsType.values()) System.out.println(c);
public static OsType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static OsType getOsType()
public static boolean isLinux()
true
if the Operating System is Linux.true
if the Operating System is Linux.public static boolean isMac()
true
if the Operating System is MacOS.true
if the Operating System is MacOS.public static boolean isWindows()
true
if the Operating System is Windows.true
if the Operating System is Windows.public static boolean isUnknown()
true
if the Operating System is Unknown.true
if the Operating System is Unknown.Copyright © OBCOM INGENIERIA S.A. (Chile). All Rights Reserved.