Record Class ScenarioExecutionCampaign
java.lang.Object
java.lang.Record
fr.enedis.chutney.server.core.domain.scenario.campaign.ScenarioExecutionCampaign
public record ScenarioExecutionCampaign(String scenarioId, String scenarioName, ExecutionHistory.ExecutionSummary execution)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionScenarioExecutionCampaign(String scenarioId, String scenarioName, ExecutionHistory.ExecutionSummary execution) Creates an instance of aScenarioExecutionCampaignrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionrecord component.static Comparator<ScenarioExecutionCampaign> inthashCode()Returns a hash code value for this object.static Predicate<ScenarioExecutionCampaign> Returns the value of thescenarioIdrecord component.Returns the value of thescenarioNamerecord component.status()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScenarioExecutionCampaign
public ScenarioExecutionCampaign(String scenarioId, String scenarioName, ExecutionHistory.ExecutionSummary execution) Creates an instance of aScenarioExecutionCampaignrecord class.- Parameters:
scenarioId- the value for thescenarioIdrecord componentscenarioName- the value for thescenarioNamerecord componentexecution- the value for theexecutionrecord component
-
-
Method Details
-
isRunning
-
status
-
executionIdComparator
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
scenarioId
Returns the value of thescenarioIdrecord component.- Returns:
- the value of the
scenarioIdrecord component
-
scenarioName
Returns the value of thescenarioNamerecord component.- Returns:
- the value of the
scenarioNamerecord component
-
execution
Returns the value of theexecutionrecord component.- Returns:
- the value of the
executionrecord component
-