Class DefaultIndictment<Score_ extends Score<Score_>>
java.lang.Object
org.optaplanner.core.impl.score.constraint.DefaultIndictment<Score_>
- All Implemented Interfaces:
- Indictment<Score_>
public final class DefaultIndictment<Score_ extends Score<Score_>>
extends Object
implements Indictment<Score_>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddConstraintMatch(ConstraintMatch<Score_> constraintMatch) boolean<IndictedObject_>
 IndictedObject_The object that was involved in causing the constraints to match.RetrieveConstraintJustificationinstances associated withConstraintMatches inIndictment.getConstraintMatchSet().getScore()Sum of theIndictment.getConstraintMatchSet()'sConstraintMatch.getScore().inthashCode()voidremoveConstraintMatch(ConstraintMatch<Score_> constraintMatch) toString()Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.optaplanner.core.api.score.constraint.IndictmentgetConstraintMatchCount, getJustification, getJustificationList
- 
Constructor Details- 
DefaultIndictment
 
- 
- 
Method Details- 
getIndictedObjectpublic <IndictedObject_> IndictedObject_ getIndictedObject()Description copied from interface:IndictmentThe object that was involved in causing the constraints to match. It is part ofConstraintMatch.getIndictedObjectList()of everyConstraintMatchreturned byIndictment.getConstraintMatchSet().- Specified by:
- getIndictedObjectin interface- Indictment<Score_ extends Score<Score_>>
- Type Parameters:
- IndictedObject_- Shorthand so that the user does not need to cast in user code.
- Returns:
- never null
 
- 
getConstraintMatchSet- Specified by:
- getConstraintMatchSetin interface- Indictment<Score_ extends Score<Score_>>
- Returns:
- never null
 
- 
getJustificationListDescription copied from interface:IndictmentRetrieveConstraintJustificationinstances associated withConstraintMatches inIndictment.getConstraintMatchSet(). This is equivalent to retrievingIndictment.getConstraintMatchSet()and collecting allConstraintMatch.getJustification()objects into a list.- Specified by:
- getJustificationListin interface- Indictment<Score_ extends Score<Score_>>
- Returns:
- never null, guaranteed to contain unique instances
 
- 
getScoreDescription copied from interface:IndictmentSum of theIndictment.getConstraintMatchSet()'sConstraintMatch.getScore().- Specified by:
- getScorein interface- Indictment<Score_ extends Score<Score_>>
- Returns:
- never null
 
- 
addConstraintMatch
- 
removeConstraintMatch
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-