Package jenkins.model.dashboard
Record Class RecentTab.Model
java.lang.Object
java.lang.Record
jenkins.model.dashboard.RecentTab.Model
- Record Components:
queuedCount- the number of queued builds the user can see, which may exceed the entries shownexecutors- the executor of each running build
- Enclosing class:
RecentTab
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public static record RecentTab.Model(List<RecentTab.Entry<Run<?,?>>> running, List<RecentTab.Entry<Queue.Item>> queued, int queuedCount, List<RecentTab.Entry<Run<?,?>>> finished, Map<Run<?,?>,Executor> executors)
extends Record
The groups shown on the tab, each capped at
RecentTab.LIMIT entries.-
Constructor Summary
ConstructorsConstructorDescriptionModel(List<RecentTab.Entry<Run<?, ?>>> running, List<RecentTab.Entry<Queue.Item>> queued, int queuedCount, List<RecentTab.Entry<Run<?, ?>>> finished, Map<Run<?, ?>, Executor> executors) Creates an instance of aModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.executorOf(Run<?, ?> run) Returns the value of theexecutorsrecord component.List<RecentTab.Entry<Run<?, ?>>> finished()Returns the value of thefinishedrecord component.final inthashCode()Returns a hash code value for this object.booleanisEmpty()queued()Returns the value of thequeuedrecord component.intReturns the value of thequeuedCountrecord component.List<RecentTab.Entry<Run<?, ?>>> running()Returns the value of therunningrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Model
public Model(List<RecentTab.Entry<Run<?, ?>>> running, List<RecentTab.Entry<Queue.Item>> queued, int queuedCount, List<RecentTab.Entry<Run<?, ?>>> finished, Map<Run<?, ?>, Executor> executors) Creates an instance of aModelrecord class.- Parameters:
running- the value for therunningrecord componentqueued- the value for thequeuedrecord componentqueuedCount- the value for thequeuedCountrecord componentfinished- the value for thefinishedrecord componentexecutors- the value for theexecutorsrecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
executorOf
-
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 '=='. -
running
Returns the value of therunningrecord component.- Returns:
- the value of the
runningrecord component
-
queued
Returns the value of thequeuedrecord component.- Returns:
- the value of the
queuedrecord component
-
queuedCount
public int queuedCount()Returns the value of thequeuedCountrecord component.- Returns:
- the value of the
queuedCountrecord component
-
finished
Returns the value of thefinishedrecord component.- Returns:
- the value of the
finishedrecord component
-
executors
Returns the value of theexecutorsrecord component.- Returns:
- the value of the
executorsrecord component
-