Package me.autobot.lib.os
Class OSDetector
java.lang.Object
me.autobot.lib.os.OSDetector
Helper class for detecting the operating system of the user.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Returns true if the user is using a Linux OS.static boolean
Returns true if the user is using a Mac OS.static boolean
Returns true if the user is using a Windows OS.
-
Constructor Details
-
OSDetector
public OSDetector()Creates a new OSDetector...but this shouldn't happen. Throws an error. Please use the static methods instead.
-
-
Method Details
-
usingMacOS
public static boolean usingMacOS()Returns true if the user is using a Mac OS.- Returns:
- true if the user is using a Mac OS.
-
usingWindows
public static boolean usingWindows()Returns true if the user is using a Windows OS.- Returns:
- true if the user is using a Windows OS.
-
usingLinux
public static boolean usingLinux()Returns true if the user is using a Linux OS.- Returns:
- true if the user is using a Linux OS.
-