Package com.googlecode.cmakemavenproject
Enum OperatingSystem.Type
- java.lang.Object
-
- java.lang.Enum<OperatingSystem.Type>
-
- com.googlecode.cmakemavenproject.OperatingSystem.Type
-
- All Implemented Interfaces:
Serializable,Comparable<OperatingSystem.Type>
- Enclosing class:
- OperatingSystem
public static enum OperatingSystem.Type extends Enum<OperatingSystem.Type>
Operating system types.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OperatingSystem.Typedetected()Returns the type of the detected operating system.static OperatingSystem.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static OperatingSystem.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WINDOWS
public static final OperatingSystem.Type WINDOWS
Windows.
-
LINUX
public static final OperatingSystem.Type LINUX
Linux.
-
MAC
public static final OperatingSystem.Type MAC
macOS.
-
-
Method Detail
-
values
public static OperatingSystem.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OperatingSystem.Type c : OperatingSystem.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OperatingSystem.Type valueOf(String name)
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
-
detected
public static OperatingSystem.Type detected()
Returns the type of the detected operating system.- Returns:
- the type of the detected operating system
-
-