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 @NonNull ConstraintasConstraint(@NonNull 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 @NonNull ConstraintasConstraintDescribed(@NonNull String constraintName, @NonNull String constraintDescription) Builds aConstraintfrom the constraint stream.@NonNull ConstraintasConstraintDescribed(@NonNull String constraintName, @NonNull String constraintDescription, @NonNull 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- shows up inConstraintMatchTotalduring score justification
-
asConstraintDescribed
default @NonNull Constraint asConstraintDescribed(@NonNull String constraintName, @NonNull String constraintDescription) Builds aConstraintfrom the constraint stream. Theconstraint packagedefaults to the package of thePlanningSolutionclass. The constraint will be placed in thedefault constraint group.- Parameters:
constraintName- shows up inConstraintMatchTotalduring score justification
-
asConstraintDescribed
@NonNull Constraint asConstraintDescribed(@NonNull String constraintName, @NonNull String constraintDescription, @NonNull String constraintGroup) Builds aConstraintfrom the constraint stream. Theconstraint packagedefaults to the package of thePlanningSolutionclass.- Parameters:
constraintName- shows up inConstraintMatchTotalduring score justificationconstraintGroup- only allows alphanumeric characters, "-" and "_"
-
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.