Package akka.javasdk.impl.evaluation
Record Class DurableEvaluatorProtocol.EvaluationData
- Enclosing class:
DurableEvaluatorProtocol
public static record DurableEvaluatorProtocol.EvaluationData(boolean passed, String explanation, Double score, String label, Map<String,String> attributes)
extends Record
Serializable shape of
Evaluation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexplanationrecord component.from(Evaluation evaluation) final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.booleanpassed()Returns the value of thepassedrecord component.score()Returns the value of thescorerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EvaluationData
public EvaluationData(boolean passed, String explanation, Double score, String label, Map<String, String> attributes) Creates an instance of aEvaluationDatarecord class.- Parameters:
passed- the value for thepassedrecord componentexplanation- the value for theexplanationrecord componentscore- the value for thescorerecord componentlabel- the value for thelabelrecord componentattributes- the value for theattributesrecord component
-
-
Method Details
-
from
-
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 '=='. -
passed
public boolean passed()Returns the value of thepassedrecord component.- Returns:
- the value of the
passedrecord component
-
explanation
Returns the value of theexplanationrecord component.- Returns:
- the value of the
explanationrecord component
-
score
Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-