Package gov.nih.mipav.view
Enum Preferences.OperatingSystem
- All Implemented Interfaces:
Serializable,Comparable<Preferences.OperatingSystem>,java.lang.constant.Constable
- Enclosing class:
Preferences
Defines operating system on which MIPAV is running.
- Author:
- senseneyj
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOperating system enum for the MAC.Operating system enum for Unix - DEFAULT for unrecognized OS.Operating system enum for Windows. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final Preferences.OperatingSystemgetOS()Gets the operating system.static Preferences.OperatingSystemReturns the enum constant of this type with the specified name.static Preferences.OperatingSystem[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OS_WINDOWS
Operating system enum for Windows. -
OS_UNIX
Operating system enum for Unix - DEFAULT for unrecognized OS. -
OS_MAC
Operating system enum for the MAC.
-
-
Constructor Details
-
OperatingSystem
private OperatingSystem()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getOS
Gets the operating system.- Returns:
- operating system
-