Record Class ControlUiService.JobSummary
java.lang.Object
java.lang.Record
ch.so.agi.gretl.control.server.web.ControlUiService.JobSummary
- Enclosing class:
- ControlUiService
public static record ControlUiService.JobSummary(ch.so.agi.gretl.control.manifest.JobDefinition job, ControlUiService.RunSummary displayRun, String statusLabel, String statusClass, String title, boolean disabled)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionJobSummary(ch.so.agi.gretl.control.manifest.JobDefinition job, ControlUiService.RunSummary displayRun, String statusLabel, String statusClass, String title, boolean disabled) Creates an instance of aJobSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleandisabled()Returns the value of thedisabledrecord component.Returns the value of thedisplayRunrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.ch.so.agi.gretl.control.manifest.JobDefinitionjob()Returns the value of thejobrecord component.Returns the value of thestatusClassrecord component.Returns the value of thestatusLabelrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JobSummary
public JobSummary(ch.so.agi.gretl.control.manifest.JobDefinition job, ControlUiService.RunSummary displayRun, String statusLabel, String statusClass, String title, boolean disabled) Creates an instance of aJobSummaryrecord class.- Parameters:
job- the value for thejobrecord componentdisplayRun- the value for thedisplayRunrecord componentstatusLabel- the value for thestatusLabelrecord componentstatusClass- the value for thestatusClassrecord componenttitle- the value for thetitlerecord componentdisabled- the value for thedisabledrecord 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 '=='. -
job
public ch.so.agi.gretl.control.manifest.JobDefinition job()Returns the value of thejobrecord component.- Returns:
- the value of the
jobrecord component
-
displayRun
Returns the value of thedisplayRunrecord component.- Returns:
- the value of the
displayRunrecord component
-
statusLabel
Returns the value of thestatusLabelrecord component.- Returns:
- the value of the
statusLabelrecord component
-
statusClass
Returns the value of thestatusClassrecord component.- Returns:
- the value of the
statusClassrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
disabled
public boolean disabled()Returns the value of thedisabledrecord component.- Returns:
- the value of the
disabledrecord component
-