Record Class CocoCampaignResult
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.coco.model.CocoCampaignResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartifactsrecord component.Returns the value of thecampaignIdrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theexecutedTrialsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehtmlReportrecord component.intReturns the value of thesuccessfulTrialsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CocoCampaignResult
public CocoCampaignResult(String campaignId, int executedTrials, int successfulTrials, Path htmlReport, Map<String, String> artifacts) Creates an instance of aCocoCampaignResultrecord class.- Parameters:
campaignId- the value for thecampaignIdrecord componentexecutedTrials- the value for theexecutedTrialsrecord componentsuccessfulTrials- the value for thesuccessfulTrialsrecord componenthtmlReport- the value for thehtmlReportrecord componentartifacts- the value for theartifactsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
campaignId
Returns the value of thecampaignIdrecord component.- Returns:
- the value of the
campaignIdrecord component
-
executedTrials
public int executedTrials()Returns the value of theexecutedTrialsrecord component.- Returns:
- the value of the
executedTrialsrecord component
-
successfulTrials
public int successfulTrials()Returns the value of thesuccessfulTrialsrecord component.- Returns:
- the value of the
successfulTrialsrecord component
-
htmlReport
Returns the value of thehtmlReportrecord component.- Returns:
- the value of the
htmlReportrecord component
-
artifacts
-