Record Class ComponentRequest
java.lang.Object
java.lang.Record
se.diabol.jenkins.pipeline.source.ComponentRequest
- Record Components:
name- the component's headingindex- the 1-based position of the component in the viewfirstJob- the job the pipeline starts withlastJob- the job the pipeline ends with, or null to follow the chain to its endsshowUpstream- whether to start the pipeline from the jobs upstream of the first job insteadcontext- the item group the view belongs to, for resolving relative job namessettings- the view's optionspage- the 1-based page of pipeline instances to return when paging is onpaging- whether to page at all (paging is off on full screen pages)
public record ComponentRequest(String name, int index, Job<?,?> firstJob, Job<?,?> lastJob, boolean showUpstream, ItemGroup<?> context, ViewSettings settings, int page, boolean paging)
extends Record
What a
ComponentSource needs to build one component.-
Constructor Summary
ConstructorsConstructorDescriptionComponentRequest(String name, int index, Job<?, ?> firstJob, Job<?, ?> lastJob, boolean showUpstream, ItemGroup<?> context, ViewSettings settings, int page, boolean paging) Creates an instance of aComponentRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionItemGroup<?> context()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.Job<?, ?> firstJob()Returns the value of thefirstJobrecord component.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.Job<?, ?> lastJob()Returns the value of thelastJobrecord component.name()Returns the value of thenamerecord component.intpage()Returns the value of thepagerecord component.booleanpaging()Returns the value of thepagingrecord component.settings()Returns the value of thesettingsrecord component.booleanReturns the value of theshowUpstreamrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ComponentRequest
public ComponentRequest(String name, int index, Job<?, ?> firstJob, Job<?, ?> lastJob, boolean showUpstream, ItemGroup<?> context, ViewSettings settings, int page, boolean paging) Creates an instance of aComponentRequestrecord class.- Parameters:
name- the value for thenamerecord componentindex- the value for theindexrecord componentfirstJob- the value for thefirstJobrecord componentlastJob- the value for thelastJobrecord componentshowUpstream- the value for theshowUpstreamrecord componentcontext- the value for thecontextrecord componentsettings- the value for thesettingsrecord componentpage- the value for thepagerecord componentpaging- the value for thepagingrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
firstJob
Returns the value of thefirstJobrecord component.- Returns:
- the value of the
firstJobrecord component
-
lastJob
Returns the value of thelastJobrecord component.- Returns:
- the value of the
lastJobrecord component
-
showUpstream
public boolean showUpstream()Returns the value of theshowUpstreamrecord component.- Returns:
- the value of the
showUpstreamrecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
settings
Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-
page
public int page()Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-
paging
public boolean paging()Returns the value of thepagingrecord component.- Returns:
- the value of the
pagingrecord component
-