Package org.hortonmachine.gears.utils
Enum OsCheck.OSType
- java.lang.Object
-
- java.lang.Enum<OsCheck.OSType>
-
- org.hortonmachine.gears.utils.OsCheck.OSType
-
- All Implemented Interfaces:
Serializable,Comparable<OsCheck.OSType>
- Enclosing class:
- OsCheck
public static enum OsCheck.OSType extends Enum<OsCheck.OSType>
types of Operating Systems
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OsCheck.OSTypevalueOf(String name)Returns the enum constant of this type with the specified name.static OsCheck.OSType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Windows
public static final OsCheck.OSType Windows
-
MacOS
public static final OsCheck.OSType MacOS
-
Linux
public static final OsCheck.OSType Linux
-
Other
public static final OsCheck.OSType Other
-
-
Method Detail
-
values
public static OsCheck.OSType[] 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 (OsCheck.OSType c : OsCheck.OSType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OsCheck.OSType 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
-
-