Interface BiConstraintStream<A,B>
-
- Type Parameters:
A- the type of the first fact in the tuple.B- the type of the second fact in the tuple.
- All Superinterfaces:
ConstraintStream
- All Known Subinterfaces:
InnerBiConstraintStream<A,B>
- All Known Implementing Classes:
BavetAbstractBiConstraintStream,BavetFilterBiConstraintStream,BavetGroupBiConstraintStream,BavetGroupBridgeBiConstraintStream,BavetJoinBiConstraintStream,BavetJoinBridgeBiConstraintStream,BavetScoringBiConstraintStream,DroolsAbstractBiConstraintStream,DroolsExistsBiConstraintStream,DroolsFilterBiConstraintStream,DroolsGroupingBiConstraintStream,DroolsJoinBiConstraintStream
public interface BiConstraintStream<A,B> extends ConstraintStream
AConstraintStreamthat matches two facts.- See Also:
ConstraintStream
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BiConstraintStream<A,B>filter(BiPredicate<A,B> predicate)Exhaustively test each tuple of facts against theBiPredicateand match ifBiPredicate.test(Object, Object)returns true.<GroupKey_>
UniConstraintStream<GroupKey_>groupBy(BiFunction<A,B,GroupKey_> groupKeyMapping)Convert theBiConstraintStreamto 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(BiFunction<A,B,GroupKey_> groupKeyMapping, BiConstraintCollector<A,B,ResultContainer_,Result_> collector)Convert theBiConstraintStreamto a differentBiConstraintStream, consisting of unique tuples.<GroupKeyA_,GroupKeyB_>
BiConstraintStream<GroupKeyA_,GroupKeyB_>groupBy(BiFunction<A,B,GroupKeyA_> groupKeyAMapping, BiFunction<A,B,GroupKeyB_> groupKeyBMapping)Convert theBiConstraintStreamto a differentBiConstraintStream, consisting of unique tuples.<GroupKeyA_,GroupKeyB_,ResultContainer_,Result_>
TriConstraintStream<GroupKeyA_,GroupKeyB_,Result_>groupBy(BiFunction<A,B,GroupKeyA_> groupKeyAMapping, BiFunction<A,B,GroupKeyB_> groupKeyBMapping, BiConstraintCollector<A,B,ResultContainer_,Result_> collector)Combines the semantics ofgroupBy(BiFunction, BiFunction)andgroupBy(BiConstraintCollector).<GroupKeyA_,GroupKeyB_,ResultContainerC_,ResultC_,ResultContainerD_,ResultD_>
QuadConstraintStream<GroupKeyA_,GroupKeyB_,ResultC_,ResultD_>groupBy(BiFunction<A,B,GroupKeyA_> groupKeyAMapping, BiFunction<A,B,GroupKeyB_> groupKeyBMapping, BiConstraintCollector<A,B,ResultContainerC_,ResultC_> collectorC, BiConstraintCollector<A,B,ResultContainerD_,ResultD_> collectorD)Combines the semantics ofgroupBy(BiFunction, BiFunction)andgroupBy(BiConstraintCollector).<ResultContainer_,Result_>
UniConstraintStream<Result_>groupBy(BiConstraintCollector<A,B,ResultContainer_,Result_> collector)Runs all tuples of the stream through a given @BiConstraintCollectorand converts them into a newUniConstraintStreamwhich only has a single tuple, the result of applyingBiConstraintCollector.default <C> BiConstraintStream<A,B>ifExists(Class<C> otherClass, TriJoiner<A,B,C> joiner)Create a newBiConstraintStreamfor every pair of A and B where C exists for which theTriJoineris true (for the properties it extracts from the facts).<C> BiConstraintStream<A,B>ifExists(Class<C> otherClass, TriJoiner<A,B,C>... joiners)As defined byifExists(Class, TriJoiner).default <C> BiConstraintStream<A,B>ifExists(Class<C> otherClass, TriJoiner<A,B,C> joiner1, TriJoiner<A,B,C> joiner2)As defined byifExists(Class, TriJoiner).default <C> BiConstraintStream<A,B>ifExists(Class<C> otherClass, TriJoiner<A,B,C> joiner1, TriJoiner<A,B,C> joiner2, TriJoiner<A,B,C> joiner3)As defined byifExists(Class, TriJoiner).default <C> BiConstraintStream<A,B>ifExists(Class<C> otherClass, TriJoiner<A,B,C> joiner1, TriJoiner<A,B,C> joiner2, TriJoiner<A,B,C> joiner3, TriJoiner<A,B,C> joiner4)As defined byifExists(Class, TriJoiner).default <C> BiConstraintStream<A,B>ifNotExists(Class<C> otherClass, TriJoiner<A,B,C> joiner)Create a newBiConstraintStreamfor every pair of A and B where C does not exist for which theTriJoineris true (for the properties it extracts from the facts).<C> BiConstraintStream<A,B>ifNotExists(Class<C> otherClass, TriJoiner<A,B,C>... joiners)As defined byifNotExists(Class, TriJoiner).default <C> BiConstraintStream<A,B>ifNotExists(Class<C> otherClass, TriJoiner<A,B,C> joiner1, TriJoiner<A,B,C> joiner2)As defined byifNotExists(Class, TriJoiner).default <C> BiConstraintStream<A,B>ifNotExists(Class<C> otherClass, TriJoiner<A,B,C> joiner1, TriJoiner<A,B,C> joiner2, TriJoiner<A,B,C> joiner3)As defined byifNotExists(Class, TriJoiner).default <C> BiConstraintStream<A,B>ifNotExists(Class<C> otherClass, TriJoiner<A,B,C> joiner1, TriJoiner<A,B,C> joiner2, TriJoiner<A,B,C> joiner3, TriJoiner<A,B,C> joiner4)As defined byifNotExists(Class, TriJoiner).Constraintimpact(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntBiFunction<A,B> matchWeigher)As defined byimpact(String, Score, ToIntBiFunction).default Constraintimpact(String constraintName, Score<?> constraintWeight, ToIntBiFunction<A,B> matchWeigher)Positively or negatively impact theScoreby the constraintWeight multiplied by the match weight.ConstraintimpactBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, BiFunction<A,B,BigDecimal> matchWeigher)As defined byimpactBigDecimal(String, Score, BiFunction).default ConstraintimpactBigDecimal(String constraintName, Score<?> constraintWeight, BiFunction<A,B,BigDecimal> matchWeigher)Positively or negatively impact theScoreby the constraintWeight multiplied by the match weight.ConstraintimpactConfigurable(String constraintPackage, String constraintName, ToIntBiFunction<A,B> matchWeigher)As defined byimpactConfigurable(String, ToIntBiFunction).default ConstraintimpactConfigurable(String constraintName, ToIntBiFunction<A,B> matchWeigher)Positively or negatively impact theScoreby theConstraintWeightmultiplied by the match weight.ConstraintimpactConfigurableBigDecimal(String constraintPackage, String constraintName, BiFunction<A,B,BigDecimal> matchWeigher)As defined byimpactConfigurableBigDecimal(String, BiFunction).default ConstraintimpactConfigurableBigDecimal(String constraintName, BiFunction<A,B,BigDecimal> matchWeigher)Positively or negatively impact theScoreby theConstraintWeightmultiplied by the match weight.ConstraintimpactConfigurableLong(String constraintPackage, String constraintName, ToLongBiFunction<A,B> matchWeigher)As defined byimpactConfigurableLong(String, ToLongBiFunction).default ConstraintimpactConfigurableLong(String constraintName, ToLongBiFunction<A,B> matchWeigher)Positively or negatively impact theScoreby theConstraintWeightmultiplied by the match weight.ConstraintimpactLong(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongBiFunction<A,B> matchWeigher)As defined byimpactLong(String, Score, ToLongBiFunction).default ConstraintimpactLong(String constraintName, Score<?> constraintWeight, ToLongBiFunction<A,B> matchWeigher)Positively or negatively impact theScoreby the constraintWeight multiplied by the match weight.default <C> TriConstraintStream<A,B,C>join(Class<C> otherClass)Create a newTriConstraintStreamfor every combination of [A, B] and C.default <C> TriConstraintStream<A,B,C>join(Class<C> otherClass, TriJoiner<A,B,C> joiner)Create a newTriConstraintStreamfor every combination of [A, B] and C for which theTriJoineris true (for the properties it extracts from both facts).default <C> TriConstraintStream<A,B,C>join(Class<C> otherClass, TriJoiner<A,B,C>... joiners)As defined byjoin(Class, TriJoiner).default <C> TriConstraintStream<A,B,C>join(Class<C> otherClass, TriJoiner<A,B,C> joiner1, TriJoiner<A,B,C> joiner2)As defined byjoin(Class, TriJoiner).default <C> TriConstraintStream<A,B,C>join(Class<C> otherClass, TriJoiner<A,B,C> joiner1, TriJoiner<A,B,C> joiner2, TriJoiner<A,B,C> joiner3)As defined byjoin(Class, TriJoiner).default <C> TriConstraintStream<A,B,C>join(Class<C> otherClass, TriJoiner<A,B,C> joiner1, TriJoiner<A,B,C> joiner2, TriJoiner<A,B,C> joiner3, TriJoiner<A,B,C> joiner4)As defined byjoin(Class, TriJoiner).default <C> TriConstraintStream<A,B,C>join(UniConstraintStream<C> otherStream)Create a newTriConstraintStreamfor every combination of [A, B] and C.<C> TriConstraintStream<A,B,C>join(UniConstraintStream<C> otherStream, TriJoiner<A,B,C> joiner)Create a newTriConstraintStreamfor every combination of [A, B] and C for which theTriJoineris true (for the properties it extracts from both facts).Constraintpenalize(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntBiFunction<A,B> matchWeigher)As defined bypenalize(String, Score, ToIntBiFunction).default Constraintpenalize(String constraintName, Score<?> constraintWeight, ToIntBiFunction<A,B> matchWeigher)Negatively impact theScore: subtract the constraintWeight multiplied by the match weight.ConstraintpenalizeBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, BiFunction<A,B,BigDecimal> matchWeigher)As defined bypenalizeBigDecimal(String, Score, BiFunction).default ConstraintpenalizeBigDecimal(String constraintName, Score<?> constraintWeight, BiFunction<A,B,BigDecimal> matchWeigher)Negatively impact theScore: subtract the constraintWeight multiplied by the match weight.ConstraintpenalizeConfigurable(String constraintPackage, String constraintName, ToIntBiFunction<A,B> matchWeigher)As defined bypenalizeConfigurable(String, ToIntBiFunction).default ConstraintpenalizeConfigurable(String constraintName, ToIntBiFunction<A,B> matchWeigher)Negatively impact theScore: subtract theConstraintWeightmultiplied by the match weight.ConstraintpenalizeConfigurableBigDecimal(String constraintPackage, String constraintName, BiFunction<A,B,BigDecimal> matchWeigher)As defined bypenalizeConfigurableBigDecimal(String, BiFunction).default ConstraintpenalizeConfigurableBigDecimal(String constraintName, BiFunction<A,B,BigDecimal> matchWeigher)Negatively impact theScore: subtract theConstraintWeightmultiplied by the match weight.ConstraintpenalizeConfigurableLong(String constraintPackage, String constraintName, ToLongBiFunction<A,B> matchWeigher)As defined bypenalizeConfigurableLong(String, ToLongBiFunction).default ConstraintpenalizeConfigurableLong(String constraintName, ToLongBiFunction<A,B> matchWeigher)Negatively impact theScore: subtract theConstraintWeightmultiplied by the match weight.ConstraintpenalizeLong(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongBiFunction<A,B> matchWeigher)As defined bypenalizeLong(String, Score, ToLongBiFunction).default ConstraintpenalizeLong(String constraintName, Score<?> constraintWeight, ToLongBiFunction<A,B> matchWeigher)Negatively impact theScore: subtract the constraintWeight multiplied by the match weight.Constraintreward(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntBiFunction<A,B> matchWeigher)As defined byreward(String, Score, ToIntBiFunction).default Constraintreward(String constraintName, Score<?> constraintWeight, ToIntBiFunction<A,B> matchWeigher)Positively impact theScore: add the constraintWeight multiplied by the match weight.ConstraintrewardBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, BiFunction<A,B,BigDecimal> matchWeigher)As defined byrewardBigDecimal(String, Score, BiFunction).default ConstraintrewardBigDecimal(String constraintName, Score<?> constraintWeight, BiFunction<A,B,BigDecimal> matchWeigher)Positively impact theScore: add the constraintWeight multiplied by the match weight.ConstraintrewardConfigurable(String constraintPackage, String constraintName, ToIntBiFunction<A,B> matchWeigher)As defined byrewardConfigurable(String, ToIntBiFunction).default ConstraintrewardConfigurable(String constraintName, ToIntBiFunction<A,B> matchWeigher)Positively impact theScore: add theConstraintWeightmultiplied by the match weight.ConstraintrewardConfigurableBigDecimal(String constraintPackage, String constraintName, BiFunction<A,B,BigDecimal> matchWeigher)As defined byrewardConfigurableBigDecimal(String, BiFunction).default ConstraintrewardConfigurableBigDecimal(String constraintName, BiFunction<A,B,BigDecimal> matchWeigher)Positively impact theScore: add theConstraintWeightmultiplied by the match weight.ConstraintrewardConfigurableLong(String constraintPackage, String constraintName, ToLongBiFunction<A,B> matchWeigher)As defined byrewardConfigurableLong(String, ToLongBiFunction).default ConstraintrewardConfigurableLong(String constraintName, ToLongBiFunction<A,B> matchWeigher)Positively impact theScore: add theConstraintWeightmultiplied by the match weight.ConstraintrewardLong(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongBiFunction<A,B> matchWeigher)As defined byrewardLong(String, Score, ToLongBiFunction).default ConstraintrewardLong(String constraintName, Score<?> constraintWeight, ToLongBiFunction<A,B> matchWeigher)Positively impact theScore: add the constraintWeight multiplied by the match weight.-
Methods inherited from interface org.optaplanner.core.api.score.stream.ConstraintStream
getConstraintFactory, impact, impact, penalize, penalize, penalizeConfigurable, penalizeConfigurable, reward, reward, rewardConfigurable, rewardConfigurable
-
-
-
-
Method Detail
-
filter
BiConstraintStream<A,B> filter(BiPredicate<A,B> predicate)
Exhaustively test each tuple of facts against theBiPredicateand match ifBiPredicate.test(Object, Object)returns true.Important: This is slower and less scalable than
UniConstraintStream.join(UniConstraintStream, BiJoiner)with a properBiJoinerpredicate (such asJoiners.equal(Function, 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
default <C> TriConstraintStream<A,B,C> join(UniConstraintStream<C> otherStream)
Create a newTriConstraintStreamfor every combination of [A, B] and C.Important:
TriConstraintStream.filter(TriPredicate)Filtering} this is slower and less scalable than ajoin(UniConstraintStream, TriJoiner), 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:
C- the type of the third matched fact- Parameters:
otherStream- never null- Returns:
- never null, a stream that matches every combination of [A, B] and C
-
join
<C> TriConstraintStream<A,B,C> join(UniConstraintStream<C> otherStream, TriJoiner<A,B,C> joiner)
Create a newTriConstraintStreamfor every combination of [A, B] and C for which theTriJoineris true (for the properties it extracts from both facts).Important: This is faster and more scalable than a
joinfollowed by afilter, because it applies hashing and/or indexing on the properties, so it doesn't create nor checks every combination of [A, B] and C.- Type Parameters:
C- the type of the third matched fact- Parameters:
otherStream- never nulljoiner- never null- Returns:
- never null, a stream that matches every combination of [A, B] and C for which the
TriFunctionis true
-
join
default <C> TriConstraintStream<A,B,C> join(Class<C> otherClass)
Create a newTriConstraintStreamfor every combination of [A, B] and C.Important:
TriConstraintStream.filter(TriPredicate)Filtering} this is slower and less scalable than ajoin(Class, TriJoiner), because it doesn't apply hashing and/or indexing on the properties, so it creates and checks every combination of [A, B] and C.This method is syntactic sugar for
join(UniConstraintStream).- Type Parameters:
C- the type of the third matched fact- Parameters:
otherClass- never null- Returns:
- never null, a stream that matches every combination of [A, B] and C
-
join
default <C> TriConstraintStream<A,B,C> join(Class<C> otherClass, TriJoiner<A,B,C> joiner)
Create a newTriConstraintStreamfor every combination of [A, B] and C for which theTriJoineris true (for the properties it extracts from both facts).Important: This is faster and more scalable than a
joinfollowed by afilter, because it applies hashing and/or indexing on the properties, so it doesn't create nor checks every combination of [A, B] and C.This method is syntactic sugar for
join(UniConstraintStream, TriJoiner).This method has overloaded methods with multiple
TriJoinerparameters.- Type Parameters:
C- the type of the third matched fact- Parameters:
otherClass- never nulljoiner- never null- Returns:
- never null, a stream that matches every combination of [A, B] and C for which the
TriJoineris true
-
join
default <C> TriConstraintStream<A,B,C> join(Class<C> otherClass, TriJoiner<A,B,C> joiner1, TriJoiner<A,B,C> joiner2)
As defined byjoin(Class, TriJoiner).- Type Parameters:
C- the type of the third matched fact- Parameters:
otherClass- never nulljoiner1- never nulljoiner2- never null- Returns:
- never null, a stream that matches every combination of [A, B] and C for which all the
joinersare true
-
join
default <C> TriConstraintStream<A,B,C> join(Class<C> otherClass, TriJoiner<A,B,C> joiner1, TriJoiner<A,B,C> joiner2, TriJoiner<A,B,C> joiner3)
As defined byjoin(Class, TriJoiner).- Type Parameters:
C- the type of the third matched fact- Parameters:
otherClass- never nulljoiner1- never nulljoiner2- never nulljoiner3- never null- Returns:
- never null, a stream that matches every combination of [A, B] and C for which all the
joinersare true
-
join
default <C> TriConstraintStream<A,B,C> join(Class<C> otherClass, TriJoiner<A,B,C> joiner1, TriJoiner<A,B,C> joiner2, TriJoiner<A,B,C> joiner3, TriJoiner<A,B,C> joiner4)
As defined byjoin(Class, TriJoiner).- Type Parameters:
C- the type of the third 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] and C for which all the
joinersare true
-
join
default <C> TriConstraintStream<A,B,C> join(Class<C> otherClass, TriJoiner<A,B,C>... joiners)
As defined byjoin(Class, TriJoiner).This method causes Unchecked generics array creation for varargs parameter warnings, but we can't fix it with a
SafeVarargsannotation because it's an interface method. Therefore, there are overloaded methods with up to 4BiJoinerparameters.- Type Parameters:
C- the type of the third matched fact- Parameters:
otherClass- never nulljoiners- never null- Returns:
- never null, a stream that matches every combination of [A, B] and C for which all the
joinersare true
-
ifExists
default <C> BiConstraintStream<A,B> ifExists(Class<C> otherClass, TriJoiner<A,B,C> joiner)
Create a newBiConstraintStreamfor every pair of A and B where C exists for which theTriJoineris true (for the properties it extracts from the facts).This method has overloaded methods with multiple
TriJoinerparameters.- Type Parameters:
C- the type of the third matched fact- Parameters:
otherClass- never nulljoiner- never null- Returns:
- never null, a stream that matches every pair of A and B where C exists for which the
TriJoineris true
-
ifExists
default <C> BiConstraintStream<A,B> ifExists(Class<C> otherClass, TriJoiner<A,B,C> joiner1, TriJoiner<A,B,C> joiner2)
As defined byifExists(Class, TriJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
C- the type of the third matched fact- Parameters:
otherClass- never nulljoiner1- never nulljoiner2- never null- Returns:
- never null, a stream that matches every pair of A and B where C exists for which the
TriJoiners are true
-
ifExists
default <C> BiConstraintStream<A,B> ifExists(Class<C> otherClass, TriJoiner<A,B,C> joiner1, TriJoiner<A,B,C> joiner2, TriJoiner<A,B,C> joiner3)
As defined byifExists(Class, TriJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
C- the type of the third matched fact- Parameters:
otherClass- never nulljoiner1- never nulljoiner2- never nulljoiner3- never null- Returns:
- never null, a stream that matches every pair of A and B where C exists for which the
TriJoiners are true
-
ifExists
default <C> BiConstraintStream<A,B> ifExists(Class<C> otherClass, TriJoiner<A,B,C> joiner1, TriJoiner<A,B,C> joiner2, TriJoiner<A,B,C> joiner3, TriJoiner<A,B,C> joiner4)
As defined byifExists(Class, TriJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
C- the type of the third matched fact- Parameters:
otherClass- never nulljoiner1- never nulljoiner2- never nulljoiner3- never nulljoiner4- never null- Returns:
- never null, a stream that matches every pair of A and B where C exists for which the
TriJoiners are true
-
ifExists
<C> BiConstraintStream<A,B> ifExists(Class<C> otherClass, TriJoiner<A,B,C>... joiners)
As defined byifExists(Class, TriJoiner). 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
SafeVarargsannotation because it's an interface method. Therefore, there are overloaded methods with up to 4TriJoinerparameters.- Type Parameters:
C- the type of the third matched fact- Parameters:
otherClass- never nulljoiners- never null- Returns:
- never null, a stream that matches every pair of A and B where C exists for which the
TriJoiners are true
-
ifNotExists
default <C> BiConstraintStream<A,B> ifNotExists(Class<C> otherClass, TriJoiner<A,B,C> joiner)
Create a newBiConstraintStreamfor every pair of A and B where C does not exist for which theTriJoineris true (for the properties it extracts from the facts).This method has overloaded methods with multiple
TriJoinerparameters.- Type Parameters:
C- the type of the third matched fact- Parameters:
otherClass- never nulljoiner- never null- Returns:
- never null, a stream that matches every pair of A and B where C does not exist for which the
TriJoineris true
-
ifNotExists
default <C> BiConstraintStream<A,B> ifNotExists(Class<C> otherClass, TriJoiner<A,B,C> joiner1, TriJoiner<A,B,C> joiner2)
As defined byifNotExists(Class, TriJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
C- the type of the third matched fact- Parameters:
otherClass- never nulljoiner1- never nulljoiner2- never null- Returns:
- never null, a stream that matches every pair of A and B where C does not exist for which the
TriJoiners are true
-
ifNotExists
default <C> BiConstraintStream<A,B> ifNotExists(Class<C> otherClass, TriJoiner<A,B,C> joiner1, TriJoiner<A,B,C> joiner2, TriJoiner<A,B,C> joiner3)
As defined byifNotExists(Class, TriJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
C- the type of the third matched fact- Parameters:
otherClass- never nulljoiner1- never nulljoiner2- never nulljoiner3- never null- Returns:
- never null, a stream that matches every pair of A and B where C does not exist for which the
TriJoiners are true
-
ifNotExists
default <C> BiConstraintStream<A,B> ifNotExists(Class<C> otherClass, TriJoiner<A,B,C> joiner1, TriJoiner<A,B,C> joiner2, TriJoiner<A,B,C> joiner3, TriJoiner<A,B,C> joiner4)
As defined byifNotExists(Class, TriJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
C- the type of the third matched fact- Parameters:
otherClass- never nulljoiner1- never nulljoiner2- never nulljoiner3- never nulljoiner4- never null- Returns:
- never null, a stream that matches every pair of A and B where C does not exist for which the
TriJoiners are true
-
ifNotExists
<C> BiConstraintStream<A,B> ifNotExists(Class<C> otherClass, TriJoiner<A,B,C>... joiners)
As defined byifNotExists(Class, TriJoiner). 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
SafeVarargsannotation because it's an interface method. Therefore, there are overloaded methods with up to 4TriJoinerparameters.- Type Parameters:
C- the type of the third matched fact- Parameters:
otherClass- never nulljoiners- never null- Returns:
- never null, a stream that matches every pair of A and B where C does not exist for which the
TriJoiners are true
-
groupBy
<ResultContainer_,Result_> UniConstraintStream<Result_> groupBy(BiConstraintCollector<A,B,ResultContainer_,Result_> collector)
Runs all tuples of the stream through a given @BiConstraintCollectorand converts them into a newUniConstraintStreamwhich only has a single tuple, the result of applyingBiConstraintCollector.- 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 SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.- Returns:
- never null
-
groupBy
<GroupKey_> UniConstraintStream<GroupKey_> groupBy(BiFunction<A,B,GroupKey_> groupKeyMapping)
Convert theBiConstraintStreamto 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- Parameters:
groupKeyMapping- never null, mapping function to convert each element in the stream to a different element- Returns:
- never null
-
groupBy
<GroupKey_,ResultContainer_,Result_> BiConstraintStream<GroupKey_,Result_> groupBy(BiFunction<A,B,GroupKey_> groupKeyMapping, BiConstraintCollector<A,B,ResultContainer_,Result_> collector)
Convert theBiConstraintStreamto a differentBiConstraintStream, 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
BiConstraintCollectorapplied on all incoming tuples with the same first fact.- Type Parameters:
GroupKey_- the type of the first fact in the destinationBiConstraintStream's tupleResultContainer_- 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 SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.- Returns:
- never null
-
groupBy
<GroupKeyA_,GroupKeyB_> BiConstraintStream<GroupKeyA_,GroupKeyB_> groupBy(BiFunction<A,B,GroupKeyA_> groupKeyAMapping, BiFunction<A,B,GroupKeyB_> groupKeyBMapping)
Convert theBiConstraintStreamto a differentBiConstraintStream, 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 tupleGroupKeyB_- the type of the second fact in the destinationBiConstraintStream's tuple- 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_,ResultContainer_,Result_> TriConstraintStream<GroupKeyA_,GroupKeyB_,Result_> groupBy(BiFunction<A,B,GroupKeyA_> groupKeyAMapping, BiFunction<A,B,GroupKeyB_> groupKeyBMapping, BiConstraintCollector<A,B,ResultContainer_,Result_> collector)
Combines the semantics ofgroupBy(BiFunction, BiFunction)andgroupBy(BiConstraintCollector). That is, the first and second facts in the tuple follow thegroupBy(BiFunction, BiFunction)semantics, and the third fact is the result of applyingBiConstraintCollector.finisher()on all the tuples of the originalUniConstraintStreamthat belong to the group.- Type Parameters:
GroupKeyA_- the type of the first fact in the destinationTriConstraintStream's tupleGroupKeyB_- the type of the second fact in the destinationTriConstraintStream's tupleResultContainer_- 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 SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.- Returns:
- never null
-
groupBy
<GroupKeyA_,GroupKeyB_,ResultContainerC_,ResultC_,ResultContainerD_,ResultD_> QuadConstraintStream<GroupKeyA_,GroupKeyB_,ResultC_,ResultD_> groupBy(BiFunction<A,B,GroupKeyA_> groupKeyAMapping, BiFunction<A,B,GroupKeyB_> groupKeyBMapping, BiConstraintCollector<A,B,ResultContainerC_,ResultC_> collectorC, BiConstraintCollector<A,B,ResultContainerD_,ResultD_> collectorD)
Combines the semantics ofgroupBy(BiFunction, BiFunction)andgroupBy(BiConstraintCollector). That is, the first and second facts in the tuple follow thegroupBy(BiFunction, BiFunction)semantics. The third fact is the result of applying the firstBiConstraintCollector.finisher()on all the tuples of the originalBiConstraintStreamthat belong to the group. The fourth fact is the result of applying the secondBiConstraintCollector.finisher()on all the tuples of the originalBiConstraintStreamthat belong to the group- Type Parameters:
GroupKeyA_- the type of the first fact in the destinationQuadConstraintStream's tupleGroupKeyB_- 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:
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 SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.collectorD- never null, the collector to perform the second grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.- Returns:
- never null
-
penalize
default Constraint penalize(String constraintName, Score<?> constraintWeight, ToIntBiFunction<A,B> matchWeigher)
Negatively impact theScore: subtract the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.penalize(String, Score).For non-int
Scoretypes usepenalizeLong(String, Score, ToLongBiFunction)orpenalizeBigDecimal(String, Score, BiFunction)instead.- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationconstraintWeight- never nullmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalize
Constraint penalize(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntBiFunction<A,B> matchWeigher)
As defined bypenalize(String, Score, ToIntBiFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
penalizeLong
default Constraint penalizeLong(String constraintName, Score<?> constraintWeight, ToLongBiFunction<A,B> matchWeigher)
Negatively impact theScore: subtract the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.penalize(String, Score).- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationconstraintWeight- never nullmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalizeLong
Constraint penalizeLong(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongBiFunction<A,B> matchWeigher)
As defined bypenalizeLong(String, Score, ToLongBiFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
penalizeBigDecimal
default Constraint penalizeBigDecimal(String constraintName, Score<?> constraintWeight, BiFunction<A,B,BigDecimal> matchWeigher)
Negatively impact theScore: subtract the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.penalize(String, Score).- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationconstraintWeight- never nullmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalizeBigDecimal
Constraint penalizeBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, BiFunction<A,B,BigDecimal> matchWeigher)
As defined bypenalizeBigDecimal(String, Score, BiFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
penalizeConfigurable
default Constraint penalizeConfigurable(String constraintName, ToIntBiFunction<A,B> matchWeigher)
Negatively impact theScore: subtract theConstraintWeightmultiplied by the match weight. Otherwise as defined byConstraintStream.penalizeConfigurable(String).For non-int
Scoretypes usepenalizeConfigurableLong(String, ToLongBiFunction)orpenalizeConfigurableBigDecimal(String, BiFunction)instead.- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalizeConfigurable
Constraint penalizeConfigurable(String constraintPackage, String constraintName, ToIntBiFunction<A,B> matchWeigher)
As defined bypenalizeConfigurable(String, ToIntBiFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
penalizeConfigurableLong
default Constraint penalizeConfigurableLong(String constraintName, ToLongBiFunction<A,B> matchWeigher)
Negatively impact theScore: subtract theConstraintWeightmultiplied by the match weight. Otherwise as defined byConstraintStream.penalizeConfigurable(String).- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalizeConfigurableLong
Constraint penalizeConfigurableLong(String constraintPackage, String constraintName, ToLongBiFunction<A,B> matchWeigher)
As defined bypenalizeConfigurableLong(String, ToLongBiFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
penalizeConfigurableBigDecimal
default Constraint penalizeConfigurableBigDecimal(String constraintName, BiFunction<A,B,BigDecimal> matchWeigher)
Negatively impact theScore: subtract theConstraintWeightmultiplied by the match weight. Otherwise as defined byConstraintStream.penalizeConfigurable(String).- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalizeConfigurableBigDecimal
Constraint penalizeConfigurableBigDecimal(String constraintPackage, String constraintName, BiFunction<A,B,BigDecimal> matchWeigher)
As defined bypenalizeConfigurableBigDecimal(String, BiFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
reward
default Constraint reward(String constraintName, Score<?> constraintWeight, ToIntBiFunction<A,B> matchWeigher)
Positively impact theScore: add the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.reward(String, Score).For non-int
Scoretypes userewardLong(String, Score, ToLongBiFunction)orrewardBigDecimal(String, Score, BiFunction)instead.- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationconstraintWeight- never nullmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
reward
Constraint reward(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntBiFunction<A,B> matchWeigher)
As defined byreward(String, Score, ToIntBiFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
rewardLong
default Constraint rewardLong(String constraintName, Score<?> constraintWeight, ToLongBiFunction<A,B> matchWeigher)
Positively impact theScore: add the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.reward(String, Score).- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationconstraintWeight- never nullmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
rewardLong
Constraint rewardLong(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongBiFunction<A,B> matchWeigher)
As defined byrewardLong(String, Score, ToLongBiFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
rewardBigDecimal
default Constraint rewardBigDecimal(String constraintName, Score<?> constraintWeight, BiFunction<A,B,BigDecimal> matchWeigher)
Positively impact theScore: add the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.reward(String, Score).- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationconstraintWeight- never nullmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
rewardBigDecimal
Constraint rewardBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, BiFunction<A,B,BigDecimal> matchWeigher)
As defined byrewardBigDecimal(String, Score, BiFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
rewardConfigurable
default Constraint rewardConfigurable(String constraintName, ToIntBiFunction<A,B> matchWeigher)
Positively impact theScore: add theConstraintWeightmultiplied by the match weight. Otherwise as defined byConstraintStream.rewardConfigurable(String).For non-int
Scoretypes userewardConfigurableLong(String, ToLongBiFunction)orrewardConfigurableBigDecimal(String, BiFunction)instead.- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
rewardConfigurable
Constraint rewardConfigurable(String constraintPackage, String constraintName, ToIntBiFunction<A,B> matchWeigher)
As defined byrewardConfigurable(String, ToIntBiFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
rewardConfigurableLong
default Constraint rewardConfigurableLong(String constraintName, ToLongBiFunction<A,B> matchWeigher)
Positively impact theScore: add theConstraintWeightmultiplied by the match weight. Otherwise as defined byConstraintStream.rewardConfigurable(String).- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
rewardConfigurableLong
Constraint rewardConfigurableLong(String constraintPackage, String constraintName, ToLongBiFunction<A,B> matchWeigher)
As defined byrewardConfigurableLong(String, ToLongBiFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
rewardConfigurableBigDecimal
default Constraint rewardConfigurableBigDecimal(String constraintName, BiFunction<A,B,BigDecimal> matchWeigher)
Positively impact theScore: add theConstraintWeightmultiplied by the match weight. Otherwise as defined byConstraintStream.rewardConfigurable(String).- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
rewardConfigurableBigDecimal
Constraint rewardConfigurableBigDecimal(String constraintPackage, String constraintName, BiFunction<A,B,BigDecimal> matchWeigher)
As defined byrewardConfigurableBigDecimal(String, BiFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
impact
default Constraint impact(String constraintName, Score<?> constraintWeight, ToIntBiFunction<A,B> matchWeigher)
Positively or negatively impact theScoreby 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
Scoretypes useimpactLong(String, Score, ToLongBiFunction)orimpactBigDecimal(String, Score, BiFunction)instead.- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationconstraintWeight- never nullmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
impact
Constraint impact(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntBiFunction<A,B> matchWeigher)
As defined byimpact(String, Score, ToIntBiFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
impactLong
default Constraint impactLong(String constraintName, Score<?> constraintWeight, ToLongBiFunction<A,B> matchWeigher)
Positively or negatively impact theScoreby 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 inConstraintMatchTotalduring score justificationconstraintWeight- never nullmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
impactLong
Constraint impactLong(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongBiFunction<A,B> matchWeigher)
As defined byimpactLong(String, Score, ToLongBiFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
impactBigDecimal
default Constraint impactBigDecimal(String constraintName, Score<?> constraintWeight, BiFunction<A,B,BigDecimal> matchWeigher)
Positively or negatively impact theScoreby the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.impact(String, Score).Use
penalizeBigDecimal(...)orrewardBigDecimal(...)instead, unless this constraint can both have positive and negative weights.- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationconstraintWeight- never nullmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
impactBigDecimal
Constraint impactBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, BiFunction<A,B,BigDecimal> matchWeigher)
As defined byimpactBigDecimal(String, Score, BiFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
impactConfigurable
default Constraint impactConfigurable(String constraintName, ToIntBiFunction<A,B> matchWeigher)
Positively or negatively impact theScoreby theConstraintWeightmultiplied by the match weight.Use
penalizeConfigurable(...)orrewardConfigurable(...)instead, unless this constraint can both have positive and negative weights.The constraintWeight comes from an
ConstraintWeightannotated member on theConstraintConfiguration, so end users can change the constraint weights dynamically. This constraint may be deactivated if theConstraintWeightis zero. If there is noConstraintConfiguration, useConstraintStream.impact(String, Score)instead.The
Constraint.getConstraintPackage()defaults toConstraintConfiguration.constraintPackage().- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
impactConfigurable
Constraint impactConfigurable(String constraintPackage, String constraintName, ToIntBiFunction<A,B> matchWeigher)
As defined byimpactConfigurable(String, ToIntBiFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
impactConfigurableLong
default Constraint impactConfigurableLong(String constraintName, ToLongBiFunction<A,B> matchWeigher)
Positively or negatively impact theScoreby theConstraintWeightmultiplied by the match weight.Use
penalizeConfigurableLong(...)orrewardConfigurableLong(...)instead, unless this constraint can both have positive and negative weights.The constraintWeight comes from an
ConstraintWeightannotated member on theConstraintConfiguration, so end users can change the constraint weights dynamically. This constraint may be deactivated if theConstraintWeightis zero. If there is noConstraintConfiguration, useConstraintStream.impact(String, Score)instead.The
Constraint.getConstraintPackage()defaults toConstraintConfiguration.constraintPackage().- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
impactConfigurableLong
Constraint impactConfigurableLong(String constraintPackage, String constraintName, ToLongBiFunction<A,B> matchWeigher)
As defined byimpactConfigurableLong(String, ToLongBiFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
impactConfigurableBigDecimal
default Constraint impactConfigurableBigDecimal(String constraintName, BiFunction<A,B,BigDecimal> matchWeigher)
Positively or negatively impact theScoreby theConstraintWeightmultiplied by the match weight.Use
penalizeConfigurableBigDecimal(...)orrewardConfigurableBigDecimal(...)instead, unless this constraint can both have positive and negative weights.The constraintWeight comes from an
ConstraintWeightannotated member on theConstraintConfiguration, so end users can change the constraint weights dynamically. This constraint may be deactivated if theConstraintWeightis zero. If there is noConstraintConfiguration, useConstraintStream.impact(String, Score)instead.The
Constraint.getConstraintPackage()defaults toConstraintConfiguration.constraintPackage().- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
impactConfigurableBigDecimal
Constraint impactConfigurableBigDecimal(String constraintPackage, String constraintName, BiFunction<A,B,BigDecimal> matchWeigher)
As defined byimpactConfigurableBigDecimal(String, BiFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
-