Class ConstraintMatch<Score_ extends Score<Score_>>
- java.lang.Object
- 
- org.optaplanner.core.api.score.constraint.ConstraintMatch<Score_>
 
- 
- Type Parameters:
- Score_- the actual score type
 - All Implemented Interfaces:
- Comparable<ConstraintMatch<Score_>>
 
 public final class ConstraintMatch<Score_ extends Score<Score_>> extends Object implements Comparable<ConstraintMatch<Score_>> Retrievable fromConstraintMatchTotal.getConstraintMatchSet()andIndictment.getConstraintMatchSet().This class has a compareTo(ConstraintMatch)method which is inconsistent with equals. (SeeComparable.) Two differentConstraintMatchinstances with the same justification list aren'tequalbecause some ConstraintStream API methods can result in duplicate facts, which are treated as independent matches. Yet two instances maycompareTo(ConstraintMatch)equal in case they come from the same constraint and their justifications are equal. This is for consistent ordering of constraint matches in visualizations.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ConstraintMatch<Score_> other)StringgetConstraintId()StringgetConstraintName()StringgetConstraintPackage()StringgetIdentificationString()List<Object>getJustificationList()Score_getScore()StringtoString()
 
- 
- 
- 
Method Detail- 
getConstraintPackagepublic String getConstraintPackage() 
 - 
getConstraintNamepublic String getConstraintName() 
 - 
getScorepublic Score_ getScore() 
 - 
getConstraintIdpublic String getConstraintId() 
 - 
getIdentificationStringpublic String getIdentificationString() 
 - 
compareTopublic int compareTo(ConstraintMatch<Score_> other) - Specified by:
- compareToin interface- Comparable<Score_ extends Score<Score_>>
 
 
- 
 
-