Class OsUtil

java.lang.Object
org.projecthusky.common.utils.OsUtil

public class OsUtil extends Object
Helper methods for the Husky for operating system
  • Method Details

    • isMac

      public static boolean isMac()
      Detects whether the current platform is Mac.
      Returns:
      true for Mac platforms; false otherwise
    • isSolaris

      public static boolean isSolaris()
      Detects whether the current platform is Solaris.
      Returns:
      true for Solaris platforms; false otherwise
    • isUnix

      public static boolean isUnix()
      Detects whether the current platform is Unix.
      Returns:
      true for Unix platforms; false otherwise
    • isWindows

      public static boolean isWindows()
      Detects whether the current platform is Windows.
      Returns:
      true for Windows platforms; false otherwise