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 int
compareTo(DefaultConstraintJustification other)
List<Object>
getFacts()
<Score_ extends Score<Score_>>
Score_getImpact()
static DefaultConstraintJustification
of(Score<?> impact, Object fact)
static DefaultConstraintJustification
of(Score<?> impact, Object... facts)
static DefaultConstraintJustification
of(Score<?> impact, Object factA, Object factB)
static DefaultConstraintJustification
of(Score<?> impact, Object factA, Object factB, Object factC)
static DefaultConstraintJustification
of(Score<?> impact, Object factA, Object factB, Object factC, Object factD)
static DefaultConstraintJustification
of(Score<?> impact, List<Object> facts)
String
toString()
-
-
-
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:
compareTo
in interfaceComparable<DefaultConstraintJustification>
-
-