public interface ConstraintVerifier<ConstraintProvider_ extends ConstraintProvider,Solution_>
Modifier and Type | Method and Description |
---|---|
static <ConstraintProvider_ extends ConstraintProvider,Solution_> |
build(ConstraintProvider_ constraintProvider,
Class<Solution_> planningSolutionClass,
Class<?>... entityClasses)
Entry point to the API.
|
MultiConstraintVerification<Solution_> |
verifyThat()
Creates a constraint verifier for all constraints of the
ConstraintProvider . |
SingleConstraintVerification<Solution_> |
verifyThat(BiFunction<ConstraintProvider_,ConstraintFactory,Constraint> constraintFunction)
Creates a constraint verifier for a given
Constraint of the ConstraintProvider . |
ConstraintVerifier<ConstraintProvider_,Solution_> |
withConstraintStreamImplType(ConstraintStreamImplType constraintStreamImplType)
All subsequent calls to
verifyThat(BiFunction) and verifyThat()
will use the given ConstraintStreamImplType . |
static <ConstraintProvider_ extends ConstraintProvider,Solution_> ConstraintVerifier<ConstraintProvider_,Solution_> build(ConstraintProvider_ constraintProvider, Class<Solution_> planningSolutionClass, Class<?>... entityClasses)
ConstraintProvider_
- type of the ConstraintProvider
Solution_
- type of the PlanningSolution
-annotated classconstraintProvider
- never null, PlanningEntity
used by the PlanningSolution
planningSolutionClass
- never null, PlanningSolution
-annotated class associated with the constraintsentityClasses
- never null, at least one, PlanningEntity
types used by the PlanningSolution
ConstraintVerifier<ConstraintProvider_,Solution_> withConstraintStreamImplType(ConstraintStreamImplType constraintStreamImplType)
verifyThat(BiFunction)
and verifyThat()
will use the given ConstraintStreamImplType
.constraintStreamImplType
- never nullSingleConstraintVerification<Solution_> verifyThat(BiFunction<ConstraintProvider_,ConstraintFactory,Constraint> constraintFunction)
Constraint
of the ConstraintProvider
.constraintFunction
- never nullMultiConstraintVerification<Solution_> verifyThat()
ConstraintProvider
.Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.