java.lang.Object
one.jpro.platform.utils.PlatformUtils
Platform utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturns true if the operating system architecture is arm64 (aarch64).static booleanReturns true if the platform is Android.static booleanChecks if the current system is a desktop platform.static booleanReturns true if the platform is embedded.static booleanisIOS()Returns true if the operating system is iOS.static booleanisLinux()Returns true if the operating system is a form of Linux.static booleanisMac()Returns true if the operating system is a form of macOS.static booleanReturns true if the operating system is a form of Windows.
-
Constructor Details
-
PlatformUtils
public PlatformUtils()
-
-
Method Details
-
isDesktop
public static boolean isDesktop()Checks if the current system is a desktop platform.- Returns:
trueif the current system is a desktop platform,falseotherwise.
-
isWindows
public static boolean isWindows()Returns true if the operating system is a form of Windows.- Returns:
trueif operating system is Windows,falseotherwise.
-
isMac
public static boolean isMac()Returns true if the operating system is a form of macOS.- Returns:
trueif operating system is macOS,falseotherwise.
-
isLinux
public static boolean isLinux()Returns true if the operating system is a form of Linux.- Returns:
trueif operating system is Linux,falseotherwise.
-
isEmbedded
public static boolean isEmbedded()Returns true if the platform is embedded.- Returns:
trueif the platform is embedded,falseotherwise.
-
isAndroid
public static boolean isAndroid()Returns true if the platform is Android.- Returns:
trueif the platform is Android,falseotherwise.
-
isIOS
public static boolean isIOS()Returns true if the operating system is iOS.- Returns:
trueif the operating system is iOS,falseotherwise.
-
isAarch64
public static boolean isAarch64()Returns true if the operating system architecture is arm64 (aarch64).- Returns:
trueif the operating system architecture is arm64,falseotherwise.
-