Package akka.javasdk.testkit.eval
Record Class Evaluators.ToolArgument
- All Implemented Interfaces:
Evaluator
- Enclosing class:
Evaluators
@EvalLabel("tool-arguments")
public static record Evaluators.ToolArgument(String tool, String argument, Object value)
extends Record
-
Nested Class Summary
Nested classes/interfaces inherited from interface akka.javasdk.testkit.eval.Evaluator
Evaluator.EvalResult -
Constructor Summary
ConstructorsConstructorDescriptionToolArgument(String tool, String argument, Object value) Creates an instance of aToolArgumentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionargument()Returns the value of theargumentrecord component.final booleanIndicates whether some other object is "equal to" this one.evaluate(EvalCase<?> evalCase, Interaction interaction) Checks one turn.final inthashCode()Returns a hash code value for this object.tool()Returns the value of thetoolrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
ToolArgument
Creates an instance of aToolArgumentrecord class.- Parameters:
tool- the value for thetoolrecord componentargument- the value for theargumentrecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
evaluate
Description copied from interface:EvaluatorChecks one turn. Inconclusive when the evidence this check needs is absent or does not support a verdict. -
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). -
tool
Returns the value of thetoolrecord component.- Returns:
- the value of the
toolrecord component
-
argument
Returns the value of theargumentrecord component.- Returns:
- the value of the
argumentrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-