Class DefaultConstraintJustification
- java.lang.Object
-
- org.optaplanner.core.api.score.stream.DefaultConstraintJustification
-
- All Implemented Interfaces:
Comparable<DefaultConstraintJustification>,ConstraintJustification
public final class DefaultConstraintJustification extends Object implements ConstraintJustification, Comparable<DefaultConstraintJustification>
Default implementation ofConstraintJustification, returned byConstraintMatch.getJustification()unless the user defined a custom justification mapping.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(DefaultConstraintJustification other)List<Object>getFacts()<Score_ extends Score<Score_>>
Score_getImpact()static DefaultConstraintJustificationof(Score<?> impact, Object fact)static DefaultConstraintJustificationof(Score<?> impact, Object... facts)static DefaultConstraintJustificationof(Score<?> impact, Object factA, Object factB)static DefaultConstraintJustificationof(Score<?> impact, Object factA, Object factB, Object factC)static DefaultConstraintJustificationof(Score<?> impact, Object factA, Object factB, Object factC, Object factD)static DefaultConstraintJustificationof(Score<?> impact, List<Object> facts)StringtoString()
-
-
-
Method Detail
-
of
public static DefaultConstraintJustification of(Score<?> impact, Object fact)
-
of
public static DefaultConstraintJustification of(Score<?> impact, Object factA, Object factB)
-
of
public static DefaultConstraintJustification of(Score<?> impact, Object factA, Object factB, Object factC)
-
of
public static DefaultConstraintJustification of(Score<?> impact, Object factA, Object factB, Object factC, Object factD)
-
of
public static DefaultConstraintJustification of(Score<?> impact, Object... facts)
-
of
public static DefaultConstraintJustification of(Score<?> impact, List<Object> facts)
-
getImpact
public <Score_ extends Score<Score_>> Score_ getImpact()
-
compareTo
public int compareTo(DefaultConstraintJustification other)
- Specified by:
compareToin interfaceComparable<DefaultConstraintJustification>
-
-