Interface Constraint
public interface Constraint
This represents a single constraint in the 
ConstraintStream API
 that impacts the Score.
 It is defined in ConstraintProvider.defineConstraints(ConstraintFactory)
 by calling ConstraintFactory.forEach(Class).- 
Method SummaryModifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.for removal as it is not necessary on the public API.default StringThe constraint id isthe constraint packageconcatenated with "/" andthe constraint name.The constraint name.The constraint package is the namespace of the constraint.
- 
Method Details- 
getConstraintFactoryDeprecated, for removal: This API element is subject to removal in a future version.for removal as it is not necessary on the public API.TheConstraintFactorythat build this.- Returns:
- never null
 
- 
getConstraintPackageString getConstraintPackage()The constraint package is the namespace of the constraint.When using a ConstraintConfiguration, it is equal to theConstraintWeight.constraintPackage().- Returns:
- never null
 
- 
getConstraintNameString getConstraintName()The constraint name. It might not be unique, butgetConstraintId()is unique.When using a ConstraintConfiguration, it is equal to theConstraintWeight.value().- Returns:
- never null
 
- 
getConstraintIdThe constraint id isthe constraint packageconcatenated with "/" andthe constraint name. It is unique.- Returns:
- never null
 
 
-