Package akka.javasdk.testkit.eval
Record Class Evaluators.ReplyLacksLuhnNumber
- All Implemented Interfaces:
Evaluator
- Enclosing class:
Evaluators
@EvalLabel("reply-lacks-luhn-number")
public static record Evaluators.ReplyLacksLuhnNumber(int minDigits, int maxDigits)
extends Record
-
Nested Class Summary
Nested classes/interfaces inherited from interface akka.javasdk.testkit.eval.Evaluator
Evaluator.EvalResult -
Constructor Summary
ConstructorsConstructorDescriptionReplyLacksLuhnNumber(int minDigits, int maxDigits) Creates an instance of aReplyLacksLuhnNumberrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.intReturns the value of themaxDigitsrecord component.intReturns the value of theminDigitsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReplyLacksLuhnNumber
public ReplyLacksLuhnNumber(int minDigits, int maxDigits) Creates an instance of aReplyLacksLuhnNumberrecord class.- Parameters:
minDigits- the value for theminDigitsrecord componentmaxDigits- the value for themaxDigitsrecord 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 with '=='. -
minDigits
public int minDigits()Returns the value of theminDigitsrecord component.- Returns:
- the value of the
minDigitsrecord component
-
maxDigits
public int maxDigits()Returns the value of themaxDigitsrecord component.- Returns:
- the value of the
maxDigitsrecord component
-