Enum Class OSFamily

java.lang.Object
java.lang.Enum<OSFamily>
org.fest.swing.util.OSFamily
All Implemented Interfaces:
Serializable, Comparable<OSFamily>, Constable

public enum OSFamily extends Enum<OSFamily>
Understands a Operating System family.
Since:
1.2
  • Enum Constant Details

    • WINDOWS

      public static final OSFamily WINDOWS
    • MAC

      public static final OSFamily MAC
    • LINUX

      public static final OSFamily LINUX
    • UNIX

      public static final OSFamily UNIX
  • Field Details

    • key

      private final String key
  • Constructor Details

    • OSFamily

      private OSFamily(String key)
  • Method Details

    • values

      public static OSFamily[] 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 OSFamily 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
    • key

      public String key()
      Returns the key (or abbreviation) of this OS family.
      Returns:
      the key (or abbreviation) of this OS family.