Class OSDetector

java.lang.Object
me.autobot.lib.os.OSDetector

public class OSDetector extends Object
Helper class for detecting the operating system of the user.
  • 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.