Enum Class OsType

java.lang.Object
java.lang.Enum<OsType>
cl.obcom.desktopfx.util.OsType
All Implemented Interfaces:
Serializable, Comparable<OsType>, Constable

public enum OsType extends Enum<OsType>
Operating System Types and related utility methods.
  • Enum Constant Details

    • LINUX

      public static final OsType LINUX
      Linux Operating System.
    • MAC

      public static final OsType MAC
      MacOS Operating System.
    • WINDOWS

      public static final OsType WINDOWS
      Windows Operating System.
    • UNKNOWN

      public static final OsType UNKNOWN
      Unknown Operating System.
  • Method Details

    • values

      public static OsType[] 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 OsType 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
    • getOsType

      public static OsType getOsType()
      Returns the platform Operating System Type.
      Returns:
      the platform Operating System Type.
    • isLinux

      public static boolean isLinux()
      Returns true if the Operating System is Linux.
      Returns:
      true if the Operating System is Linux.
    • isMac

      public static boolean isMac()
      Returns true if the Operating System is MacOS.
      Returns:
      true if the Operating System is MacOS.
    • isWindows

      public static boolean isWindows()
      Returns true if the Operating System is Windows.
      Returns:
      true if the Operating System is Windows.
    • isUnknown

      public static boolean isUnknown()
      Returns true if the Operating System is Unknown.
      Returns:
      true if the Operating System is Unknown.