Interface ConstraintProvider
- 
 public interface ConstraintProviderWARNING: The ConstraintStreams/ConstraintProvider API is TECH PREVIEW. It works but it has many API gaps. Therefore, it is not rich enough yet to handle complex constraints.Used by constraint stream Scorecalculation.An implementation must be stateless. - See Also:
- ConstraintStreamScoreDirector
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description Constraint[]defineConstraints(ConstraintFactory constraintFactory)This method is called once to create the constraints.
 
- 
- 
- 
Method Detail- 
defineConstraintsConstraint[] defineConstraints(ConstraintFactory constraintFactory) This method is called once to create the constraints. To create aConstraint, start withConstraintFactory.from(Class).- Parameters:
- constraintFactory- never null
- Returns:
- an array of all constraintsthat could apply. The constraints with a zeroConstraintWeightfor a particular problem will be automatically disabled when scoring that problem, to improve performance.
 
 
- 
 
-