Package akka.javasdk.testkit.eval
Record Class ReportDocument.Requirement
- Record Components:
index- the position of the result in the attempt, from 0evaluator- the evaluator labeloutcome- over the runs where the requirement was conclusive: PASSED, FAILED, INCONSISTENT when it passed in some runs and failed in others, or INCONCLUSIVE when it was conclusive in no runpassedIn- the runs with the verdict PASS, ascendingfailedIn- the runs with the verdict FAIL, ascendinginconclusiveIn- the runs with the verdict INCONCLUSIVE, ascending
- Enclosing class:
ReportDocument
public static record ReportDocument.Requirement(int index, String evaluator, ExperimentRunner.Outcome outcome, List<Integer> passedIn, List<Integer> failedIn, List<Integer> inconclusiveIn)
extends Record
One requirement of a case over all runs.
-
Constructor Summary
ConstructorsConstructorDescriptionRequirement(int index, String evaluator, ExperimentRunner.Outcome outcome, List<Integer> passedIn, List<Integer> failedIn, List<Integer> inconclusiveIn) Creates an instance of aRequirementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluatorrecord component.failedIn()Returns the value of thefailedInrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinconclusiveInrecord component.intindex()Returns the value of theindexrecord component.outcome()Returns the value of theoutcomerecord component.passedIn()Returns the value of thepassedInrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Requirement
public Requirement(int index, String evaluator, ExperimentRunner.Outcome outcome, List<Integer> passedIn, List<Integer> failedIn, List<Integer> inconclusiveIn) Creates an instance of aRequirementrecord class.- Parameters:
index- the value for theindexrecord componentevaluator- the value for theevaluatorrecord componentoutcome- the value for theoutcomerecord componentpassedIn- the value for thepassedInrecord componentfailedIn- the value for thefailedInrecord componentinconclusiveIn- the value for theinconclusiveInrecord 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 '=='. -
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
evaluator
Returns the value of theevaluatorrecord component.- Returns:
- the value of the
evaluatorrecord component
-
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-
passedIn
Returns the value of thepassedInrecord component.- Returns:
- the value of the
passedInrecord component
-
failedIn
Returns the value of thefailedInrecord component.- Returns:
- the value of the
failedInrecord component
-
inconclusiveIn
Returns the value of theinconclusiveInrecord component.- Returns:
- the value of the
inconclusiveInrecord component
-