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.public interface TriConstraintStream<A,B,C> extends ConstraintStream
ConstraintStream
that matches three facts.ConstraintStream
Modifier and Type | Method and Description |
---|---|
TriConstraintStream<A,B,C> |
filter(TriPredicate<A,B,C> predicate)
Exhaustively test each tuple of facts against the
TriPredicate
and match if TriPredicate.test(Object, Object, Object) returns true. |
<ResultContainer_,Result_> |
groupBy(TriConstraintCollector<A,B,C,ResultContainer_,Result_> collector)
Convert the
TriConstraintStream to a UniConstraintStream , containing only a single tuple, the
result of applying TriConstraintCollector . |
<GroupKey_> |
groupBy(TriFunction<A,B,C,GroupKey_> groupKeyMapping)
Convert the
TriConstraintStream to a UniConstraintStream , containing the set of tuples resulting
from applying the group key mapping function on all tuples of the original stream. |
<GroupKey_,ResultContainer_,Result_> |
groupBy(TriFunction<A,B,C,GroupKey_> groupKeyMapping,
TriConstraintCollector<A,B,C,ResultContainer_,Result_> collector)
Convert the
TriConstraintStream to a BiConstraintStream , consisting of unique tuples. |
<GroupKeyA_,GroupKeyB_> |
groupBy(TriFunction<A,B,C,GroupKeyA_> groupKeyAMapping,
TriFunction<A,B,C,GroupKeyB_> groupKeyBMapping)
Convert the
TriConstraintStream to a BiConstraintStream , consisting of unique tuples. |
<GroupKeyA_,GroupKeyB_,ResultContainer_,Result_> |
groupBy(TriFunction<A,B,C,GroupKeyA_> groupKeyAMapping,
TriFunction<A,B,C,GroupKeyB_> groupKeyBMapping,
TriConstraintCollector<A,B,C,ResultContainer_,Result_> collector)
Combines the semantics of
groupBy(TriFunction, TriFunction) and groupBy(TriConstraintCollector) . |
<GroupKeyA_,GroupKeyB_,ResultContainerC_,ResultC_,ResultContainerD_,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 of
groupBy(TriFunction, TriFunction) and groupBy(TriConstraintCollector) . |
default <D> QuadConstraintStream<A,B,C,D> |
join(Class<D> otherClass)
Create a new
QuadConstraintStream for every combination of [A, B, C] and D. |
default <D> QuadConstraintStream<A,B,C,D> |
join(Class<D> otherClass,
QuadJoiner<A,B,C,D>... joiners)
As defined by
join(Class, QuadJoiner) . |
default <D> QuadConstraintStream<A,B,C,D> |
join(Class<D> otherClass,
QuadJoiner<A,B,C,D> joiner)
Create a new
QuadConstraintStream for every combination of [A, B, C] and D for which the
QuadJoiner is true (for the properties it extracts from all facts). |
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 by
join(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 by
join(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 by
join(Class, QuadJoiner) . |
default <D> QuadConstraintStream<A,B,C,D> |
join(UniConstraintStream<D> otherStream)
Create a new
QuadConstraintStream for every combination of [A, B, C] and D. |
<D> QuadConstraintStream<A,B,C,D> |
join(UniConstraintStream<D> otherStream,
QuadJoiner<A,B,C,D> joiner)
Create a new
QuadConstraintStream for every combination of [A, B] and C for which the QuadJoiner
is true (for the properties it extracts from all facts). |
default Constraint |
penalize(String constraintName,
Score<?> constraintWeight,
ToIntTriFunction<A,B,C> matchWeigher)
Negatively impact the
Score : subtract the constraintWeight multiplied by the match weight. |
Constraint |
penalize(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
ToIntTriFunction<A,B,C> matchWeigher)
As defined by
penalize(String, Score, ToIntTriFunction) . |
default Constraint |
penalizeBigDecimal(String constraintName,
Score<?> constraintWeight,
TriFunction<A,B,C,BigDecimal> matchWeigher)
Negatively impact the
Score : subtract the constraintWeight multiplied by the match weight. |
Constraint |
penalizeBigDecimal(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
TriFunction<A,B,C,BigDecimal> matchWeigher)
As defined by
penalizeBigDecimal(String, Score, TriFunction) . |
Constraint |
penalizeConfigurable(String constraintPackage,
String constraintName,
ToIntTriFunction<A,B,C> matchWeigher)
As defined by
penalizeConfigurable(String, ToIntTriFunction) . |
default Constraint |
penalizeConfigurable(String constraintName,
ToIntTriFunction<A,B,C> matchWeigher)
Negatively impact the
Score : subtract the ConstraintWeight multiplied by the match weight. |
Constraint |
penalizeConfigurableBigDecimal(String constraintPackage,
String constraintName,
TriFunction<A,B,C,BigDecimal> matchWeigher)
As defined by
penalizeConfigurableBigDecimal(String, TriFunction) . |
default Constraint |
penalizeConfigurableBigDecimal(String constraintName,
TriFunction<A,B,C,BigDecimal> matchWeigher)
Negatively impact the
Score : subtract the ConstraintWeight multiplied by the match weight. |
Constraint |
penalizeConfigurableLong(String constraintPackage,
String constraintName,
ToLongTriFunction<A,B,C> matchWeigher)
As defined by
penalizeConfigurableLong(String, ToLongTriFunction) . |
default Constraint |
penalizeConfigurableLong(String constraintName,
ToLongTriFunction<A,B,C> matchWeigher)
Negatively impact the
Score : subtract the ConstraintWeight multiplied by the match weight. |
default Constraint |
penalizeLong(String constraintName,
Score<?> constraintWeight,
ToLongTriFunction<A,B,C> matchWeigher)
Negatively impact the
Score : subtract the constraintWeight multiplied by the match weight. |
Constraint |
penalizeLong(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
ToLongTriFunction<A,B,C> matchWeigher)
As defined by
penalizeLong(String, Score, ToLongTriFunction) . |
default Constraint |
reward(String constraintName,
Score<?> constraintWeight,
ToIntTriFunction<A,B,C> matchWeigher)
Positively impact the
Score : add the constraintWeight multiplied by the match weight. |
Constraint |
reward(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
ToIntTriFunction<A,B,C> matchWeigher)
As defined by
reward(String, Score, ToIntTriFunction) . |
default Constraint |
rewardBigDecimal(String constraintName,
Score<?> constraintWeight,
TriFunction<A,B,C,BigDecimal> matchWeigher)
Positively impact the
Score : add the constraintWeight multiplied by the match weight. |
Constraint |
rewardBigDecimal(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
TriFunction<A,B,C,BigDecimal> matchWeigher)
As defined by
rewardBigDecimal(String, Score, TriFunction) . |
Constraint |
rewardConfigurable(String constraintPackage,
String constraintName,
ToIntTriFunction<A,B,C> matchWeigher)
As defined by
rewardConfigurable(String, ToIntTriFunction) . |
default Constraint |
rewardConfigurable(String constraintName,
ToIntTriFunction<A,B,C> matchWeigher)
Positively impact the
Score : add the ConstraintWeight multiplied by the match weight. |
Constraint |
rewardConfigurableBigDecimal(String constraintPackage,
String constraintName,
TriFunction<A,B,C,BigDecimal> matchWeigher)
As defined by
rewardConfigurableBigDecimal(String, TriFunction) . |
default Constraint |
rewardConfigurableBigDecimal(String constraintName,
TriFunction<A,B,C,BigDecimal> matchWeigher)
Positively impact the
Score : add the ConstraintWeight multiplied by the match weight. |
Constraint |
rewardConfigurableLong(String constraintPackage,
String constraintName,
ToLongTriFunction<A,B,C> matchWeigher)
As defined by
rewardConfigurableLong(String, ToLongTriFunction) . |
default Constraint |
rewardConfigurableLong(String constraintName,
ToLongTriFunction<A,B,C> matchWeigher)
Positively impact the
Score : add the ConstraintWeight multiplied by the match weight. |
default Constraint |
rewardLong(String constraintName,
Score<?> constraintWeight,
ToLongTriFunction<A,B,C> matchWeigher)
Positively impact the
Score : add the constraintWeight multiplied by the match weight. |
Constraint |
rewardLong(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
ToLongTriFunction<A,B,C> matchWeigher)
As defined by
rewardLong(String, Score, ToLongTriFunction) . |
getConstraintFactory, penalize, penalize, penalizeConfigurable, penalizeConfigurable, reward, reward, rewardConfigurable, rewardConfigurable
TriConstraintStream<A,B,C> filter(TriPredicate<A,B,C> predicate)
TriPredicate
and match if TriPredicate.test(Object, Object, Object)
returns true.
Important: This is slower and less scalable than BiConstraintStream.join(UniConstraintStream, TriJoiner)
with a proper TriJoiner
predicate (such as Joiners.equal(BiFunction, Function)
,
because the latter applies hashing and/or indexing, so it doesn't create every combination just to filter it out.
predicate
- never nulldefault <D> QuadConstraintStream<A,B,C,D> join(UniConstraintStream<D> otherStream)
QuadConstraintStream
for every combination of [A, B, C] and D.
Important: Filtering
this is slower and less scalable
than a join(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.
D
- the type of the fourth matched factotherStream
- never null<D> QuadConstraintStream<A,B,C,D> join(UniConstraintStream<D> otherStream, QuadJoiner<A,B,C,D> joiner)
QuadConstraintStream
for every combination of [A, B] and C for which the QuadJoiner
is true (for the properties it extracts from all facts).
Important: This is faster and more scalable than a join
followed by a filter
,
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.
D
- the type of the fourth matched factotherStream
- never nulljoiner
- never nullQuadJoiner
is truedefault <D> QuadConstraintStream<A,B,C,D> join(Class<D> otherClass)
QuadConstraintStream
for every combination of [A, B, C] and D.
Important: QuadConstraintStream.filter(QuadPredicate)
Filtering} this is slower and less scalable
than a join(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.
This method is syntactic sugar for join(UniConstraintStream)
.
D
- the type of the fourth matched factotherClass
- never nulldefault <D> QuadConstraintStream<A,B,C,D> join(Class<D> otherClass, QuadJoiner<A,B,C,D> joiner)
QuadConstraintStream
for every combination of [A, B, C] and D for which the
QuadJoiner
is true (for the properties it extracts from all facts).
Important: This is faster and more scalable than a join
followed by a filter
,
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.
This method is syntactic sugar for join(UniConstraintStream, QuadJoiner)
.
This method has overloaded methods with multiple QuadJoiner
parameters.
D
- the type of the fourth matched factotherClass
- never nulljoiner
- never nullQuadJoiner
is truedefault <D> QuadConstraintStream<A,B,C,D> join(Class<D> otherClass, QuadJoiner<A,B,C,D> joiner1, QuadJoiner<A,B,C,D> joiner2)
join(Class, QuadJoiner)
.D
- the type of the fourth matched factotherClass
- never nulljoiner1
- never nulljoiner2
- never nulljoiners
are truedefault <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)
join(Class, QuadJoiner)
.D
- the type of the fourth matched factotherClass
- never nulljoiner1
- never nulljoiner2
- never nulljoiner3
- never nulljoiners
are truedefault <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)
join(Class, QuadJoiner)
.D
- the type of the fourth matched factotherClass
- never nulljoiner1
- never nulljoiner2
- never nulljoiner3
- never nulljoiner4
- never nulljoiners
are truedefault <D> QuadConstraintStream<A,B,C,D> join(Class<D> otherClass, QuadJoiner<A,B,C,D>... joiners)
join(Class, QuadJoiner)
.
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 4 QuadJoiner
parameters.
D
- the type of the fourth matched factotherClass
- never nulljoiners
- never nulljoiners
are true<ResultContainer_,Result_> UniConstraintStream<Result_> groupBy(TriConstraintCollector<A,B,C,ResultContainer_,Result_> collector)
TriConstraintStream
to a UniConstraintStream
, containing only a single tuple, the
result of applying TriConstraintCollector
.ResultContainer_
- the mutable accumulation type (often hidden as an implementation detail)Result_
- the type of a fact in the destination UniConstraintStream
's tuplecollector
- never null, the collector to perform the grouping operation with<GroupKey_> UniConstraintStream<GroupKey_> groupBy(TriFunction<A,B,C,GroupKey_> groupKeyMapping)
TriConstraintStream
to a UniConstraintStream
, 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 stream Objects.equals(Object, Object)
any other.GroupKey_
- the type of a fact in the destination UniConstraintStream
's tuplegroupKeyMapping
- never null, mapping function to convert each element in the stream to a different element<GroupKey_,ResultContainer_,Result_> BiConstraintStream<GroupKey_,Result_> groupBy(TriFunction<A,B,C,GroupKey_> groupKeyMapping, TriConstraintCollector<A,B,C,ResultContainer_,Result_> collector)
TriConstraintStream
to a BiConstraintStream
, 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 a given TriConstraintCollector
applied on all incoming tuples with
the same first fact.
GroupKey_
- the type of the first fact in the destination BiConstraintStream
's tupleResultContainer_
- the mutable accumulation type (often hidden as an implementation detail)Result_
- the type of the second fact in the destination BiConstraintStream
's tuplegroupKeyMapping
- never null, function to convert the fact in the original tuple to a different fact<GroupKeyA_,GroupKeyB_> BiConstraintStream<GroupKeyA_,GroupKeyB_> groupBy(TriFunction<A,B,C,GroupKeyA_> groupKeyAMapping, TriFunction<A,B,C,GroupKeyB_> groupKeyBMapping)
TriConstraintStream
to a BiConstraintStream
, 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.
GroupKeyA_
- the type of the first fact in the destination BiConstraintStream
's tupleGroupKeyB_
- the type of the second fact in the destination BiConstraintStream
's tuplegroupKeyAMapping
- 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<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)
groupBy(TriFunction, TriFunction)
and groupBy(TriConstraintCollector)
.
That is, the first and second facts in the tuple follow the groupBy(TriFunction, TriFunction)
semantics,
and the third fact is the result of applying TriConstraintCollector.finisher()
on all the tuples of the
original UniConstraintStream
that belong to the group.GroupKeyA_
- the type of the first fact in the destination TriConstraintStream
's tupleGroupKeyB_
- the type of the second fact in the destination TriConstraintStream
's tupleResultContainer_
- the mutable accumulation type (often hidden as an implementation detail)Result_
- the type of the third fact in the destination TriConstraintStream
's tuplegroupKeyAMapping
- 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<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)
groupBy(TriFunction, TriFunction)
and groupBy(TriConstraintCollector)
.
That is, the first and second facts in the tuple follow the groupBy(TriFunction, TriFunction)
semantics.
The third fact is the result of applying the first TriConstraintCollector.finisher()
on all the tuples
of the original TriConstraintStream
that belong to the group.
The fourth fact is the result of applying the second TriConstraintCollector.finisher()
on all the tuples
of the original TriConstraintStream
that belong to the groupGroupKeyA_
- the type of the first fact in the destination QuadConstraintStream
's tupleGroupKeyB_
- the type of the second fact in the destination QuadConstraintStream
's tupleResultContainerC_
- the mutable accumulation type (often hidden as an implementation detail)ResultC_
- the type of the third fact in the destination QuadConstraintStream
's tupleResultContainerD_
- the mutable accumulation type (often hidden as an implementation detail)ResultD_
- the type of the fourth fact in the destination QuadConstraintStream
's tuplegroupKeyAMapping
- 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 withcollectorD
- never null, the collector to perform the first grouping operation withdefault Constraint penalize(String constraintName, Score<?> constraintWeight, ToIntTriFunction<A,B,C> matchWeigher)
Score
: subtract the constraintWeight multiplied by the match weight.
Otherwise as defined by ConstraintStream.penalize(String, Score)
.
For non-int Score
types use penalizeLong(String, Score, ToLongTriFunction)
or
penalizeBigDecimal(String, Score, TriFunction)
instead.
constraintName
- never null, shows up in ConstraintMatchTotal
during score justificationconstraintWeight
- never nullmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeightConstraint penalize(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntTriFunction<A,B,C> matchWeigher)
penalize(String, Score, ToIntTriFunction)
.constraintPackage
- never nullconstraintName
- never nullconstraintWeight
- never nullmatchWeigher
- never nulldefault Constraint penalizeLong(String constraintName, Score<?> constraintWeight, ToLongTriFunction<A,B,C> matchWeigher)
Score
: subtract the constraintWeight multiplied by the match weight.
Otherwise as defined by ConstraintStream.penalize(String, Score)
.constraintName
- never null, shows up in ConstraintMatchTotal
during score justificationconstraintWeight
- never nullmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeightConstraint penalizeLong(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongTriFunction<A,B,C> matchWeigher)
penalizeLong(String, Score, ToLongTriFunction)
.constraintPackage
- never nullconstraintName
- never nullconstraintWeight
- never nullmatchWeigher
- never nulldefault Constraint penalizeBigDecimal(String constraintName, Score<?> constraintWeight, TriFunction<A,B,C,BigDecimal> matchWeigher)
Score
: subtract the constraintWeight multiplied by the match weight.
Otherwise as defined by ConstraintStream.penalize(String, Score)
.constraintName
- never null, shows up in ConstraintMatchTotal
during score justificationconstraintWeight
- never nullmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeightConstraint penalizeBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, TriFunction<A,B,C,BigDecimal> matchWeigher)
penalizeBigDecimal(String, Score, TriFunction)
.constraintPackage
- never nullconstraintName
- never nullconstraintWeight
- never nullmatchWeigher
- never nulldefault Constraint penalizeConfigurable(String constraintName, ToIntTriFunction<A,B,C> matchWeigher)
Score
: subtract the ConstraintWeight
multiplied by the match weight.
Otherwise as defined by ConstraintStream.penalizeConfigurable(String)
.
For non-int Score
types use penalizeConfigurableLong(String, ToLongTriFunction)
or
penalizeConfigurableBigDecimal(String, TriFunction)
instead.
constraintName
- never null, shows up in ConstraintMatchTotal
during score justificationmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeightConstraint penalizeConfigurable(String constraintPackage, String constraintName, ToIntTriFunction<A,B,C> matchWeigher)
penalizeConfigurable(String, ToIntTriFunction)
.constraintPackage
- never nullconstraintName
- never nullmatchWeigher
- never nulldefault Constraint penalizeConfigurableLong(String constraintName, ToLongTriFunction<A,B,C> matchWeigher)
Score
: subtract the ConstraintWeight
multiplied by the match weight.
Otherwise as defined by ConstraintStream.penalizeConfigurable(String)
.constraintName
- never null, shows up in ConstraintMatchTotal
during score justificationmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeightConstraint penalizeConfigurableLong(String constraintPackage, String constraintName, ToLongTriFunction<A,B,C> matchWeigher)
penalizeConfigurableLong(String, ToLongTriFunction)
.constraintPackage
- never nullconstraintName
- never nullmatchWeigher
- never nulldefault Constraint penalizeConfigurableBigDecimal(String constraintName, TriFunction<A,B,C,BigDecimal> matchWeigher)
Score
: subtract the ConstraintWeight
multiplied by the match weight.
Otherwise as defined by ConstraintStream.penalizeConfigurable(String)
.constraintName
- never null, shows up in ConstraintMatchTotal
during score justificationmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeightConstraint penalizeConfigurableBigDecimal(String constraintPackage, String constraintName, TriFunction<A,B,C,BigDecimal> matchWeigher)
penalizeConfigurableBigDecimal(String, TriFunction)
.constraintPackage
- never nullconstraintName
- never nullmatchWeigher
- never nulldefault Constraint reward(String constraintName, Score<?> constraintWeight, ToIntTriFunction<A,B,C> matchWeigher)
Score
: add the constraintWeight multiplied by the match weight.
Otherwise as defined by ConstraintStream.reward(String, Score)
.
For non-int Score
types use rewardLong(String, Score, ToLongTriFunction)
or
rewardBigDecimal(String, Score, TriFunction)
instead.
constraintName
- never null, shows up in ConstraintMatchTotal
during score justificationconstraintWeight
- never nullmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeightConstraint reward(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntTriFunction<A,B,C> matchWeigher)
reward(String, Score, ToIntTriFunction)
.constraintPackage
- never nullconstraintName
- never nullmatchWeigher
- never nulldefault Constraint rewardLong(String constraintName, Score<?> constraintWeight, ToLongTriFunction<A,B,C> matchWeigher)
Score
: add the constraintWeight multiplied by the match weight.
Otherwise as defined by ConstraintStream.reward(String, Score)
.constraintName
- never null, shows up in ConstraintMatchTotal
during score justificationconstraintWeight
- never nullmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeightConstraint rewardLong(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongTriFunction<A,B,C> matchWeigher)
rewardLong(String, Score, ToLongTriFunction)
.constraintPackage
- never nullconstraintName
- never nullmatchWeigher
- never nulldefault Constraint rewardBigDecimal(String constraintName, Score<?> constraintWeight, TriFunction<A,B,C,BigDecimal> matchWeigher)
Score
: add the constraintWeight multiplied by the match weight.
Otherwise as defined by ConstraintStream.reward(String, Score)
.constraintName
- never null, shows up in ConstraintMatchTotal
during score justificationconstraintWeight
- never nullmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeightConstraint rewardBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, TriFunction<A,B,C,BigDecimal> matchWeigher)
rewardBigDecimal(String, Score, TriFunction)
.constraintPackage
- never nullconstraintName
- never nullmatchWeigher
- never nulldefault Constraint rewardConfigurable(String constraintName, ToIntTriFunction<A,B,C> matchWeigher)
Score
: add the ConstraintWeight
multiplied by the match weight.
Otherwise as defined by ConstraintStream.rewardConfigurable(String)
.
For non-int Score
types use rewardConfigurableLong(String, ToLongTriFunction)
or
rewardConfigurableBigDecimal(String, TriFunction)
instead.
constraintName
- never null, shows up in ConstraintMatchTotal
during score justificationmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeightConstraint rewardConfigurable(String constraintPackage, String constraintName, ToIntTriFunction<A,B,C> matchWeigher)
rewardConfigurable(String, ToIntTriFunction)
.constraintPackage
- never nullconstraintName
- never nullmatchWeigher
- never nulldefault Constraint rewardConfigurableLong(String constraintName, ToLongTriFunction<A,B,C> matchWeigher)
Score
: add the ConstraintWeight
multiplied by the match weight.
Otherwise as defined by ConstraintStream.rewardConfigurable(String)
.constraintName
- never null, shows up in ConstraintMatchTotal
during score justificationmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeightConstraint rewardConfigurableLong(String constraintPackage, String constraintName, ToLongTriFunction<A,B,C> matchWeigher)
rewardConfigurableLong(String, ToLongTriFunction)
.constraintPackage
- never nullconstraintName
- never nullmatchWeigher
- never nulldefault Constraint rewardConfigurableBigDecimal(String constraintName, TriFunction<A,B,C,BigDecimal> matchWeigher)
Score
: add the ConstraintWeight
multiplied by the match weight.
Otherwise as defined by ConstraintStream.rewardConfigurable(String)
.constraintName
- never null, shows up in ConstraintMatchTotal
during score justificationmatchWeigher
- never null, the result of this function (matchWeight) is multiplied by the constraintWeightConstraint rewardConfigurableBigDecimal(String constraintPackage, String constraintName, TriFunction<A,B,C,BigDecimal> matchWeigher)
rewardConfigurableBigDecimal(String, TriFunction)
.constraintPackage
- never nullconstraintName
- never nullmatchWeigher
- never nullCopyright © 2006–2020 JBoss by Red Hat. All rights reserved.