Record Class AgentInfo
java.lang.Object
java.lang.Record
io.jenkins.plugins.projectenv.agent.AgentInfo
- All Implemented Interfaces:
Serializable
public record AgentInfo(OperatingSystem operatingSystem, String lineSeparator, Architecture architecture)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAgentInfo
(OperatingSystem operatingSystem, String lineSeparator, Architecture architecture) Creates an instance of aAgentInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thearchitecture
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelineSeparator
record component.Returns the value of theoperatingSystem
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AgentInfo
Creates an instance of aAgentInfo
record class.- Parameters:
operatingSystem
- the value for theoperatingSystem
record componentlineSeparator
- the value for thelineSeparator
record componentarchitecture
- the value for thearchitecture
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
operatingSystem
Returns the value of theoperatingSystem
record component.- Returns:
- the value of the
operatingSystem
record component
-
lineSeparator
Returns the value of thelineSeparator
record component.- Returns:
- the value of the
lineSeparator
record component
-
architecture
Returns the value of thearchitecture
record component.- Returns:
- the value of the
architecture
record component
-