Package org.projecthusky.common.utils
Class OsUtil
java.lang.Object
org.projecthusky.common.utils.OsUtil
Helper methods for the Husky for operating system
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isMac()
Detects whether the current platform is Mac.static boolean
Detects whether the current platform is Solaris.static boolean
isUnix()
Detects whether the current platform is Unix.static boolean
Detects whether the current platform is Windows.
-
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
-