Interface TriConstraintStream<A,B,C>
- Type Parameters:
A
- the type of the first fact in the tuple.B
- the type of the second fact in the tuple.C
- the type of the third fact in the tuple.
- All Superinterfaces:
ConstraintStream
ConstraintStream
that matches three facts.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondistinct()
filter
(TriPredicate<A, B, C> predicate) Exhaustively test each tuple of facts against theTriPredicate
and match ifTriPredicate.test(Object, Object, Object)
returns true.<ResultC_> TriConstraintStream<A,
B, ResultC_> flattenLast
(Function<C, Iterable<ResultC_>> mapping) As defined byBiConstraintStream.flattenLast(Function)
.<GroupKey_>
UniConstraintStream<GroupKey_>groupBy
(TriFunction<A, B, C, GroupKey_> groupKeyMapping) Convert theTriConstraintStream
to aUniConstraintStream
, containing the set of tuples resulting from applying the group key mapping function on all tuples of the original stream.<GroupKey_,
ResultContainer_, Result_>
BiConstraintStream<GroupKey_,Result_> groupBy
(TriFunction<A, B, C, GroupKey_> groupKeyMapping, TriConstraintCollector<A, B, C, ResultContainer_, Result_> collector) Convert theTriConstraintStream
to aBiConstraintStream
, consisting of unique tuples.<GroupKey_,
ResultContainerB_, ResultB_, ResultContainerC_, ResultC_>
TriConstraintStream<GroupKey_,ResultB_, ResultC_> groupBy
(TriFunction<A, B, C, GroupKey_> groupKeyMapping, TriConstraintCollector<A, B, C, ResultContainerB_, ResultB_> collectorB, TriConstraintCollector<A, B, C, ResultContainerC_, ResultC_> collectorC) Convert theTriConstraintStream
to aTriConstraintStream
, consisting of unique tuples with three facts.<GroupKey_,
ResultContainerB_, ResultB_, ResultContainerC_, ResultC_, ResultContainerD_, ResultD_>
QuadConstraintStream<GroupKey_,ResultB_, ResultC_, ResultD_> groupBy
(TriFunction<A, B, C, GroupKey_> groupKeyMapping, TriConstraintCollector<A, B, C, ResultContainerB_, ResultB_> collectorB, TriConstraintCollector<A, B, C, ResultContainerC_, ResultC_> collectorC, TriConstraintCollector<A, B, C, ResultContainerD_, ResultD_> collectorD) Convert theTriConstraintStream
to aQuadConstraintStream
, consisting of unique tuples with four facts.<GroupKeyA_,
GroupKeyB_>
BiConstraintStream<GroupKeyA_,GroupKeyB_> groupBy
(TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping) Convert theTriConstraintStream
to aBiConstraintStream
, consisting of unique tuples.<GroupKeyA_,
GroupKeyB_, GroupKeyC_>
TriConstraintStream<GroupKeyA_,GroupKeyB_, GroupKeyC_> groupBy
(TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping, TriFunction<A, B, C, GroupKeyC_> groupKeyCMapping) Convert theTriConstraintStream
to aTriConstraintStream
, consisting of unique tuples with three facts.<GroupKeyA_,
GroupKeyB_, GroupKeyC_, GroupKeyD_>
QuadConstraintStream<GroupKeyA_,GroupKeyB_, GroupKeyC_, GroupKeyD_> groupBy
(TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping, TriFunction<A, B, C, GroupKeyC_> groupKeyCMapping, TriFunction<A, B, C, GroupKeyD_> groupKeyDMapping) Convert theTriConstraintStream
to aQuadConstraintStream
, consisting of unique tuples with four facts.<GroupKeyA_,
GroupKeyB_, GroupKeyC_, ResultContainerD_, ResultD_>
QuadConstraintStream<GroupKeyA_,GroupKeyB_, GroupKeyC_, ResultD_> groupBy
(TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping, TriFunction<A, B, C, GroupKeyC_> groupKeyCMapping, TriConstraintCollector<A, B, C, ResultContainerD_, ResultD_> collectorD) Combines the semantics ofgroupBy(TriFunction, TriFunction)
andgroupBy(TriConstraintCollector)
.<GroupKeyA_,
GroupKeyB_, ResultContainer_, Result_>
TriConstraintStream<GroupKeyA_,GroupKeyB_, Result_> groupBy
(TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping, TriConstraintCollector<A, B, C, ResultContainer_, Result_> collector) Combines the semantics ofgroupBy(TriFunction, TriFunction)
andgroupBy(TriConstraintCollector)
.<GroupKeyA_,
GroupKeyB_, ResultContainerC_, ResultC_, ResultContainerD_, ResultD_>
QuadConstraintStream<GroupKeyA_,GroupKeyB_, ResultC_, ResultD_> groupBy
(TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping, TriConstraintCollector<A, B, C, ResultContainerC_, ResultC_> collectorC, TriConstraintCollector<A, B, C, ResultContainerD_, ResultD_> collectorD) Combines the semantics ofgroupBy(TriFunction, TriFunction)
andgroupBy(TriConstraintCollector)
.<ResultContainer_,
Result_>
UniConstraintStream<Result_>groupBy
(TriConstraintCollector<A, B, C, ResultContainer_, Result_> collector) Convert theTriConstraintStream
to aUniConstraintStream
, containing only a single tuple, the result of applyingTriConstraintCollector
.<ResultContainerA_,
ResultA_, ResultContainerB_, ResultB_>
BiConstraintStream<ResultA_,ResultB_> groupBy
(TriConstraintCollector<A, B, C, ResultContainerA_, ResultA_> collectorA, TriConstraintCollector<A, B, C, ResultContainerB_, ResultB_> collectorB) Convert theTriConstraintStream
to aBiConstraintStream
, containing only a single tuple, the result of applying twoTriConstraintCollector
s.<ResultContainerA_,
ResultA_, ResultContainerB_, ResultB_, ResultContainerC_, ResultC_>
TriConstraintStream<ResultA_,ResultB_, ResultC_> groupBy
(TriConstraintCollector<A, B, C, ResultContainerA_, ResultA_> collectorA, TriConstraintCollector<A, B, C, ResultContainerB_, ResultB_> collectorB, TriConstraintCollector<A, B, C, ResultContainerC_, ResultC_> collectorC) Convert theTriConstraintStream
to aTriConstraintStream
, containing only a single tuple, the result of applying threeTriConstraintCollector
s.<ResultContainerA_,
ResultA_, ResultContainerB_, ResultB_, ResultContainerC_, ResultC_, ResultContainerD_, ResultD_>
QuadConstraintStream<ResultA_,ResultB_, ResultC_, ResultD_> groupBy
(TriConstraintCollector<A, B, C, ResultContainerA_, ResultA_> collectorA, TriConstraintCollector<A, B, C, ResultContainerB_, ResultB_> collectorB, TriConstraintCollector<A, B, C, ResultContainerC_, ResultC_> collectorC, TriConstraintCollector<A, B, C, ResultContainerD_, ResultD_> collectorD) Convert theTriConstraintStream
to aQuadConstraintStream
, containing only a single tuple, the result of applying fourTriConstraintCollector
s.default <D> TriConstraintStream<A,
B, C> Create a newBiConstraintStream
for every tuple of A, B and C where D exists for which theQuadJoiner
is true (for the properties it extracts from the facts).<D> TriConstraintStream<A,
B, C> As defined byifExists(Class, QuadJoiner)
.default <D> TriConstraintStream<A,
B, C> ifExists
(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2) As defined byifExists(Class, QuadJoiner)
.default <D> TriConstraintStream<A,
B, C> ifExists
(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3) As defined byifExists(Class, QuadJoiner)
.default <D> TriConstraintStream<A,
B, C> ifExists
(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3, QuadJoiner<A, B, C, D> joiner4) As defined byifExists(Class, QuadJoiner)
.default <D> TriConstraintStream<A,
B, C> ifExistsIncludingNullVars
(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner) Create a newBiConstraintStream
for every tuple of A, B and C where D exists for which theQuadJoiner
is true (for the properties it extracts from the facts).<D> TriConstraintStream<A,
B, C> ifExistsIncludingNullVars
(Class<D> otherClass, QuadJoiner<A, B, C, D>... joiners) As defined byifExistsIncludingNullVars(Class, QuadJoiner)
.default <D> TriConstraintStream<A,
B, C> ifExistsIncludingNullVars
(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2) As defined byifExistsIncludingNullVars(Class, QuadJoiner)
.default <D> TriConstraintStream<A,
B, C> ifExistsIncludingNullVars
(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3) As defined byifExistsIncludingNullVars(Class, QuadJoiner)
.default <D> TriConstraintStream<A,
B, C> ifExistsIncludingNullVars
(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3, QuadJoiner<A, B, C, D> joiner4) As defined byifExistsIncludingNullVars(Class, QuadJoiner)
.default <D> TriConstraintStream<A,
B, C> ifNotExists
(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner) Create a newBiConstraintStream
for every tuple of A, B and C where D does not exist for which theQuadJoiner
is true (for the properties it extracts from the facts).<D> TriConstraintStream<A,
B, C> ifNotExists
(Class<D> otherClass, QuadJoiner<A, B, C, D>... joiners) As defined byifNotExists(Class, QuadJoiner)
.default <D> TriConstraintStream<A,
B, C> ifNotExists
(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2) As defined byifNotExists(Class, QuadJoiner)
.default <D> TriConstraintStream<A,
B, C> ifNotExists
(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3) As defined byifNotExists(Class, QuadJoiner)
.default <D> TriConstraintStream<A,
B, C> ifNotExists
(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3, QuadJoiner<A, B, C, D> joiner4) As defined byifNotExists(Class, QuadJoiner)
.default <D> TriConstraintStream<A,
B, C> ifNotExistsIncludingNullVars
(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner) Create a newBiConstraintStream
for every tuple of A, B and C where D does not exist for which theQuadJoiner
is true (for the properties it extracts from the facts).<D> TriConstraintStream<A,
B, C> ifNotExistsIncludingNullVars
(Class<D> otherClass, QuadJoiner<A, B, C, D>... joiners) As defined byifNotExistsIncludingNullVars(Class, QuadJoiner)
.default <D> TriConstraintStream<A,
B, C> ifNotExistsIncludingNullVars
(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2) As defined byifNotExistsIncludingNullVars(Class, QuadJoiner)
.default <D> TriConstraintStream<A,
B, C> ifNotExistsIncludingNullVars
(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3) As defined byifNotExistsIncludingNullVars(Class, QuadJoiner)
.default <D> TriConstraintStream<A,
B, C> ifNotExistsIncludingNullVars
(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3, QuadJoiner<A, B, C, D> joiner4) As defined byifNotExistsIncludingNullVars(Class, QuadJoiner)
.default Constraint
impact
(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default Constraint
Deprecated, for removal: This API element is subject to removal in a future version.Preferimpact(Score, ToIntTriFunction)
.default <Score_ extends Score<Score_>>
TriConstraintBuilder<A,B, C, Score_> impact
(Score_ constraintWeight) Positively or negatively impacts theScore
by the constraintWeight for each match and returns a builder to apply optional constraint properties.<Score_ extends Score<Score_>>
TriConstraintBuilder<A,B, C, Score_> impact
(Score_ constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Positively or negatively impacts theScore
by constraintWeight multiplied by matchWeight for each match and returns a builder to apply optional constraint properties.default Constraint
impactBigDecimal
(String constraintPackage, String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default Constraint
impactBigDecimal
(String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.<Score_ extends Score<Score_>>
TriConstraintBuilder<A,B, C, Score_> impactBigDecimal
(Score_ constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) As defined byimpact(Score, ToIntTriFunction)
, with an impact of typeBigDecimal
.default TriConstraintBuilder<A,
B, C, ?> Positively impacts theScore
by theConstraintWeight
for each match, and returns a builder to apply optional constraint properties.default Constraint
impactConfigurable
(String constraintPackage, String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default Constraint
impactConfigurable
(String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.TriConstraintBuilder<A,
B, C, ?> impactConfigurable
(ToIntTriFunction<A, B, C> matchWeigher) Positively impacts theScore
by theConstraintWeight
multiplied by match weight for each match, and returns a builder to apply optional constraint properties.default Constraint
impactConfigurableBigDecimal
(String constraintPackage, String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default Constraint
impactConfigurableBigDecimal
(String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.TriConstraintBuilder<A,
B, C, ?> impactConfigurableBigDecimal
(TriFunction<A, B, C, BigDecimal> matchWeigher) As defined byimpactConfigurable(ToIntTriFunction)
, with an impact of type BigDecimal.default Constraint
impactConfigurableLong
(String constraintPackage, String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default Constraint
impactConfigurableLong
(String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.TriConstraintBuilder<A,
B, C, ?> impactConfigurableLong
(ToLongTriFunction<A, B, C> matchWeigher) As defined byimpactConfigurable(ToIntTriFunction)
, with an impact of type long.default Constraint
impactLong
(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default Constraint
impactLong
(String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.<Score_ extends Score<Score_>>
TriConstraintBuilder<A,B, C, Score_> impactLong
(Score_ constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) As defined byimpact(Score, ToIntTriFunction)
, with an impact of type long.default <D> QuadConstraintStream<A,
B, C, D> Create a newQuadConstraintStream
for every combination of [A, B, C] and D.default <D> QuadConstraintStream<A,
B, C, D> Create a newQuadConstraintStream
for every combination of [A, B, C] and D for which theQuadJoiner
is true (for the properties it extracts from all facts).<D> QuadConstraintStream<A,
B, C, D> As defined byjoin(Class, QuadJoiner)
.default <D> QuadConstraintStream<A,
B, C, D> join
(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2) As defined byjoin(Class, QuadJoiner)
.default <D> QuadConstraintStream<A,
B, C, D> join
(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3) As defined byjoin(Class, QuadJoiner)
.default <D> QuadConstraintStream<A,
B, C, D> join
(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3, QuadJoiner<A, B, C, D> joiner4) As defined byjoin(Class, QuadJoiner)
.default <D> QuadConstraintStream<A,
B, C, D> join
(UniConstraintStream<D> otherStream) Create a newQuadConstraintStream
for every combination of [A, B, C] and D.default <D> QuadConstraintStream<A,
B, C, D> join
(UniConstraintStream<D> otherStream, QuadJoiner<A, B, C, D> joiner) Create a newQuadConstraintStream
for every combination of [A, B] and C for which theQuadJoiner
is true (for the properties it extracts from all facts).<D> QuadConstraintStream<A,
B, C, D> join
(UniConstraintStream<D> otherStream, QuadJoiner<A, B, C, D>... joiners) As defined byjoin(Class, QuadJoiner)
.default <D> QuadConstraintStream<A,
B, C, D> join
(UniConstraintStream<D> otherStream, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2) As defined byjoin(Class, QuadJoiner)
.default <D> QuadConstraintStream<A,
B, C, D> join
(UniConstraintStream<D> otherStream, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3) As defined byjoin(Class, QuadJoiner)
.default <D> QuadConstraintStream<A,
B, C, D> join
(UniConstraintStream<D> otherStream, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3, QuadJoiner<A, B, C, D> joiner4) As defined byjoin(Class, QuadJoiner)
.<ResultA_> UniConstraintStream<ResultA_>
map
(TriFunction<A, B, C, ResultA_> mapping) As defined byUniConstraintStream.map(Function)
.default Constraint
penalize
(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default Constraint
Deprecated, for removal: This API element is subject to removal in a future version.default <Score_ extends Score<Score_>>
TriConstraintBuilder<A,B, C, Score_> penalize
(Score_ constraintWeight) As defined bypenalize(Score, ToIntTriFunction)
, where the match weight is one (1).<Score_ extends Score<Score_>>
TriConstraintBuilder<A,B, C, Score_> penalize
(Score_ constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Applies a negativeScore
impact, subtracting the constraintWeight multiplied by the match weight, and returns a builder to apply optional constraint properties.default Constraint
penalizeBigDecimal
(String constraintPackage, String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default Constraint
penalizeBigDecimal
(String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.<Score_ extends Score<Score_>>
TriConstraintBuilder<A,B, C, Score_> penalizeBigDecimal
(Score_ constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) As defined bypenalize(Score, ToIntTriFunction)
, with a penalty of typeBigDecimal
.default TriConstraintBuilder<A,
B, C, ?> Negatively impacts theScore
, subtracting theConstraintWeight
for each match, and returns a builder to apply optional constraint properties.default Constraint
penalizeConfigurable
(String constraintPackage, String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default Constraint
penalizeConfigurable
(String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.TriConstraintBuilder<A,
B, C, ?> penalizeConfigurable
(ToIntTriFunction<A, B, C> matchWeigher) Negatively impacts theScore
, subtracting theConstraintWeight
multiplied by match weight for each match, and returns a builder to apply optional constraint properties.default Constraint
penalizeConfigurableBigDecimal
(String constraintPackage, String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default Constraint
penalizeConfigurableBigDecimal
(String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.TriConstraintBuilder<A,
B, C, ?> penalizeConfigurableBigDecimal
(TriFunction<A, B, C, BigDecimal> matchWeigher) As defined bypenalizeConfigurable(ToIntTriFunction)
, with a penalty of typeBigDecimal
.default Constraint
penalizeConfigurableLong
(String constraintPackage, String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default Constraint
penalizeConfigurableLong
(String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.TriConstraintBuilder<A,
B, C, ?> penalizeConfigurableLong
(ToLongTriFunction<A, B, C> matchWeigher) As defined bypenalizeConfigurable(ToIntTriFunction)
, with a penalty of type long.default Constraint
penalizeLong
(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default Constraint
penalizeLong
(String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.<Score_ extends Score<Score_>>
TriConstraintBuilder<A,B, C, Score_> penalizeLong
(Score_ constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) As defined bypenalize(Score, ToIntTriFunction)
, with a penalty of type long.default Constraint
reward
(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Preferreward(Score, ToIntTriFunction)
.default Constraint
Deprecated, for removal: This API element is subject to removal in a future version.Preferreward(Score, ToIntTriFunction)
.default <Score_ extends Score<Score_>>
TriConstraintBuilder<A,B, C, Score_> reward
(Score_ constraintWeight) As defined byreward(Score, ToIntTriFunction)
, where the match weight is one (1).<Score_ extends Score<Score_>>
TriConstraintBuilder<A,B, C, Score_> reward
(Score_ constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Applies a positiveScore
impact, adding the constraintWeight multiplied by the match weight, and returns a builder to apply optional constraint properties.default Constraint
rewardBigDecimal
(String constraintPackage, String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default Constraint
rewardBigDecimal
(String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.<Score_ extends Score<Score_>>
TriConstraintBuilder<A,B, C, Score_> rewardBigDecimal
(Score_ constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) As defined byreward(Score, ToIntTriFunction)
, with a penalty of typeBigDecimal
.default TriConstraintBuilder<A,
B, C, ?> Positively impacts theScore
, adding theConstraintWeight
for each match, and returns a builder to apply optional constraint properties.default Constraint
rewardConfigurable
(String constraintPackage, String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default Constraint
rewardConfigurable
(String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.TriConstraintBuilder<A,
B, C, ?> rewardConfigurable
(ToIntTriFunction<A, B, C> matchWeigher) Positively impacts theScore
, adding theConstraintWeight
multiplied by match weight for each match, and returns a builder to apply optional constraint properties.default Constraint
rewardConfigurableBigDecimal
(String constraintPackage, String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default Constraint
rewardConfigurableBigDecimal
(String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.TriConstraintBuilder<A,
B, C, ?> rewardConfigurableBigDecimal
(TriFunction<A, B, C, BigDecimal> matchWeigher) As defined byrewardConfigurable(ToIntTriFunction)
, with a penalty of typeBigDecimal
.default Constraint
rewardConfigurableLong
(String constraintPackage, String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default Constraint
rewardConfigurableLong
(String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.TriConstraintBuilder<A,
B, C, ?> rewardConfigurableLong
(ToLongTriFunction<A, B, C> matchWeigher) As defined byrewardConfigurable(ToIntTriFunction)
, with a penalty of type long.default Constraint
rewardLong
(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default Constraint
rewardLong
(String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.<Score_ extends Score<Score_>>
TriConstraintBuilder<A,B, C, Score_> rewardLong
(Score_ constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) As defined byreward(Score, ToIntTriFunction)
, with a penalty of type long.Methods inherited from interface org.optaplanner.core.api.score.stream.ConstraintStream
getConstraintFactory, impact, impact, penalize, penalize, penalizeConfigurable, penalizeConfigurable, reward, reward, rewardConfigurable, rewardConfigurable
-
Method Details
-
filter
Exhaustively test each tuple of facts against theTriPredicate
and match ifTriPredicate.test(Object, Object, Object)
returns true.Important: This is slower and less scalable than
BiConstraintStream.join(UniConstraintStream, TriJoiner)
with a properTriJoiner
predicate (such asJoiners.equal(BiFunction, Function)
, because the latter applies hashing and/or indexing, so it doesn't create every combination just to filter it out.- Parameters:
predicate
- never null- Returns:
- never null
-
join
Create a newQuadConstraintStream
for every combination of [A, B, C] and D.Important:
Filtering
this is slower and less scalable than ajoin(UniConstraintStream, QuadJoiner)
, because it doesn't apply hashing and/or indexing on the properties, so it creates and checks every combination of [A, B] and C.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherStream
- never null- Returns:
- never null, a stream that matches every combination of [A, B, C] and D
-
join
default <D> QuadConstraintStream<A,B, joinC, D> (UniConstraintStream<D> otherStream, QuadJoiner<A, B, C, D> joiner) Create a newQuadConstraintStream
for every combination of [A, B] and C for which theQuadJoiner
is true (for the properties it extracts from all facts).Important: This is faster and more scalable than a
join
followed by afilter
, because it applies hashing and/or indexing on the properties, so it doesn't create nor checks every combination of [A, B, C] and D.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherStream
- never nulljoiner
- never null- Returns:
- never null, a stream that matches every combination of [A, B, C] and D for which the
QuadJoiner
is true
-
join
default <D> QuadConstraintStream<A,B, joinC, D> (UniConstraintStream<D> otherStream, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2) As defined byjoin(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherStream
- never nulljoiner1
- never nulljoiner2
- never null- Returns:
- never null, a stream that matches every combination of [A, B, C] and D for which all the
joiners
are true
-
join
default <D> QuadConstraintStream<A,B, joinC, D> (UniConstraintStream<D> otherStream, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3) As defined byjoin(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherStream
- never nulljoiner1
- never nulljoiner2
- never nulljoiner3
- never null- Returns:
- never null, a stream that matches every combination of [A, B, C] and D for which all the
joiners
are true
-
join
default <D> QuadConstraintStream<A,B, joinC, D> (UniConstraintStream<D> otherStream, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3, QuadJoiner<A, B, C, D> joiner4) As defined byjoin(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherStream
- never nulljoiner1
- never nulljoiner2
- never nulljoiner3
- never nulljoiner4
- never null- Returns:
- never null, a stream that matches every combination of [A, B, C] and D for which all the
joiners
are true
-
join
<D> QuadConstraintStream<A,B, joinC, D> (UniConstraintStream<D> otherStream, QuadJoiner<A, B, C, D>... joiners) As defined byjoin(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.This method causes Unchecked generics array creation for varargs parameter warnings, but we can't fix it with a
SafeVarargs
annotation because it's an interface method. Therefore, there are overloaded methods with up to 4QuadJoiner
parameters.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherStream
- never nulljoiners
- never null- Returns:
- never null, a stream that matches every combination of [A, B, C] and D for which all the
joiners
are true
-
join
Create a newQuadConstraintStream
for every combination of [A, B, C] and D.Important:
QuadConstraintStream.filter(QuadPredicate)
Filtering} this is slower and less scalable than ajoin(Class, QuadJoiner)
, because it doesn't apply hashing and/or indexing on the properties, so it creates and checks every combination of [A, B, C] and D.Note that, if a legacy constraint stream uses
ConstraintFactory.from(Class)
as opposed toConstraintFactory.forEach(Class)
, a different range of D may be selected. (SeeConstraintFactory.from(Class)
Javadoc.)This method is syntactic sugar for
join(UniConstraintStream)
.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never null- Returns:
- never null, a stream that matches every combination of [A, B, C] and D
-
join
Create a newQuadConstraintStream
for every combination of [A, B, C] and D for which theQuadJoiner
is true (for the properties it extracts from all facts).Important: This is faster and more scalable than a
join
followed by afilter
, because it applies hashing and/or indexing on the properties, so it doesn't create nor checks every combination of [A, B, C] and D.Note that, if a legacy constraint stream uses
ConstraintFactory.from(Class)
as opposed toConstraintFactory.forEach(Class)
, a different range of D may be selected. (SeeConstraintFactory.from(Class)
Javadoc.)This method is syntactic sugar for
join(UniConstraintStream, QuadJoiner)
.This method has overloaded methods with multiple
QuadJoiner
parameters.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiner
- never null- Returns:
- never null, a stream that matches every combination of [A, B, C] and D for which the
QuadJoiner
is true
-
join
default <D> QuadConstraintStream<A,B, joinC, D> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2) As defined byjoin(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiner1
- never nulljoiner2
- never null- Returns:
- never null, a stream that matches every combination of [A, B, C] and D for which all the
joiners
are true
-
join
default <D> QuadConstraintStream<A,B, joinC, D> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3) As defined byjoin(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiner1
- never nulljoiner2
- never nulljoiner3
- never null- Returns:
- never null, a stream that matches every combination of [A, B, C] and D for which all the
joiners
are true
-
join
default <D> QuadConstraintStream<A,B, joinC, D> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3, QuadJoiner<A, B, C, D> joiner4) As defined byjoin(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiner1
- never nulljoiner2
- never nulljoiner3
- never nulljoiner4
- never null- Returns:
- never null, a stream that matches every combination of [A, B, C] and D for which all the
joiners
are true
-
join
As defined byjoin(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.This method causes Unchecked generics array creation for varargs parameter warnings, but we can't fix it with a
SafeVarargs
annotation because it's an interface method. Therefore, there are overloaded methods with up to 4QuadJoiner
parameters.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiners
- never null- Returns:
- never null, a stream that matches every combination of [A, B, C] and D for which all the
joiners
are true
-
ifExists
Create a newBiConstraintStream
for every tuple of A, B and C where D exists for which theQuadJoiner
is true (for the properties it extracts from the facts).This method has overloaded methods with multiple
QuadJoiner
parameters.Note that, if a legacy constraint stream uses
ConstraintFactory.from(Class)
as opposed toConstraintFactory.forEach(Class)
, a different definition of exists applies. (SeeConstraintFactory.from(Class)
Javadoc.)- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiner
- never null- Returns:
- never null, a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiner
is true
-
ifExists
default <D> TriConstraintStream<A,B, ifExistsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2) As defined byifExists(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiner1
- never nulljoiner2
- never null- Returns:
- never null, a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiner
s are true
-
ifExists
default <D> TriConstraintStream<A,B, ifExistsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3) As defined byifExists(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiner1
- never nulljoiner2
- never nulljoiner3
- never null- Returns:
- never null, a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiner
s are true
-
ifExists
default <D> TriConstraintStream<A,B, ifExistsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3, QuadJoiner<A, B, C, D> joiner4) As defined byifExists(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiner1
- never nulljoiner2
- never nulljoiner3
- never nulljoiner4
- never null- Returns:
- never null, a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiner
s are true
-
ifExists
As defined byifExists(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.This method causes Unchecked generics array creation for varargs parameter warnings, but we can't fix it with a
SafeVarargs
annotation because it's an interface method. Therefore, there are overloaded methods with up to 4QuadJoiner
parameters.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiners
- never null- Returns:
- never null, a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiner
s are true
-
ifExistsIncludingNullVars
default <D> TriConstraintStream<A,B, ifExistsIncludingNullVarsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner) Create a newBiConstraintStream
for every tuple of A, B and C where D exists for which theQuadJoiner
is true (for the properties it extracts from the facts). For classes annotated withPlanningEntity
, this method also includes instances with null variables.This method has overloaded methods with multiple
QuadJoiner
parameters.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiner
- never null- Returns:
- never null, a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiner
is true
-
ifExistsIncludingNullVars
default <D> TriConstraintStream<A,B, ifExistsIncludingNullVarsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2) As defined byifExistsIncludingNullVars(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiner1
- never nulljoiner2
- never null- Returns:
- never null, a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiner
s are true
-
ifExistsIncludingNullVars
default <D> TriConstraintStream<A,B, ifExistsIncludingNullVarsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3) As defined byifExistsIncludingNullVars(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiner1
- never nulljoiner2
- never nulljoiner3
- never null- Returns:
- never null, a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiner
s are true
-
ifExistsIncludingNullVars
default <D> TriConstraintStream<A,B, ifExistsIncludingNullVarsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3, QuadJoiner<A, B, C, D> joiner4) As defined byifExistsIncludingNullVars(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiner1
- never nulljoiner2
- never nulljoiner3
- never nulljoiner4
- never null- Returns:
- never null, a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiner
s are true
-
ifExistsIncludingNullVars
<D> TriConstraintStream<A,B, ifExistsIncludingNullVarsC> (Class<D> otherClass, QuadJoiner<A, B, C, D>... joiners) As defined byifExistsIncludingNullVars(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.This method causes Unchecked generics array creation for varargs parameter warnings, but we can't fix it with a
SafeVarargs
annotation because it's an interface method. Therefore, there are overloaded methods with up to 4QuadJoiner
parameters.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiners
- never null- Returns:
- never null, a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiner
s are true
-
ifNotExists
Create a newBiConstraintStream
for every tuple of A, B and C where D does not exist for which theQuadJoiner
is true (for the properties it extracts from the facts).This method has overloaded methods with multiple
QuadJoiner
parameters.Note that, if a legacy constraint stream uses
ConstraintFactory.from(Class)
as opposed toConstraintFactory.forEach(Class)
, a different definition of exists applies. (SeeConstraintFactory.from(Class)
Javadoc.)- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiner
- never null- Returns:
- never null, a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiner
is true
-
ifNotExists
default <D> TriConstraintStream<A,B, ifNotExistsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2) As defined byifNotExists(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiner1
- never nulljoiner2
- never null- Returns:
- never null, a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiner
s are true
-
ifNotExists
default <D> TriConstraintStream<A,B, ifNotExistsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3) As defined byifNotExists(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiner1
- never nulljoiner2
- never nulljoiner3
- never null- Returns:
- never null, a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiner
s are true
-
ifNotExists
default <D> TriConstraintStream<A,B, ifNotExistsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3, QuadJoiner<A, B, C, D> joiner4) As defined byifNotExists(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiner1
- never nulljoiner2
- never nulljoiner3
- never nulljoiner4
- never null- Returns:
- never null, a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiner
s are true
-
ifNotExists
As defined byifNotExists(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.This method causes Unchecked generics array creation for varargs parameter warnings, but we can't fix it with a
SafeVarargs
annotation because it's an interface method. Therefore, there are overloaded methods with up to 4QuadJoiner
parameters.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiners
- never null- Returns:
- never null, a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiner
s are true
-
ifNotExistsIncludingNullVars
default <D> TriConstraintStream<A,B, ifNotExistsIncludingNullVarsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner) Create a newBiConstraintStream
for every tuple of A, B and C where D does not exist for which theQuadJoiner
is true (for the properties it extracts from the facts). For classes annotated withPlanningEntity
, this method also includes instances with null variables.This method has overloaded methods with multiple
QuadJoiner
parameters.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiner
- never null- Returns:
- never null, a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiner
is true
-
ifNotExistsIncludingNullVars
default <D> TriConstraintStream<A,B, ifNotExistsIncludingNullVarsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2) As defined byifNotExistsIncludingNullVars(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiner1
- never nulljoiner2
- never null- Returns:
- never null, a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiner
s are true
-
ifNotExistsIncludingNullVars
default <D> TriConstraintStream<A,B, ifNotExistsIncludingNullVarsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3) As defined byifNotExistsIncludingNullVars(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiner1
- never nulljoiner2
- never nulljoiner3
- never null- Returns:
- never null, a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiner
s are true
-
ifNotExistsIncludingNullVars
default <D> TriConstraintStream<A,B, ifNotExistsIncludingNullVarsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3, QuadJoiner<A, B, C, D> joiner4) As defined byifNotExistsIncludingNullVars(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiner1
- never nulljoiner2
- never nulljoiner3
- never nulljoiner4
- never null- Returns:
- never null, a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiner
s are true
-
ifNotExistsIncludingNullVars
<D> TriConstraintStream<A,B, ifNotExistsIncludingNullVarsC> (Class<D> otherClass, QuadJoiner<A, B, C, D>... joiners) As defined byifNotExistsIncludingNullVars(Class, QuadJoiner)
. For performance reasons, indexing joiners must be placed before filtering joiners.This method causes Unchecked generics array creation for varargs parameter warnings, but we can't fix it with a
SafeVarargs
annotation because it's an interface method. Therefore, there are overloaded methods with up to 4QuadJoiner
parameters.- Type Parameters:
D
- the type of the fourth matched fact- Parameters:
otherClass
- never nulljoiners
- never null- Returns:
- never null, a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiner
s are true
-
groupBy
<ResultContainer_,Result_> UniConstraintStream<Result_> groupBy(TriConstraintCollector<A, B, C, ResultContainer_, Result_> collector) Convert theTriConstraintStream
to aUniConstraintStream
, containing only a single tuple, the result of applyingTriConstraintCollector
.- Type Parameters:
ResultContainer_
- the mutable accumulation type (often hidden as an implementation detail)Result_
- the type of a fact in the destinationUniConstraintStream
's tuple- Parameters:
collector
- never null, the collector to perform the grouping operation with SeeConstraintCollectors
for common operations, such ascount()
,sum()
and others.- Returns:
- never null
-
groupBy
<ResultContainerA_,ResultA_, BiConstraintStream<ResultA_,ResultContainerB_, ResultB_> ResultB_> groupBy(TriConstraintCollector<A, B, C, ResultContainerA_, ResultA_> collectorA, TriConstraintCollector<A, B, C, ResultContainerB_, ResultB_> collectorB) Convert theTriConstraintStream
to aBiConstraintStream
, containing only a single tuple, the result of applying twoTriConstraintCollector
s.- Type Parameters:
ResultContainerA_
- the mutable accumulation type (often hidden as an implementation detail)ResultA_
- the type of the first fact in the destinationBiConstraintStream
's tupleResultContainerB_
- the mutable accumulation type (often hidden as an implementation detail)ResultB_
- the type of the second fact in the destinationBiConstraintStream
's tuple- Parameters:
collectorA
- never null, the collector to perform the first grouping operation with SeeConstraintCollectors
for common operations, such ascount()
,sum()
and others.collectorB
- never null, the collector to perform the second grouping operation with SeeConstraintCollectors
for common operations, such ascount()
,sum()
and others.- Returns:
- never null
-
groupBy
<ResultContainerA_,ResultA_, TriConstraintStream<ResultA_,ResultContainerB_, ResultB_, ResultContainerC_, ResultC_> ResultB_, groupByResultC_> (TriConstraintCollector<A, B, C, ResultContainerA_, ResultA_> collectorA, TriConstraintCollector<A, B, C, ResultContainerB_, ResultB_> collectorB, TriConstraintCollector<A, B, C, ResultContainerC_, ResultC_> collectorC) Convert theTriConstraintStream
to aTriConstraintStream
, containing only a single tuple, the result of applying threeTriConstraintCollector
s.- Type Parameters:
ResultContainerA_
- the mutable accumulation type (often hidden as an implementation detail)ResultA_
- the type of the first fact in the destinationTriConstraintStream
's tupleResultContainerB_
- the mutable accumulation type (often hidden as an implementation detail)ResultB_
- the type of the second fact in the destinationTriConstraintStream
's tupleResultContainerC_
- the mutable accumulation type (often hidden as an implementation detail)ResultC_
- the type of the third fact in the destinationTriConstraintStream
's tuple- Parameters:
collectorA
- never null, the collector to perform the first grouping operation with SeeConstraintCollectors
for common operations, such ascount()
,sum()
and others.collectorB
- never null, the collector to perform the second grouping operation with SeeConstraintCollectors
for common operations, such ascount()
,sum()
and others.collectorC
- never null, the collector to perform the third grouping operation with SeeConstraintCollectors
for common operations, such ascount()
,sum()
and others.- Returns:
- never null
-
groupBy
<ResultContainerA_,ResultA_, QuadConstraintStream<ResultA_,ResultContainerB_, ResultB_, ResultContainerC_, ResultC_, ResultContainerD_, ResultD_> ResultB_, groupByResultC_, ResultD_> (TriConstraintCollector<A, B, C, ResultContainerA_, ResultA_> collectorA, TriConstraintCollector<A, B, C, ResultContainerB_, ResultB_> collectorB, TriConstraintCollector<A, B, C, ResultContainerC_, ResultC_> collectorC, TriConstraintCollector<A, B, C, ResultContainerD_, ResultD_> collectorD) Convert theTriConstraintStream
to aQuadConstraintStream
, containing only a single tuple, the result of applying fourTriConstraintCollector
s.- Type Parameters:
ResultContainerA_
- the mutable accumulation type (often hidden as an implementation detail)ResultA_
- the type of the first fact in the destinationQuadConstraintStream
's tupleResultContainerB_
- the mutable accumulation type (often hidden as an implementation detail)ResultB_
- the type of the second fact in the destinationQuadConstraintStream
's tupleResultContainerC_
- the mutable accumulation type (often hidden as an implementation detail)ResultC_
- the type of the third fact in the destinationQuadConstraintStream
's tupleResultContainerD_
- the mutable accumulation type (often hidden as an implementation detail)ResultD_
- the type of the fourth fact in the destinationQuadConstraintStream
's tuple- Parameters:
collectorA
- never null, the collector to perform the first grouping operation with SeeConstraintCollectors
for common operations, such ascount()
,sum()
and others.collectorB
- never null, the collector to perform the second grouping operation with SeeConstraintCollectors
for common operations, such ascount()
,sum()
and others.collectorC
- never null, the collector to perform the third grouping operation with SeeConstraintCollectors
for common operations, such ascount()
,sum()
and others.collectorD
- never null, the collector to perform the fourth grouping operation with SeeConstraintCollectors
for common operations, such ascount()
,sum()
and others.- Returns:
- never null
-
groupBy
Convert theTriConstraintStream
to aUniConstraintStream
, containing the set of tuples resulting from applying the group key mapping function on all tuples of the original stream. Neither tuple of the new streamObjects.equals(Object, Object)
any other.- Type Parameters:
GroupKey_
- the type of a fact in the destinationUniConstraintStream
's tuple; must honorthe general contract of hashCode
.- Parameters:
groupKeyMapping
- never null, mapping function to convert each element in the stream to a different element- Returns:
- never null
-
groupBy
<GroupKey_,ResultContainer_, BiConstraintStream<GroupKey_,Result_> Result_> groupBy(TriFunction<A, B, C, GroupKey_> groupKeyMapping, TriConstraintCollector<A, B, C, ResultContainer_, Result_> collector) Convert theTriConstraintStream
to aBiConstraintStream
, consisting of unique tuples.The first fact is the return value of the group key mapping function, applied on the incoming tuple. The second fact is the return value of a given
TriConstraintCollector
applied on all incoming tuples with the same first fact.- Type Parameters:
GroupKey_
- the type of the first fact in the destinationBiConstraintStream
's tuple; must honorthe general contract of hashCode
.ResultContainer_
- the mutable accumulation type (often hidden as an implementation detail)Result_
- the type of the second fact in the destinationBiConstraintStream
's tuple- Parameters:
groupKeyMapping
- never null, function to convert the fact in the original tuple to a different factcollector
- never null, the collector to perform the grouping operation with SeeConstraintCollectors
for common operations, such ascount()
,sum()
and others.- Returns:
- never null
-
groupBy
<GroupKey_,ResultContainerB_, TriConstraintStream<GroupKey_,ResultB_, ResultContainerC_, ResultC_> ResultB_, groupByResultC_> (TriFunction<A, B, C, GroupKey_> groupKeyMapping, TriConstraintCollector<A, B, C, ResultContainerB_, ResultB_> collectorB, TriConstraintCollector<A, B, C, ResultContainerC_, ResultC_> collectorC) Convert theTriConstraintStream
to aTriConstraintStream
, consisting of unique tuples with three facts.The first fact is the return value of the group key mapping function, applied on the incoming tuple. The remaining facts are the return value of the respective
TriConstraintCollector
applied on all incoming tuples with the same first fact.- Type Parameters:
GroupKey_
- the type of the first fact in the destinationTriConstraintStream
's tuple; must honorthe general contract of hashCode
.ResultContainerB_
- the mutable accumulation type (often hidden as an implementation detail)ResultB_
- the type of the second fact in the destinationTriConstraintStream
's tupleResultContainerC_
- the mutable accumulation type (often hidden as an implementation detail)ResultC_
- the type of the third fact in the destinationTriConstraintStream
's tuple- Parameters:
groupKeyMapping
- never null, function to convert the fact in the original tuple to a different factcollectorB
- never null, the collector to perform the first grouping operation with SeeConstraintCollectors
for common operations, such ascount()
,sum()
and others.collectorC
- never null, the collector to perform the second grouping operation with SeeConstraintCollectors
for common operations, such ascount()
,sum()
and others.- Returns:
- never null
-
groupBy
<GroupKey_,ResultContainerB_, QuadConstraintStream<GroupKey_,ResultB_, ResultContainerC_, ResultC_, ResultContainerD_, ResultD_> ResultB_, groupByResultC_, ResultD_> (TriFunction<A, B, C, GroupKey_> groupKeyMapping, TriConstraintCollector<A, B, C, ResultContainerB_, ResultB_> collectorB, TriConstraintCollector<A, B, C, ResultContainerC_, ResultC_> collectorC, TriConstraintCollector<A, B, C, ResultContainerD_, ResultD_> collectorD) Convert theTriConstraintStream
to aQuadConstraintStream
, consisting of unique tuples with four facts.The first fact is the return value of the group key mapping function, applied on the incoming tuple. The remaining facts are the return value of the respective
TriConstraintCollector
applied on all incoming tuples with the same first fact.- Type Parameters:
GroupKey_
- the type of the first fact in the destinationQuadConstraintStream
's tuple; must honorthe general contract of hashCode
.ResultContainerB_
- the mutable accumulation type (often hidden as an implementation detail)ResultB_
- the type of the second fact in the destinationQuadConstraintStream
's tupleResultContainerC_
- the mutable accumulation type (often hidden as an implementation detail)ResultC_
- the type of the third fact in the destinationQuadConstraintStream
's tupleResultContainerD_
- the mutable accumulation type (often hidden as an implementation detail)ResultD_
- the type of the fourth fact in the destinationQuadConstraintStream
's tuple- Parameters:
groupKeyMapping
- never null, function to convert the fact in the original tuple to a different factcollectorB
- never null, the collector to perform the first grouping operation with SeeConstraintCollectors
for common operations, such ascount()
,sum()
and others.collectorC
- never null, the collector to perform the second grouping operation with SeeConstraintCollectors
for common operations, such ascount()
,sum()
and others.collectorD
- never null, the collector to perform the third grouping operation with SeeConstraintCollectors
for common operations, such ascount()
,sum()
and others.- Returns:
- never null
-
groupBy
<GroupKeyA_,GroupKeyB_> BiConstraintStream<GroupKeyA_,GroupKeyB_> groupBy(TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping) Convert theTriConstraintStream
to aBiConstraintStream
, consisting of unique tuples.The first fact is the return value of the first group key mapping function, applied on the incoming tuple. The second fact is the return value of the second group key mapping function, applied on all incoming tuples with the same first fact.
- Type Parameters:
GroupKeyA_
- the type of the first fact in the destinationBiConstraintStream
's tuple; must honorthe general contract of hashCode
.GroupKeyB_
- the type of the second fact in the destinationBiConstraintStream
's tuple; must honorthe general contract of hashCode
.- Parameters:
groupKeyAMapping
- never null, function to convert the facts in the original tuple to a new factgroupKeyBMapping
- never null, function to convert the facts in the original tuple to another new fact- Returns:
- never null
-
groupBy
<GroupKeyA_,GroupKeyB_, TriConstraintStream<GroupKeyA_,ResultContainer_, Result_> GroupKeyB_, groupByResult_> (TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping, TriConstraintCollector<A, B, C, ResultContainer_, Result_> collector) Combines the semantics ofgroupBy(TriFunction, TriFunction)
andgroupBy(TriConstraintCollector)
. That is, the first and second facts in the tuple follow thegroupBy(TriFunction, TriFunction)
semantics, and the third fact is the result of applyingTriConstraintCollector.finisher()
on all the tuples of the originalUniConstraintStream
that belong to the group.- Type Parameters:
GroupKeyA_
- the type of the first fact in the destinationTriConstraintStream
's tuple; must honorthe general contract of hashCode
.GroupKeyB_
- the type of the second fact in the destinationTriConstraintStream
's tuple; must honorthe general contract of hashCode
.ResultContainer_
- the mutable accumulation type (often hidden as an implementation detail)Result_
- the type of the third fact in the destinationTriConstraintStream
's tuple- Parameters:
groupKeyAMapping
- never null, function to convert the original tuple into a first factgroupKeyBMapping
- never null, function to convert the original tuple into a second factcollector
- never null, the collector to perform the grouping operation with SeeConstraintCollectors
for common operations, such ascount()
,sum()
and others.- Returns:
- never null
-
groupBy
<GroupKeyA_,GroupKeyB_, QuadConstraintStream<GroupKeyA_,ResultContainerC_, ResultC_, ResultContainerD_, ResultD_> GroupKeyB_, groupByResultC_, ResultD_> (TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping, TriConstraintCollector<A, B, C, ResultContainerC_, ResultC_> collectorC, TriConstraintCollector<A, B, C, ResultContainerD_, ResultD_> collectorD) Combines the semantics ofgroupBy(TriFunction, TriFunction)
andgroupBy(TriConstraintCollector)
. That is, the first and second facts in the tuple follow thegroupBy(TriFunction, TriFunction)
semantics. The third fact is the result of applying the firstTriConstraintCollector.finisher()
on all the tuples of the originalTriConstraintStream
that belong to the group. The fourth fact is the result of applying the secondTriConstraintCollector.finisher()
on all the tuples of the originalTriConstraintStream
that belong to the group- Type Parameters:
GroupKeyA_
- the type of the first fact in the destinationQuadConstraintStream
's tuple; must honorthe general contract of hashCode
.GroupKeyB_
- the type of the second fact in the destinationQuadConstraintStream
's tuple; must honorthe general contract of hashCode
.ResultContainerC_
- the mutable accumulation type (often hidden as an implementation detail)ResultC_
- the type of the third fact in the destinationQuadConstraintStream
's tupleResultContainerD_
- the mutable accumulation type (often hidden as an implementation detail)ResultD_
- the type of the fourth fact in the destinationQuadConstraintStream
's tuple- Parameters:
groupKeyAMapping
- never null, function to convert the original tuple into a first factgroupKeyBMapping
- never null, function to convert the original tuple into a second factcollectorC
- never null, the collector to perform the first grouping operation with SeeConstraintCollectors
for common operations, such ascount()
,sum()
and others.collectorD
- never null, the collector to perform the second grouping operation with SeeConstraintCollectors
for common operations, such ascount()
,sum()
and others.- Returns:
- never null
-
groupBy
<GroupKeyA_,GroupKeyB_, TriConstraintStream<GroupKeyA_,GroupKeyC_> GroupKeyB_, groupByGroupKeyC_> (TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping, TriFunction<A, B, C, GroupKeyC_> groupKeyCMapping) Convert theTriConstraintStream
to aTriConstraintStream
, consisting of unique tuples with three facts.The first fact is the return value of the first group key mapping function, applied on the incoming tuple. The second fact is the return value of the second group key mapping function, applied on all incoming tuples with the same first fact. The third fact is the return value of the third group key mapping function, applied on all incoming tuples with the same first fact.
- Type Parameters:
GroupKeyA_
- the type of the first fact in the destinationTriConstraintStream
's tuple; must honorthe general contract of hashCode
.GroupKeyB_
- the type of the second fact in the destinationTriConstraintStream
's tuple; must honorthe general contract of hashCode
.GroupKeyC_
- the type of the third fact in the destinationTriConstraintStream
's tuple; must honorthe general contract of hashCode
.- Parameters:
groupKeyAMapping
- never null, function to convert the original tuple into a first factgroupKeyBMapping
- never null, function to convert the original tuple into a second factgroupKeyCMapping
- never null, function to convert the original tuple into a third fact- Returns:
- never null
-
groupBy
<GroupKeyA_,GroupKeyB_, QuadConstraintStream<GroupKeyA_,GroupKeyC_, ResultContainerD_, ResultD_> GroupKeyB_, groupByGroupKeyC_, ResultD_> (TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping, TriFunction<A, B, C, GroupKeyC_> groupKeyCMapping, TriConstraintCollector<A, B, C, ResultContainerD_, ResultD_> collectorD) Combines the semantics ofgroupBy(TriFunction, TriFunction)
andgroupBy(TriConstraintCollector)
. That is, the first three facts in the tuple follow thegroupBy(TriFunction, TriFunction)
semantics. The final fact is the result of applying the firstTriConstraintCollector.finisher()
on all the tuples of the originalTriConstraintStream
that belong to the group.- Type Parameters:
GroupKeyA_
- the type of the first fact in the destinationQuadConstraintStream
's tuple; must honorthe general contract of hashCode
.GroupKeyB_
- the type of the second fact in the destinationQuadConstraintStream
's tuple; must honorthe general contract of hashCode
.GroupKeyC_
- the type of the third fact in the destinationQuadConstraintStream
's tuple; must honorthe general contract of hashCode
.ResultContainerD_
- the mutable accumulation type (often hidden as an implementation detail)ResultD_
- the type of the fourth fact in the destinationQuadConstraintStream
's tuple- Parameters:
groupKeyAMapping
- never null, function to convert the original tuple into a first factgroupKeyBMapping
- never null, function to convert the original tuple into a second factgroupKeyCMapping
- never null, function to convert the original tuple into a third factcollectorD
- never null, the collector to perform the grouping operation with SeeConstraintCollectors
for common operations, such ascount()
,sum()
and others.- Returns:
- never null
-
groupBy
<GroupKeyA_,GroupKeyB_, QuadConstraintStream<GroupKeyA_,GroupKeyC_, GroupKeyD_> GroupKeyB_, groupByGroupKeyC_, GroupKeyD_> (TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping, TriFunction<A, B, C, GroupKeyC_> groupKeyCMapping, TriFunction<A, B, C, GroupKeyD_> groupKeyDMapping) Convert theTriConstraintStream
to aQuadConstraintStream
, consisting of unique tuples with four facts.The first fact is the return value of the first group key mapping function, applied on the incoming tuple. The second fact is the return value of the second group key mapping function, applied on all incoming tuples with the same first fact. The third fact is the return value of the third group key mapping function, applied on all incoming tuples with the same first fact. The fourth fact is the return value of the fourth group key mapping function, applied on all incoming tuples with the same first fact.
- Type Parameters:
GroupKeyA_
- the type of the first fact in the destinationQuadConstraintStream
's tuple; must honorthe general contract of hashCode
.GroupKeyB_
- the type of the second fact in the destinationQuadConstraintStream
's tuple; must honorthe general contract of hashCode
.GroupKeyC_
- the type of the third fact in the destinationQuadConstraintStream
's tuple; must honorthe general contract of hashCode
.GroupKeyD_
- the type of the fourth fact in the destinationQuadConstraintStream
's tuple; must honorthe general contract of hashCode
.- Parameters:
groupKeyAMapping
- never null, function to convert the original tuple into a first factgroupKeyBMapping
- never null, function to convert the original tuple into a second factgroupKeyCMapping
- never null, function to convert the original tuple into a third factgroupKeyDMapping
- never null, function to convert the original tuple into a fourth fact- Returns:
- never null
-
map
As defined byUniConstraintStream.map(Function)
.- Type Parameters:
ResultA_
- the type of the only fact in the resultingUniConstraintStream
's tuple- Parameters:
mapping
- never null, function to convert the original tuple into the new tuple- Returns:
- never null
-
flattenLast
As defined byBiConstraintStream.flattenLast(Function)
.- Type Parameters:
ResultC_
- the type of the last fact in the resulting tuples. It is recommended that this type be deeply immutable. Not following this recommendation may lead to hard-to-debug hashing issues down the stream, especially if this value is ever used as a group key.- Parameters:
mapping
- never null, function to convert the last fact in the original tuple intoIterable
- Returns:
- never null
-
distinct
TriConstraintStream<A,B, distinct()C> Removes duplicate tuples from the stream, according to the tuple's factsequals
/hashCode
methods, such that only distinct tuples remain. (No two tuples willequal
.)By default, tuples going through a constraint stream are distinct. However, operations such as
map(TriFunction)
may create a stream which breaks that promise. By calling this method on such a stream, duplicate copies of the same tuple will be omitted at a performance cost.- Returns:
- never null
-
penalize
default <Score_ extends Score<Score_>> TriConstraintBuilder<A,B, penalizeC, Score_> (Score_ constraintWeight) As defined bypenalize(Score, ToIntTriFunction)
, where the match weight is one (1).- Returns:
- never null
-
penalize
<Score_ extends Score<Score_>> TriConstraintBuilder<A,B, penalizeC, Score_> (Score_ constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Applies a negativeScore
impact, subtracting the constraintWeight multiplied by the match weight, and returns a builder to apply optional constraint properties.For non-int
Score
types usepenalizeLong(Score, ToLongTriFunction)
orpenalizeBigDecimal(Score, TriFunction)
instead.- Parameters:
constraintWeight
- never nullmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalizeLong
<Score_ extends Score<Score_>> TriConstraintBuilder<A,B, penalizeLongC, Score_> (Score_ constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) As defined bypenalize(Score, ToIntTriFunction)
, with a penalty of type long. -
penalizeBigDecimal
<Score_ extends Score<Score_>> TriConstraintBuilder<A,B, penalizeBigDecimalC, Score_> (Score_ constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) As defined bypenalize(Score, ToIntTriFunction)
, with a penalty of typeBigDecimal
. -
penalizeConfigurable
Negatively impacts theScore
, subtracting theConstraintWeight
for each match, and returns a builder to apply optional constraint properties.The constraintWeight comes from an
ConstraintWeight
annotated member on theConstraintConfiguration
, so end users can change the constraint weights dynamically. This constraint may be deactivated if theConstraintWeight
is zero. If there is noConstraintConfiguration
, usepenalize(Score)
instead.- Returns:
- never null
-
penalizeConfigurable
Negatively impacts theScore
, subtracting theConstraintWeight
multiplied by match weight for each match, and returns a builder to apply optional constraint properties.The constraintWeight comes from an
ConstraintWeight
annotated member on theConstraintConfiguration
, so end users can change the constraint weights dynamically. This constraint may be deactivated if theConstraintWeight
is zero. If there is noConstraintConfiguration
, usepenalize(Score, ToIntTriFunction)
instead.- Parameters:
matchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalizeConfigurableLong
As defined bypenalizeConfigurable(ToIntTriFunction)
, with a penalty of type long.If there is no
ConstraintConfiguration
, usepenalizeLong(Score, ToLongTriFunction)
instead. -
penalizeConfigurableBigDecimal
TriConstraintBuilder<A,B, penalizeConfigurableBigDecimalC, ?> (TriFunction<A, B, C, BigDecimal> matchWeigher) As defined bypenalizeConfigurable(ToIntTriFunction)
, with a penalty of typeBigDecimal
.If there is no
ConstraintConfiguration
, usepenalizeBigDecimal(Score, TriFunction)
instead. -
reward
default <Score_ extends Score<Score_>> TriConstraintBuilder<A,B, rewardC, Score_> (Score_ constraintWeight) As defined byreward(Score, ToIntTriFunction)
, where the match weight is one (1).- Returns:
- never null
-
reward
<Score_ extends Score<Score_>> TriConstraintBuilder<A,B, rewardC, Score_> (Score_ constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Applies a positiveScore
impact, adding the constraintWeight multiplied by the match weight, and returns a builder to apply optional constraint properties.For non-int
Score
types userewardLong(Score, ToLongTriFunction)
orrewardBigDecimal(Score, TriFunction)
instead.- Parameters:
constraintWeight
- never nullmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
rewardLong
<Score_ extends Score<Score_>> TriConstraintBuilder<A,B, rewardLongC, Score_> (Score_ constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) As defined byreward(Score, ToIntTriFunction)
, with a penalty of type long. -
rewardBigDecimal
<Score_ extends Score<Score_>> TriConstraintBuilder<A,B, rewardBigDecimalC, Score_> (Score_ constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) As defined byreward(Score, ToIntTriFunction)
, with a penalty of typeBigDecimal
. -
rewardConfigurable
Positively impacts theScore
, adding theConstraintWeight
for each match, and returns a builder to apply optional constraint properties.The constraintWeight comes from an
ConstraintWeight
annotated member on theConstraintConfiguration
, so end users can change the constraint weights dynamically. This constraint may be deactivated if theConstraintWeight
is zero. If there is noConstraintConfiguration
, usereward(Score)
instead.- Returns:
- never null
-
rewardConfigurable
Positively impacts theScore
, adding theConstraintWeight
multiplied by match weight for each match, and returns a builder to apply optional constraint properties.The constraintWeight comes from an
ConstraintWeight
annotated member on theConstraintConfiguration
, so end users can change the constraint weights dynamically. This constraint may be deactivated if theConstraintWeight
is zero. If there is noConstraintConfiguration
, usereward(Score, ToIntTriFunction)
instead.- Parameters:
matchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
rewardConfigurableLong
As defined byrewardConfigurable(ToIntTriFunction)
, with a penalty of type long.If there is no
ConstraintConfiguration
, userewardLong(Score, ToLongTriFunction)
instead. -
rewardConfigurableBigDecimal
TriConstraintBuilder<A,B, rewardConfigurableBigDecimalC, ?> (TriFunction<A, B, C, BigDecimal> matchWeigher) As defined byrewardConfigurable(ToIntTriFunction)
, with a penalty of typeBigDecimal
.If there is no
ConstraintConfiguration
, userewardBigDecimal(Score, TriFunction)
instead. -
impact
default <Score_ extends Score<Score_>> TriConstraintBuilder<A,B, impactC, Score_> (Score_ constraintWeight) Positively or negatively impacts theScore
by the constraintWeight for each match and returns a builder to apply optional constraint properties.Use
penalize(...)
orreward(...)
instead, unless this constraint can both have positive and negative weights.- Parameters:
constraintWeight
- never null- Returns:
- never null
-
impact
<Score_ extends Score<Score_>> TriConstraintBuilder<A,B, impactC, Score_> (Score_ constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Positively or negatively impacts theScore
by constraintWeight multiplied by matchWeight for each match and returns a builder to apply optional constraint properties.Use
penalize(...)
orreward(...)
instead, unless this constraint can both have positive and negative weights.- Parameters:
constraintWeight
- never nullmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
impactLong
<Score_ extends Score<Score_>> TriConstraintBuilder<A,B, impactLongC, Score_> (Score_ constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) As defined byimpact(Score, ToIntTriFunction)
, with an impact of type long. -
impactBigDecimal
<Score_ extends Score<Score_>> TriConstraintBuilder<A,B, impactBigDecimalC, Score_> (Score_ constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) As defined byimpact(Score, ToIntTriFunction)
, with an impact of typeBigDecimal
. -
impactConfigurable
Positively impacts theScore
by theConstraintWeight
for each match, and returns a builder to apply optional constraint properties.The constraintWeight comes from an
ConstraintWeight
annotated member on theConstraintConfiguration
, so end users can change the constraint weights dynamically. This constraint may be deactivated if theConstraintWeight
is zero. If there is noConstraintConfiguration
, useimpact(Score)
instead.- Returns:
- never null
-
impactConfigurable
Positively impacts theScore
by theConstraintWeight
multiplied by match weight for each match, and returns a builder to apply optional constraint properties.The constraintWeight comes from an
ConstraintWeight
annotated member on theConstraintConfiguration
, so end users can change the constraint weights dynamically. This constraint may be deactivated if theConstraintWeight
is zero. If there is noConstraintConfiguration
, useimpact(Score, ToIntTriFunction)
instead.- Returns:
- never null
-
impactConfigurableLong
As defined byimpactConfigurable(ToIntTriFunction)
, with an impact of type long.If there is no
ConstraintConfiguration
, useimpactLong(Score, ToLongTriFunction)
instead. -
impactConfigurableBigDecimal
TriConstraintBuilder<A,B, impactConfigurableBigDecimalC, ?> (TriFunction<A, B, C, BigDecimal> matchWeigher) As defined byimpactConfigurable(ToIntTriFunction)
, with an impact of type BigDecimal.If there is no
ConstraintConfiguration
, useimpactBigDecimal(Score, TriFunction)
instead. -
penalize
@Deprecated(forRemoval=true) default Constraint penalize(String constraintName, Score<?> constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Negatively impact theScore
: subtract the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.penalize(String, Score)
.For non-int
Score
types usepenalizeLong(String, Score, ToLongTriFunction)
orpenalizeBigDecimal(String, Score, TriFunction)
instead.- Parameters:
constraintName
- never null, shows up inConstraintMatchTotal
during score justificationconstraintWeight
- never nullmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalize
@Deprecated(forRemoval=true) default Constraint penalize(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalize(String, Score, ToIntTriFunction)
.- Parameters:
constraintPackage
- never nullconstraintName
- never nullconstraintWeight
- never nullmatchWeigher
- never null- Returns:
- never null
-
penalizeLong
@Deprecated(forRemoval=true) default Constraint penalizeLong(String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Negatively impact theScore
: subtract the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.penalize(String, Score)
.- Parameters:
constraintName
- never null, shows up inConstraintMatchTotal
during score justificationconstraintWeight
- never nullmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalizeLong
@Deprecated(forRemoval=true) default Constraint penalizeLong(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalizeLong(String, Score, ToLongTriFunction)
.- Parameters:
constraintPackage
- never nullconstraintName
- never nullconstraintWeight
- never nullmatchWeigher
- never null- Returns:
- never null
-
penalizeBigDecimal
@Deprecated(forRemoval=true) default Constraint penalizeBigDecimal(String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Negatively impact theScore
: subtract the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.penalize(String, Score)
.- Parameters:
constraintName
- never null, shows up inConstraintMatchTotal
during score justificationconstraintWeight
- never nullmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalizeBigDecimal
@Deprecated(forRemoval=true) default Constraint penalizeBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalizeBigDecimal(String, Score, TriFunction)
.- Parameters:
constraintPackage
- never nullconstraintName
- never nullconstraintWeight
- never nullmatchWeigher
- never null- Returns:
- never null
-
penalizeConfigurable
@Deprecated(forRemoval=true) default Constraint penalizeConfigurable(String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Negatively impact theScore
: subtract theConstraintWeight
multiplied by the match weight. Otherwise as defined byConstraintStream.penalizeConfigurable(String)
.For non-int
Score
types usepenalizeConfigurableLong(String, ToLongTriFunction)
orpenalizeConfigurableBigDecimal(String, TriFunction)
instead.- Parameters:
constraintName
- never null, shows up inConstraintMatchTotal
during score justificationmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalizeConfigurable
@Deprecated(forRemoval=true) default Constraint penalizeConfigurable(String constraintPackage, String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalizeConfigurable(String, ToIntTriFunction)
.- Parameters:
constraintPackage
- never nullconstraintName
- never nullmatchWeigher
- never null- Returns:
- never null
-
penalizeConfigurableLong
@Deprecated(forRemoval=true) default Constraint penalizeConfigurableLong(String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Negatively impact theScore
: subtract theConstraintWeight
multiplied by the match weight. Otherwise as defined byConstraintStream.penalizeConfigurable(String)
.- Parameters:
constraintName
- never null, shows up inConstraintMatchTotal
during score justificationmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalizeConfigurableLong
@Deprecated(forRemoval=true) default Constraint penalizeConfigurableLong(String constraintPackage, String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalizeConfigurableLong(String, ToLongTriFunction)
.- Parameters:
constraintPackage
- never nullconstraintName
- never nullmatchWeigher
- never null- Returns:
- never null
-
penalizeConfigurableBigDecimal
@Deprecated(forRemoval=true) default Constraint penalizeConfigurableBigDecimal(String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Negatively impact theScore
: subtract theConstraintWeight
multiplied by the match weight. Otherwise as defined byConstraintStream.penalizeConfigurable(String)
.- Parameters:
constraintName
- never null, shows up inConstraintMatchTotal
during score justificationmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalizeConfigurableBigDecimal
@Deprecated(forRemoval=true) default Constraint penalizeConfigurableBigDecimal(String constraintPackage, String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalizeConfigurableBigDecimal(String, TriFunction)
.- Parameters:
constraintPackage
- never nullconstraintName
- never nullmatchWeigher
- never null- Returns:
- never null
-
reward
@Deprecated(forRemoval=true) default Constraint reward(String constraintName, Score<?> constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Preferreward(Score, ToIntTriFunction)
.Positively impact theScore
: add the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.reward(String, Score)
.For non-int
Score
types userewardLong(String, Score, ToLongTriFunction)
orrewardBigDecimal(String, Score, TriFunction)
instead.- Parameters:
constraintName
- never null, shows up inConstraintMatchTotal
during score justificationconstraintWeight
- never nullmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
reward
@Deprecated(forRemoval=true) default Constraint reward(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Preferreward(Score, ToIntTriFunction)
.As defined byreward(String, Score, ToIntTriFunction)
.- Parameters:
constraintPackage
- never nullconstraintName
- never nullconstraintWeight
- never nullmatchWeigher
- never null- Returns:
- never null
-
rewardLong
@Deprecated(forRemoval=true) default Constraint rewardLong(String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively impact theScore
: add the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.reward(String, Score)
.- Parameters:
constraintName
- never null, shows up inConstraintMatchTotal
during score justificationconstraintWeight
- never nullmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
rewardLong
@Deprecated(forRemoval=true) default Constraint rewardLong(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byrewardLong(String, Score, ToLongTriFunction)
.- Parameters:
constraintPackage
- never nullconstraintName
- never nullconstraintWeight
- never nullmatchWeigher
- never null- Returns:
- never null
-
rewardBigDecimal
@Deprecated(forRemoval=true) default Constraint rewardBigDecimal(String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively impact theScore
: add the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.reward(String, Score)
.- Parameters:
constraintName
- never null, shows up inConstraintMatchTotal
during score justificationconstraintWeight
- never nullmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
rewardBigDecimal
@Deprecated(forRemoval=true) default Constraint rewardBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byrewardBigDecimal(String, Score, TriFunction)
.- Parameters:
constraintPackage
- never nullconstraintName
- never nullconstraintWeight
- never nullmatchWeigher
- never null- Returns:
- never null
-
rewardConfigurable
@Deprecated(forRemoval=true) default Constraint rewardConfigurable(String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively impact theScore
: add theConstraintWeight
multiplied by the match weight. Otherwise as defined byConstraintStream.rewardConfigurable(String)
.For non-int
Score
types userewardConfigurableLong(String, ToLongTriFunction)
orrewardConfigurableBigDecimal(String, TriFunction)
instead.- Parameters:
constraintName
- never null, shows up inConstraintMatchTotal
during score justificationmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
rewardConfigurable
@Deprecated(forRemoval=true) default Constraint rewardConfigurable(String constraintPackage, String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byrewardConfigurable(String, ToIntTriFunction)
.- Parameters:
constraintPackage
- never nullconstraintName
- never nullmatchWeigher
- never null- Returns:
- never null
-
rewardConfigurableLong
@Deprecated(forRemoval=true) default Constraint rewardConfigurableLong(String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively impact theScore
: add theConstraintWeight
multiplied by the match weight. Otherwise as defined byConstraintStream.rewardConfigurable(String)
.- Parameters:
constraintName
- never null, shows up inConstraintMatchTotal
during score justificationmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
rewardConfigurableLong
@Deprecated(forRemoval=true) default Constraint rewardConfigurableLong(String constraintPackage, String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byrewardConfigurableLong(String, ToLongTriFunction)
.- Parameters:
constraintPackage
- never nullconstraintName
- never nullmatchWeigher
- never null- Returns:
- never null
-
rewardConfigurableBigDecimal
@Deprecated(forRemoval=true) default Constraint rewardConfigurableBigDecimal(String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively impact theScore
: add theConstraintWeight
multiplied by the match weight. Otherwise as defined byConstraintStream.rewardConfigurable(String)
.- Parameters:
constraintName
- never null, shows up inConstraintMatchTotal
during score justificationmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
rewardConfigurableBigDecimal
@Deprecated(forRemoval=true) default Constraint rewardConfigurableBigDecimal(String constraintPackage, String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byrewardConfigurableBigDecimal(String, TriFunction)
.- Parameters:
constraintPackage
- never nullconstraintName
- never nullmatchWeigher
- never null- Returns:
- never null
-
impact
@Deprecated(forRemoval=true) default Constraint impact(String constraintName, Score<?> constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Preferimpact(Score, ToIntTriFunction)
.Positively or negatively impact theScore
by the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.impact(String, Score)
.Use
penalize(...)
orreward(...)
instead, unless this constraint can both have positive and negative weights.For non-int
Score
types useimpactLong(String, Score, ToLongTriFunction)
orimpactBigDecimal(String, Score, TriFunction)
instead.- Parameters:
constraintName
- never null, shows up inConstraintMatchTotal
during score justificationconstraintWeight
- never nullmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
impact
@Deprecated(forRemoval=true) default Constraint impact(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Preferimpact(Score, ToIntTriFunction)
.As defined byimpact(String, Score, ToIntTriFunction)
.- Parameters:
constraintPackage
- never nullconstraintName
- never nullconstraintWeight
- never nullmatchWeigher
- never null- Returns:
- never null
-
impactLong
@Deprecated(forRemoval=true) default Constraint impactLong(String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively or negatively impact theScore
by the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.impact(String, Score)
.Use
penalizeLong(...)
orrewardLong(...)
instead, unless this constraint can both have positive and negative weights.- Parameters:
constraintName
- never null, shows up inConstraintMatchTotal
during score justificationconstraintWeight
- never nullmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
impactLong
@Deprecated(forRemoval=true) default Constraint impactLong(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byimpactLong(String, Score, ToLongTriFunction)
.- Parameters:
constraintPackage
- never nullconstraintName
- never nullconstraintWeight
- never nullmatchWeigher
- never null- Returns:
- never null
-
impactBigDecimal
@Deprecated(forRemoval=true) default Constraint impactBigDecimal(String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively or negatively impact theScore
by the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.impact(String, Score)
.Use
penalizeBigDecimal(...)
orrewardBigDecimal(...)
unless you intend to mix positive and negative weights.- Parameters:
constraintName
- never null, shows up inConstraintMatchTotal
during score justificationconstraintWeight
- never nullmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
impactBigDecimal
@Deprecated(forRemoval=true) default Constraint impactBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byimpactBigDecimal(String, Score, TriFunction)
.- Parameters:
constraintPackage
- never nullconstraintName
- never nullconstraintWeight
- never nullmatchWeigher
- never null- Returns:
- never null
-
impactConfigurable
@Deprecated(forRemoval=true) default Constraint impactConfigurable(String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively or negatively impact theScore
by theConstraintWeight
for each match.Use
penalizeConfigurable(...)
orrewardConfigurable(...)
instead, unless this constraint can both have positive and negative weights.For non-int
Score
types useimpactConfigurableLong(String, ToLongTriFunction)
orimpactConfigurableBigDecimal(String, TriFunction)
instead.The constraintWeight comes from an
ConstraintWeight
annotated member on theConstraintConfiguration
, so end users can change the constraint weights dynamically. This constraint may be deactivated if theConstraintWeight
is zero. If there is noConstraintConfiguration
, useConstraintStream.impact(String, Score)
instead.The
Constraint.getConstraintPackage()
defaults toConstraintConfiguration.constraintPackage()
.- Parameters:
constraintName
- never null, shows up inConstraintMatchTotal
during score justificationmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
impactConfigurable
@Deprecated(forRemoval=true) default Constraint impactConfigurable(String constraintPackage, String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byimpactConfigurable(String, ToIntTriFunction)
.- Parameters:
constraintPackage
- never nullconstraintName
- never nullmatchWeigher
- never null- Returns:
- never null
-
impactConfigurableLong
@Deprecated(forRemoval=true) default Constraint impactConfigurableLong(String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively or negatively impact theScore
by theConstraintWeight
for each match.Use
penalizeConfigurableLong(...)
orrewardConfigurableLong(...)
instead, unless this constraint can both have positive and negative weights.The constraintWeight comes from an
ConstraintWeight
annotated member on theConstraintConfiguration
, so end users can change the constraint weights dynamically. This constraint may be deactivated if theConstraintWeight
is zero. If there is noConstraintConfiguration
, useConstraintStream.impact(String, Score)
instead.The
Constraint.getConstraintPackage()
defaults toConstraintConfiguration.constraintPackage()
.- Parameters:
constraintName
- never null, shows up inConstraintMatchTotal
during score justificationmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
impactConfigurableLong
@Deprecated(forRemoval=true) default Constraint impactConfigurableLong(String constraintPackage, String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byimpactConfigurableLong(String, ToLongTriFunction)
.- Parameters:
constraintPackage
- never nullconstraintName
- never nullmatchWeigher
- never null- Returns:
- never null
-
impactConfigurableBigDecimal
@Deprecated(forRemoval=true) default Constraint impactConfigurableBigDecimal(String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively or negatively impact theScore
by theConstraintWeight
for each match.Use
penalizeConfigurableBigDecimal(...)
orrewardConfigurableLong(...)
instead, unless this constraint can both have positive and negative weights.The constraintWeight comes from an
ConstraintWeight
annotated member on theConstraintConfiguration
, so end users can change the constraint weights dynamically. This constraint may be deactivated if theConstraintWeight
is zero. If there is noConstraintConfiguration
, useConstraintStream.impact(String, Score)
instead.The
Constraint.getConstraintPackage()
defaults toConstraintConfiguration.constraintPackage()
.- Parameters:
constraintName
- never null, shows up inConstraintMatchTotal
during score justificationmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
impactConfigurableBigDecimal
@Deprecated(forRemoval=true) default Constraint impactConfigurableBigDecimal(String constraintPackage, String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byimpactConfigurableBigDecimal(String, TriFunction)
.- Parameters:
constraintPackage
- never nullconstraintName
- never nullmatchWeigher
- never null- Returns:
- never null
-
impact(Score, ToIntTriFunction)
.