Package ch.so.agi.mcp.constraint
Record Class ConstraintCoveragePlanner.CoveragePlan
java.lang.Object
java.lang.Record
ch.so.agi.mcp.constraint.ConstraintCoveragePlanner.CoveragePlan
- Enclosing class:
ConstraintCoveragePlanner
public static record ConstraintCoveragePlanner.CoveragePlan(List<ConstraintCoveragePlanner.CoverageCase> cases, List<ConstraintGoalSolver.Solution> unsolved, List<ConstraintCoveragePlanner.GoalExclusion> excluded)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCoveragePlan(List<ConstraintCoveragePlanner.CoverageCase> cases, List<ConstraintGoalSolver.Solution> unsolved, List<ConstraintCoveragePlanner.GoalExclusion> excluded) Creates an instance of aCoveragePlanrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncases()Returns the value of thecasesrecord component.final booleanIndicates whether some other object is "equal to" this one.excluded()Returns the value of theexcludedrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.unsolved()Returns the value of theunsolvedrecord component.
-
Constructor Details
-
CoveragePlan
public CoveragePlan(List<ConstraintCoveragePlanner.CoverageCase> cases, List<ConstraintGoalSolver.Solution> unsolved, List<ConstraintCoveragePlanner.GoalExclusion> excluded) Creates an instance of aCoveragePlanrecord class.- Parameters:
cases- the value for thecasesrecord componentunsolved- the value for theunsolvedrecord componentexcluded- the value for theexcludedrecord 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). -
cases
Returns the value of thecasesrecord component.- Returns:
- the value of the
casesrecord component
-
unsolved
Returns the value of theunsolvedrecord component.- Returns:
- the value of the
unsolvedrecord component
-
excluded
Returns the value of theexcludedrecord component.- Returns:
- the value of the
excludedrecord component
-