Enum Class OperatingSystem

java.lang.Object
java.lang.Enum<OperatingSystem>
com.atlassian.bitbucket.server.OperatingSystem
All Implemented Interfaces:
Serializable, Comparable<OperatingSystem>, Constable

public enum OperatingSystem extends Enum<OperatingSystem>
Enumerates possible operating systems.

Operating systems are classified loosely. For example, individual versions of macOS and Windows are not considered distinct, and Linux distributions are not differentiated.

If the system is started on an unsupported operating system, like FreeBSD or Solaris, the operating system will be reported as LINUX.

Since:
6.2
  • Enum Constant Details

    • LINUX

      public static final OperatingSystem LINUX
      Linux-based operating systems.

      Note: Any operating system that isn't macOS or Windows or Linux, like FreeBSD or Solaris, will be reported as Linux.

    • MAC_OS

      public static final OperatingSystem MAC_OS
      Mac-based operating systems.
    • WINDOWS

      public static final OperatingSystem WINDOWS
      Windows-based operating systems.
  • 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