Package se.diabol.jenkins.pipeline.model
Record Class JobRef
java.lang.Object
java.lang.Record
se.diabol.jenkins.pipeline.model.JobRef
@ExportedBean(defaultVisibility=100)
public record JobRef(String fullName, String displayName, String url, boolean parameterized)
extends Record
The job a component starts with.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.fullName()Returns the value of thefullNamerecord component.final inthashCode()Returns a hash code value for this object.static JobRefbooleanReturns the value of theparameterizedrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
JobRef
Creates an instance of aJobRefrecord class.- Parameters:
fullName- the value for thefullNamerecord componentdisplayName- the value for thedisplayNamerecord componenturl- the value for theurlrecord componentparameterized- the value for theparameterizedrecord component
-
-
Method Details
-
of
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
fullName
Returns the value of thefullNamerecord component.- Returns:
- the value of the
fullNamerecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
parameterized
@Exported public boolean parameterized()Returns the value of theparameterizedrecord component.- Returns:
- the value of the
parameterizedrecord component
-