Package utils
Class OSDetector
java.lang.Object
utils.OSDetector
This class is used to detect the operating system.
-
Field Summary
-
Constructor Summary
-
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:
true
if the operating system is Windows,false
otherwise.
-
isMac
public static boolean isMac()Check if the operating system is Mac.- Returns:
true
if the operating system is Mac,false
otherwise.
-
isUnix
public static boolean isUnix()Check if the operating system is Unix.- Returns:
true
if the operating system is Unix,false
otherwise.
-