public final class ConstraintVerifier<Solution_> extends Object
| Modifier and Type | Method and Description |
|---|---|
static <Solution_> |
build(Class<Solution_> planningSolutionClass,
Class<?> firstPlanningEntityClass,
Class<?>... otherPlanningEntityClasses)
Entry point to the API.
|
ConstraintProviderVerifier<Solution_> |
verifyThat(ConstraintProvider constraintProvider)
Creates a constraint verifier for a given
ConstraintProvider. |
SingleConstraintVerifier<Solution_> |
verifyThat(Function<ConstraintFactory,Constraint> constraintFunction)
Creates a constraint verifier for a given
Constraint. |
ConstraintVerifier<Solution_> |
withConstraintStreamImplType(ConstraintStreamImplType constraintStreamImplType)
All subsequent calls to
verifyThat(Function) and verifyThat(ConstraintProvider)
will use the given ConstraintStreamImplType. |
public static <Solution_> ConstraintVerifier<Solution_> build(Class<Solution_> planningSolutionClass, Class<?> firstPlanningEntityClass, Class<?>... otherPlanningEntityClasses)
Solution_ - type of the PlanningSolution-annotated classplanningSolutionClass - never null, PlanningSolution-annotated class associated with the constraintsfirstPlanningEntityClass - never null, PlanningEntity used by the PlanningSolutionotherPlanningEntityClasses - optional, extra entity classes if PlanningSolution uses more than onepublic ConstraintVerifier<Solution_> withConstraintStreamImplType(ConstraintStreamImplType constraintStreamImplType)
verifyThat(Function) and verifyThat(ConstraintProvider)
will use the given ConstraintStreamImplType.constraintStreamImplType - never nullpublic SingleConstraintVerifier<Solution_> verifyThat(Function<ConstraintFactory,Constraint> constraintFunction)
Constraint.constraintFunction - never nullpublic ConstraintProviderVerifier<Solution_> verifyThat(ConstraintProvider constraintProvider)
ConstraintProvider.constraintProvider - never nullCopyright © 2006–2020 JBoss by Red Hat. All rights reserved.