Class DefaultConstraintJustification
java.lang.Object
ai.timefold.solver.core.api.score.stream.DefaultConstraintJustification
- All Implemented Interfaces:
ConstraintJustification,Comparable<DefaultConstraintJustification>
public final class DefaultConstraintJustification
extends Object
implements ConstraintJustification, Comparable<DefaultConstraintJustification>
Default implementation of
ConstraintJustification, returned by ConstraintMatch.getJustification()
unless the user defined a custom justification mapping.-
Method Summary
Modifier and TypeMethodDescriptionintbooleangetFacts()<Score_ extends Score<Score_>>
Score_inthashCode()static @NonNull DefaultConstraintJustificationstatic @NonNull DefaultConstraintJustificationstatic @NonNull DefaultConstraintJustificationstatic @NonNull DefaultConstraintJustificationstatic @NonNull DefaultConstraintJustificationstatic @NonNull DefaultConstraintJustificationtoString()
-
Method Details
-
of
-
of
public static @NonNull DefaultConstraintJustification of(Score<?> impact, Object factA, Object factB) -
of
public static @NonNull DefaultConstraintJustification of(Score<?> impact, Object factA, Object factB, Object factC) -
of
-
of
-
of
-
getImpact
-
getFacts
-
toString
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<DefaultConstraintJustification>
-