public interface ConstraintProvider
Used by constraint stream Score
calculation.
An implementation must be stateless.
ConstraintStreamScoreDirector
Modifier and Type | Method and Description |
---|---|
Constraint[] |
defineConstraints(ConstraintFactory constraintFactory)
This method is called once to create the constraints.
|
Constraint[] defineConstraints(ConstraintFactory constraintFactory)
Constraint
, start with ConstraintFactory.from(Class)
.constraintFactory
- never nullconstraints
that could apply.
The constraints with a zero ConstraintWeight
for a particular problem
will be automatically disabled when scoring that problem, to improve performance.Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.