Class NativeVariant.Os

java.lang.Object
electrostatic4j.snaploader.platform.util.NativeVariant.Os
Enclosing class:
NativeVariant

public static final class NativeVariant.Os extends Object
A namespace class exposing the Operating System Propositions.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    Tests whether the current system is an Android.
    static boolean
    Tests whether the current system runtime is Desktop.
    static boolean
    Contemplated to test whether the current system runtime is an iOS os.
    static boolean
    Tests whether the current system is a Linux.
    static boolean
    Tests whether the current system is a Mac.
    static boolean
    Contemplated to test whether the current system runtime is a web os.
    static boolean
    Tests whether the current system is a Windows.

    Methods inherited from class java.lang.Object

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

    • isLinux

      public static boolean isLinux()
      Tests whether the current system is a Linux.
      Returns:
      true if the current OS is a Linux, false otherwise.
    • isWindows

      public static boolean isWindows()
      Tests whether the current system is a Windows.
      Returns:
      true if the current OS is a Windows, false otherwise.
    • isMac

      public static boolean isMac()
      Tests whether the current system is a Mac.
      Returns:
      true if the current OS is a Mac, false otherwise.
    • isAndroid

      public static boolean isAndroid()
      Tests whether the current system is an Android.
      Returns:
      true if the current OS is an Android, false otherwise.
    • isDesktop

      public static boolean isDesktop()
      Tests whether the current system runtime is Desktop. A system runtime is said to be desktop if it's not an Android, and not Web-OS, and not iOS.
      Returns:
      true if the current runtime is a desktop binary, false otherwise.
    • isWebOs

      public static boolean isWebOs()
      Contemplated to test whether the current system runtime is a web os.
      Returns:
      true if web-os; false otherwise. Current value is constantly false.
    • isIos

      public static boolean isIos()
      Contemplated to test whether the current system runtime is an iOS os.
      Returns:
      true if iOS; false otherwise. Current value is constantly false.