Package akka.javasdk.testkit.eval
Record Class Evaluator.EvalResult
- Record Components:
evaluator- the label of the evaluator that produced this result. The runner fills it in from the evaluator'sEvalLabel, so an evaluator leaves it empty.detail- the reason, printed under a failed case
- Enclosing interface:
Evaluator
public static record Evaluator.EvalResult(String evaluator, Evaluator.EvalResult.Verdict verdict, String detail)
extends Record
What an evaluator found on one turn. This is what a
ExperimentRunner.CaseResult holds.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEvalResult(String evaluator, Evaluator.EvalResult.Verdict verdict, String detail) Creates an instance of aEvalResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondetail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluatorrecord component.static Evaluator.EvalResultfinal inthashCode()Returns a hash code value for this object.static Evaluator.EvalResultinconclusive(String detail) The evidence this check needs is absent or does not support a verdict; neither a pass nor a fail.static Evaluator.EvalResultpass()static Evaluator.EvalResultA pass with something to print, such as a score.final StringtoString()Returns a string representation of this record class.verdict()Returns the value of theverdictrecord component.
-
Constructor Details
-
Method Details
-
pass
-
pass
A pass with something to print, such as a score. -
fail
-
inconclusive
The evidence this check needs is absent or does not support a verdict; neither a pass nor a fail. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
evaluator
Returns the value of theevaluatorrecord component.- Returns:
- the value of the
evaluatorrecord component
-
verdict
Returns the value of theverdictrecord component.- Returns:
- the value of the
verdictrecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-