Class OSUtil

java.lang.Object
megameklab.ui.util.OSUtil

public class OSUtil extends Object
Utility class to determine the operating system.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static OSUtil.OS
    Returns the current operating system.
    static boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static boolean
     
    static boolean
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OSUtil

      public OSUtil()
  • Method Details

    • getOS

      public static OSUtil.OS getOS()
      Returns the current operating system.
      Returns:
      OSUtil.OS
    • isMac

      public static boolean isMac()
      Returns:
      true if the current operating system is Mac
    • isWindows

      public static boolean isWindows()
      Returns:
      true if the current operating system is Windows
    • isLinux

      @Deprecated(since="0.51.0", forRemoval=true) public static boolean isLinux()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      true if the current operating system is Linux