Record Class MatchAnalysis<Score_ extends Score<Score_>>
java.lang.Object
java.lang.Record
ai.timefold.solver.core.api.score.analysis.MatchAnalysis<Score_>
- Type Parameters:
Score_-
- All Implemented Interfaces:
Comparable<MatchAnalysis<Score_>>
public record MatchAnalysis<Score_ extends Score<Score_>>(@NonNull ConstraintRef constraintRef, @NonNull Score_ extends Score<Score_> score, @NonNull ConstraintJustification justification)
extends Record
implements Comparable<MatchAnalysis<Score_>>
Note: Users should never create instances of this type directly.
It is available transitively via
SolutionManager.analyze(Object).-
Constructor Summary
ConstructorsConstructorDescriptionMatchAnalysis(@NonNull ConstraintRef constraintRef, @NonNull Score_ score, @NonNull ConstraintJustification justification) Creates an instance of aMatchAnalysisrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(MatchAnalysis<Score_> other) @NonNull ConstraintRefReturns the value of theconstraintRefrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NonNull ConstraintJustificationReturns the value of thejustificationrecord component.@NonNull Score_score()Returns the value of thescorerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MatchAnalysis
public MatchAnalysis(@NonNull ConstraintRef constraintRef, @NonNull Score_ score, @NonNull ConstraintJustification justification) Creates an instance of aMatchAnalysisrecord class.- Parameters:
constraintRef- the value for theconstraintRefrecord componentscore- the value for thescorerecord componentjustification- the value for thejustificationrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<Score_ extends Score<Score_>>
-
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). -
constraintRef
Returns the value of theconstraintRefrecord component.- Returns:
- the value of the
constraintRefrecord component
-
score
Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-
justification
Returns the value of thejustificationrecord component.- Returns:
- the value of the
justificationrecord component
-