Package io.jenkins.plugins.adoptopenjdk
Enum AdoptOpenJDKInstaller.Platform
java.lang.Object
java.lang.Enum<AdoptOpenJDKInstaller.Platform>
io.jenkins.plugins.adoptopenjdk.AdoptOpenJDKInstaller.Platform
- All Implemented Interfaces:
Serializable,Comparable<AdoptOpenJDKInstaller.Platform>,java.lang.constant.Constable
- Enclosing class:
- AdoptOpenJDKInstaller
public static enum AdoptOpenJDKInstaller.Platform extends Enum<AdoptOpenJDKInstaller.Platform>
Supported platform
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description static AdoptOpenJDKInstaller.Platformcurrent()StringgetId()static AdoptOpenJDKInstaller.Platformof(Node n)static AdoptOpenJDKInstaller.PlatformvalueOf(String name)Returns the enum constant of this type with the specified name.static AdoptOpenJDKInstaller.Platform[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LINUX
-
WINDOWS
-
MACOS
-
SOLARIS
-
AIX
-
-
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
-
of
public static AdoptOpenJDKInstaller.Platform of(Node n) throws IOException, InterruptedException, io.jenkins.plugins.adoptopenjdk.AdoptOpenJDKInstaller.DetectionFailedException- Throws:
IOExceptionInterruptedExceptionio.jenkins.plugins.adoptopenjdk.AdoptOpenJDKInstaller.DetectionFailedException
-
current
public static AdoptOpenJDKInstaller.Platform current() throws io.jenkins.plugins.adoptopenjdk.AdoptOpenJDKInstaller.DetectionFailedException- Throws:
io.jenkins.plugins.adoptopenjdk.AdoptOpenJDKInstaller.DetectionFailedException
-
getId
-