Package ch.so.agi.mcp.constraint
Record Class ConstraintExpressionEngine.TestGoal
java.lang.Object
java.lang.Record
ch.so.agi.mcp.constraint.ConstraintExpressionEngine.TestGoal
- Enclosing class:
ConstraintExpressionEngine
public static record ConstraintExpressionEngine.TestGoal(ConstraintExpressionEngine.GoalKind kind, ConstraintExpression expression, String reason, List<ConstraintExpressionEngine.StateCondition> conditions)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTestGoal(ConstraintExpressionEngine.GoalKind kind, ConstraintExpression expression, String reason) TestGoal(ConstraintExpressionEngine.GoalKind kind, ConstraintExpression expression, String reason, List<ConstraintExpressionEngine.StateCondition> conditions) Creates an instance of aTestGoalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditionsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpressionrecord component.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TestGoal
public TestGoal(ConstraintExpressionEngine.GoalKind kind, ConstraintExpression expression, String reason) -
TestGoal
public TestGoal(ConstraintExpressionEngine.GoalKind kind, ConstraintExpression expression, String reason, List<ConstraintExpressionEngine.StateCondition> conditions) Creates an instance of aTestGoalrecord class.- Parameters:
kind- the value for thekindrecord componentexpression- the value for theexpressionrecord componentreason- the value for thereasonrecord componentconditions- the value for theconditionsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
expression
Returns the value of theexpressionrecord component.- Returns:
- the value of the
expressionrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
conditions
Returns the value of theconditionsrecord component.- Returns:
- the value of the
conditionsrecord component
-