java.lang.Object
one.jpro.platform.internal.util.PlatformUtils

public class PlatformUtils extends Object
Platform utilities.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    Returns true if the operating system architecture is arm64 (aarch64).
    static boolean
    Returns true if the platform is Android.
    static boolean
    Checks if the current system is a desktop platform.
    static boolean
    Returns true if the platform is embedded.
    static boolean
    Returns true if the operating system is iOS.
    static boolean
    Returns true if the operating system is a form of Linux.
    static boolean
    Returns true if the operating system is a form of macOS.
    static boolean
    Returns true if the operating system is a form of Windows.

    Methods inherited from class java.lang.Object

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

    • PlatformUtils

      public PlatformUtils()
  • Method Details

    • isDesktop

      public static boolean isDesktop()
      Checks if the current system is a desktop platform.
      Returns:
      true if the current system is a desktop platform, false otherwise.
    • isWindows

      public static boolean isWindows()
      Returns true if the operating system is a form of Windows.
      Returns:
      true if operating system is Windows, false otherwise.
    • isMac

      public static boolean isMac()
      Returns true if the operating system is a form of macOS.
      Returns:
      true if operating system is macOS, false otherwise.
    • isLinux

      public static boolean isLinux()
      Returns true if the operating system is a form of Linux.
      Returns:
      true if operating system is Linux, false otherwise.
    • isEmbedded

      public static boolean isEmbedded()
      Returns true if the platform is embedded.
      Returns:
      true if the platform is embedded, false otherwise.
    • isAndroid

      public static boolean isAndroid()
      Returns true if the platform is Android.
      Returns:
      true if the platform is Android, false otherwise.
    • isIOS

      public static boolean isIOS()
      Returns true if the operating system is iOS.
      Returns:
      true if the operating system is iOS, false otherwise.
    • isAarch64

      public static boolean isAarch64()
      Returns true if the operating system architecture is arm64 (aarch64).
      Returns:
      true if the operating system architecture is arm64, false otherwise.