Package utils
Class OSDetector
java.lang.Object
utils.OSDetector
This class is used to detect the operating system.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
OS
The operating system name.
-
-
Constructor Details
-
OSDetector
public OSDetector()
-
-
Method Details
-
isWindows
public static boolean isWindows()Check if the operating system is Windows.- Returns:
trueif the operating system is Windows,falseotherwise.
-
isMac
public static boolean isMac()Check if the operating system is Mac.- Returns:
trueif the operating system is Mac,falseotherwise.
-
isUnix
public static boolean isUnix()Check if the operating system is Unix.- Returns:
trueif the operating system is Unix,falseotherwise.
-