Package ch.so.agi.mcp.constraint
Record Class ConstraintCoveragePlanner.CoverageCase
java.lang.Object
java.lang.Record
ch.so.agi.mcp.constraint.ConstraintCoveragePlanner.CoverageCase
- Enclosing class:
ConstraintCoveragePlanner
public static record ConstraintCoveragePlanner.CoverageCase(ConstraintExpressionEngine.TestGoal goal, ConstraintGoalSolver.Solution solution, List<ConstraintExpressionEngine.TestGoal> coveredGoals)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCoverageCase(ConstraintExpressionEngine.TestGoal goal, ConstraintGoalSolver.Solution solution, List<ConstraintExpressionEngine.TestGoal> coveredGoals) Creates an instance of aCoverageCaserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecoveredGoalsrecord component.final booleanIndicates whether some other object is "equal to" this one.goal()Returns the value of thegoalrecord component.final inthashCode()Returns a hash code value for this object.solution()Returns the value of thesolutionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CoverageCase
public CoverageCase(ConstraintExpressionEngine.TestGoal goal, ConstraintGoalSolver.Solution solution, List<ConstraintExpressionEngine.TestGoal> coveredGoals) Creates an instance of aCoverageCaserecord class.- Parameters:
goal- the value for thegoalrecord componentsolution- the value for thesolutionrecord componentcoveredGoals- the value for thecoveredGoalsrecord 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). -
goal
Returns the value of thegoalrecord component.- Returns:
- the value of the
goalrecord component
-
solution
Returns the value of thesolutionrecord component.- Returns:
- the value of the
solutionrecord component
-
coveredGoals
Returns the value of thecoveredGoalsrecord component.- Returns:
- the value of the
coveredGoalsrecord component
-