Enum Class OS

java.lang.Object
java.lang.Enum<OS>
io.quarkus.utilities.OS
All Implemented Interfaces:
Serializable, Comparable<OS>, Constable

@Deprecated(forRemoval=true, since="3.25") public enum OS extends Enum<OS>
Deprecated, for removal: This API element is subject to removal in a future version.
Use OS and CPU instead.
Enum to classify the os.name system property
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static OS
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use OS.current() instead.
    static String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use CPU.host() instead (but beware of differing string values).
    static OS
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the enum constant of this class with the specified name.
    static OS[]
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • WINDOWS

      public static final OS WINDOWS
      Deprecated, for removal: This API element is subject to removal in a future version.
    • LINUX

      public static final OS LINUX
      Deprecated, for removal: This API element is subject to removal in a future version.
    • MAC

      public static final OS MAC
      Deprecated, for removal: This API element is subject to removal in a future version.
    • OTHER

      public static final OS OTHER
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • values

      public static OS[] values()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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 OS valueOf(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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
    • determineOS

      @Deprecated(forRemoval=true, since="3.25") public static OS determineOS()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use OS.current() instead.
      Returns the current OS (not null).
      Returns:
      the current OS (not null)
    • getArchitecture

      @Deprecated(forRemoval=true, since="3.25") public static String getArchitecture()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use CPU.host() instead (but beware of differing string values).
      Get a non-standard string for the current architecture. NOTE: CPU should be used instead of these non-standard strings.
      Returns:
      the string, or null if the architecture is unknown