Record Class AdoptOpenJDKInstaller.Configuration
java.lang.Object
java.lang.Record
io.jenkins.plugins.adoptopenjdk.AdoptOpenJDKInstaller.Configuration
- All Implemented Interfaces:
Serializable
- Enclosing class:
AdoptOpenJDKInstaller
public static record AdoptOpenJDKInstaller.Configuration(AdoptOpenJDKInstaller.Platform platform, AdoptOpenJDKInstaller.CPU cpu)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConfiguration(AdoptOpenJDKInstaller.Platform platform, AdoptOpenJDKInstaller.CPU cpu) Creates an instance of aConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncpu()Returns the value of thecpurecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.platform()Returns the value of theplatformrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Configuration
Creates an instance of aConfigurationrecord class.- Parameters:
platform- the value for theplatformrecord componentcpu- the value for thecpurecord component
-
-
Method Details
-
of
public static AdoptOpenJDKInstaller.Configuration of(Node n) throws IOException, InterruptedException, io.jenkins.plugins.adoptopenjdk.AdoptOpenJDKInstaller.DetectionFailedException - Throws:
IOExceptionInterruptedExceptionio.jenkins.plugins.adoptopenjdk.AdoptOpenJDKInstaller.DetectionFailedException
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
platform
Returns the value of theplatformrecord component.- Returns:
- the value of the
platformrecord component
-
cpu
Returns the value of thecpurecord component.- Returns:
- the value of the
cpurecord component
-