Enum Class OperatingSystem

java.lang.Object
java.lang.Enum<OperatingSystem>
be.imgn.gaia.platform.testing.OperatingSystem
All Implemented Interfaces:
Serializable, Comparable<OperatingSystem>, Constable

public enum OperatingSystem extends Enum<OperatingSystem>
The operating systems a Platform can tell apart: one for each of Platform.isLinux(), Platform.isMacOS() and Platform.isWindows(), and one for the other Unix-like systems, for which all three are false.
  • Enum Constant Details

    • LINUX

      public static final OperatingSystem LINUX
      Linux.
    • MAC_OS

      public static final OperatingSystem MAC_OS
      macOS.
    • WINDOWS

      public static final OperatingSystem WINDOWS
      Windows.
    • OTHER_UNIX

      public static final OperatingSystem OTHER_UNIX
      A Unix-like system other than Linux and macOS, such as FreeBSD.
  • Method Details

    • values

      public static OperatingSystem[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static OperatingSystem valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null