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 SummaryConstructorsConstructorDescriptionAgentInfo(OperatingSystem operatingSystem, String lineSeparator, Architecture architecture) Creates an instance of aAgentInforecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thearchitecturerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelineSeparatorrecord component.Returns the value of theoperatingSystemrecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
AgentInfoCreates an instance of aAgentInforecord class.- Parameters:
- operatingSystem- the value for the- operatingSystemrecord component
- lineSeparator- the value for the- lineSeparatorrecord component
- architecture- the value for the- architecturerecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
operatingSystemReturns the value of theoperatingSystemrecord component.- Returns:
- the value of the operatingSystemrecord component
 
- 
lineSeparatorReturns the value of thelineSeparatorrecord component.- Returns:
- the value of the lineSeparatorrecord component
 
- 
architectureReturns the value of thearchitecturerecord component.- Returns:
- the value of the architecturerecord component
 
 
-