Package de.mhus.lib.core
Enum MSystem.OS
- java.lang.Object
-
- java.lang.Enum<MSystem.OS>
-
- de.mhus.lib.core.MSystem.OS
-
- All Implemented Interfaces:
Serializable,Comparable<MSystem.OS>
- Enclosing class:
- MSystem
public static enum MSystem.OS extends Enum<MSystem.OS>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MSystem.OSvalueOf(String name)Returns the enum constant of this type with the specified name.static MSystem.OS[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OTHER
public static final MSystem.OS OTHER
-
UNIX
public static final MSystem.OS UNIX
-
WINDOWS
public static final MSystem.OS WINDOWS
-
MACOS
public static final MSystem.OS MACOS
-
SOLARIS
public static final MSystem.OS SOLARIS
-
-
Method Detail
-
values
public static MSystem.OS[] 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 (MSystem.OS c : MSystem.OS.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MSystem.OS 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
-
-