Class PlatformManager


  • public final class PlatformManager
    extends java.lang.Object
    Holder for current platform hook.
    Since:
    14138
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static PlatformHook PLATFORM
      Platform specific code goes in here.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private PlatformManager()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static PlatformHook getPlatform()
      Returns the current platform hook.
      static boolean isPlatformOsx()
      Determines if we are currently running on macOS.
      static boolean isPlatformUnixoid()
      Determines if we are currently running on an Unix system.
      static boolean isPlatformWindows()
      Determines if we are currently running on Windows.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getPlatform

        public static PlatformHook getPlatform()
        Returns the current platform hook.
        Returns:
        the current platform hook
      • isPlatformOsx

        public static boolean isPlatformOsx()
        Determines if we are currently running on macOS.
        Returns:
        true if we are currently running on macOS
      • isPlatformUnixoid

        public static boolean isPlatformUnixoid()
        Determines if we are currently running on an Unix system.
        Returns:
        true if we are currently running on an Unix system
      • isPlatformWindows

        public static boolean isPlatformWindows()
        Determines if we are currently running on Windows.
        Returns:
        true if we are currently running on Windows