Interface ConstraintBuilder
- All Known Subinterfaces:
BiConstraintBuilder<A,,B, Score_> QuadConstraintBuilder<A,,B, C, D, Score_> TriConstraintBuilder<A,,B, C, Score_> UniConstraintBuilder<A,Score_>
- All Known Implementing Classes:
AbstractConstraintBuilder,BiConstraintBuilderImpl,QuadConstraintBuilderImpl,TriConstraintBuilderImpl,UniConstraintBuilderImpl
public interface ConstraintBuilder
-
Method Summary
Modifier and TypeMethodDescriptiondefault ConstraintasConstraint(String constraintName) Builds aConstraintfrom the constraint stream.asConstraint(String constraintPackage, String constraintName) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintasConstraintDescribed(String constraintName, String constraintDescription) Builds aConstraintfrom the constraint stream.asConstraintDescribed(String constraintName, String constraintDescription, String constraintGroup) Builds aConstraintfrom the constraint stream.
-
Method Details
-
asConstraint
Builds aConstraintfrom the constraint stream. Theconstraint packagedefaults to the package of thePlanningSolutionclass. The constraint will be placed in thedefault constraint group.- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justification- Returns:
- never null
-
asConstraintDescribed
Builds aConstraintfrom the constraint stream. Theconstraint packagedefaults to the package of thePlanningSolutionclass. The constraint will be placed in thedefault constraint group.- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationconstraintDescription- never null- Returns:
- never null
-
asConstraintDescribed
Constraint asConstraintDescribed(String constraintName, String constraintDescription, String constraintGroup) Builds aConstraintfrom the constraint stream. Theconstraint packagedefaults to the package of thePlanningSolutionclass.- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationconstraintDescription- never nullconstraintGroup- never null, only allows alphanumeric characters, "-" and "_"- Returns:
- never null
-
asConstraint
@Deprecated(forRemoval=true, since="1.13.0") Constraint asConstraint(String constraintPackage, String constraintName) Deprecated, for removal: This API element is subject to removal in a future version.Constraint package should no longer be used, useasConstraint(String)instead.Builds aConstraintfrom the constraint stream.- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationconstraintPackage- never null- Returns:
- never null
-
asConstraint(String)instead.