Enum SystemPlatform
- java.lang.Object
-
- java.lang.Enum<SystemPlatform>
-
- com.cloudbees.jenkins.support.util.SystemPlatform
-
- All Implemented Interfaces:
Serializable
,Comparable<SystemPlatform>
public enum SystemPlatform extends Enum<SystemPlatform>
System platform
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SystemPlatform.GetCurrentPlatform
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SystemPlatform
current()
static SystemPlatform
valueOf(String name)
Returns the enum constant of this type with the specified name.static SystemPlatform[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LINUX
public static final SystemPlatform LINUX
-
SOLARIS
public static final SystemPlatform SOLARIS
-
WINDOWS
public static final SystemPlatform WINDOWS
-
MACOSX
public static final SystemPlatform MACOSX
-
UNKNOWN
public static final SystemPlatform UNKNOWN
-
-
Method Detail
-
values
public static SystemPlatform[] 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 (SystemPlatform c : SystemPlatform.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SystemPlatform 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
-
current
public static SystemPlatform current()
-
-