org.optaplanner.core.api.score.stream.tri

## 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
  All Known Subinterfaces:
    InnerTriConstraintStream<A,B,C>
  All Known Implementing Classes:
    BavetAbstractTriConstraintStream, BavetFilterTriConstraintStream, BavetJoinTriConstraintStream, BavetScoringTriConstraintStream, DroolsAbstractTriConstraintStream, DroolsExistsTriConstraintStream, DroolsFilterTriConstraintStream, DroolsGroupingTriConstraintStream, DroolsJoinTriConstraintStream, DroolsScoringTriConstraintStream

      public interface TriConstraintStream<A,B,C>
      extends ConstraintStream

  A `ConstraintStream` that matches three facts.
  See Also:
    `ConstraintStream`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    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_> UniConstraintStream<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_> UniConstraintStream<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_> BiConstraintStream<GroupKey_,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_> BiConstraintStream<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_> 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 of `groupBy(TriFunction, TriFunction)` and `groupBy(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 of `groupBy(TriFunction, TriFunction)` and `groupBy(TriConstraintCollector)`.
    `<D> TriConstraintStream<A,B,C>` | `ifExists(Class<D> otherClass, QuadJoiner<A,B,C,D>... joiners)` As defined by `ifExists(Class, QuadJoiner)`.
    `default <D> TriConstraintStream<A,B,C>` | `ifExists(Class<D> otherClass, QuadJoiner<A,B,C,D> joiner)` Create a new `BiConstraintStream` for every tuple of A, B and C where D exists for which the `QuadJoiner` is true (for the properties it extracts from the facts).
    `default <D> TriConstraintStream<A,B,C>` | `ifExists(Class<D> otherClass, QuadJoiner<A,B,C,D> joiner1, QuadJoiner<A,B,C,D> joiner2)` As defined by `ifExists(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 by `ifExists(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 by `ifExists(Class, QuadJoiner)`.
    `<D> TriConstraintStream<A,B,C>` | `ifNotExists(Class<D> otherClass, QuadJoiner<A,B,C,D>... joiners)` As defined by `ifNotExists(Class, QuadJoiner)`.
    `default <D> TriConstraintStream<A,B,C>` | `ifNotExists(Class<D> otherClass, QuadJoiner<A,B,C,D> joiner)` Create a new `BiConstraintStream` for every tuple of A, B and C where D does not exist for which the `QuadJoiner` is true (for the properties it extracts from the facts).
    `default <D> TriConstraintStream<A,B,C>` | `ifNotExists(Class<D> otherClass, QuadJoiner<A,B,C,D> joiner1, QuadJoiner<A,B,C,D> joiner2)` As defined by `ifNotExists(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 by `ifNotExists(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 by `ifNotExists(Class, QuadJoiner)`.
    `default Constraint` | `impact(String constraintName, Score<?> constraintWeight, ToIntTriFunction<A,B,C> matchWeigher)` Positively or negatively impact the `Score` by the constraintWeight multiplied by the match weight.
    `Constraint` | `impact(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntTriFunction<A,B,C> matchWeigher)` As defined by `impact(String, Score, ToIntTriFunction)`.
    `default Constraint` | `impactBigDecimal(String constraintName, Score<?> constraintWeight, TriFunction<A,B,C,BigDecimal> matchWeigher)` Positively or negatively impact the `Score` by the constraintWeight multiplied by the match weight.
    `Constraint` | `impactBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, TriFunction<A,B,C,BigDecimal> matchWeigher)` As defined by `impactBigDecimal(String, Score, TriFunction)`.
    `Constraint` | `impactConfigurable(String constraintPackage, String constraintName, ToIntTriFunction<A,B,C> matchWeigher)` As defined by `impactConfigurable(String, ToIntTriFunction)`.
    `default Constraint` | `impactConfigurable(String constraintName, ToIntTriFunction<A,B,C> matchWeigher)` Positively or negatively impact the `Score` by the `ConstraintWeight` for each match.
    `Constraint` | `impactConfigurableBigDecimal(String constraintPackage, String constraintName, TriFunction<A,B,C,BigDecimal> matchWeigher)` As defined by `impactConfigurableBigDecimal(String, TriFunction)`.
    `default Constraint` | `impactConfigurableBigDecimal(String constraintName, TriFunction<A,B,C,BigDecimal> matchWeigher)` Positively or negatively impact the `Score` by the `ConstraintWeight` for each match.
    `Constraint` | `impactConfigurableLong(String constraintPackage, String constraintName, ToLongTriFunction<A,B,C> matchWeigher)` As defined by `impactConfigurableLong(String, ToLongTriFunction)`.
    `default Constraint` | `impactConfigurableLong(String constraintName, ToLongTriFunction<A,B,C> matchWeigher)` Positively or negatively impact the `Score` by the `ConstraintWeight` for each match.
    `default Constraint` | `impactLong(String constraintName, Score<?> constraintWeight, ToLongTriFunction<A,B,C> matchWeigher)` Positively or negatively impact the `Score` by the constraintWeight multiplied by the match weight.
    `Constraint` | `impactLong(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongTriFunction<A,B,C> matchWeigher)` As defined by `impactLong(String, Score, ToLongTriFunction)`.
    `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)`.

    - ### 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

          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.

      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.

      Parameters:
        `predicate` - never null
      Returns:
        never null

    - #### join

          default <D> QuadConstraintStream<A,B,C,D> join(UniConstraintStream<D> otherStream)

      Create a new `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.

      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

          <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).

      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.

      Type Parameters:
        `D` - the type of the fourth matched fact
      Parameters:
        `otherStream` - never null
        `joiner` - 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,C,D> join(Class<D> otherClass)

      Create a new `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)`.

      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

          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).

      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.

      Type Parameters:
        `D` - the type of the fourth matched fact
      Parameters:
        `otherClass` - never null
        `joiner` - 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,C,D> join(Class<D> otherClass,
                                                         QuadJoiner<A,B,C,D> joiner1,
                                                         QuadJoiner<A,B,C,D> joiner2)

      As defined by `join(Class, QuadJoiner)`.
      Type Parameters:
        `D` - the type of the fourth matched fact
      Parameters:
        `otherClass` - never null
        `joiner1` - never null
        `joiner2` - 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,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)`.
      Type Parameters:
        `D` - the type of the fourth matched fact
      Parameters:
        `otherClass` - never null
        `joiner1` - never null
        `joiner2` - never null
        `joiner3` - 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,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)`.
      Type Parameters:
        `D` - the type of the fourth matched fact
      Parameters:
        `otherClass` - never null
        `joiner1` - never null
        `joiner2` - never null
        `joiner3` - never null
        `joiner4` - 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,C,D> join(Class<D> otherClass,
                                                         QuadJoiner<A,B,C,D>... joiners)

      As defined by `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.

      Type Parameters:
        `D` - the type of the fourth matched fact
      Parameters:
        `otherClass` - never null
        `joiners` - 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

          default <D> TriConstraintStream<A,B,C> ifExists(Class<D> otherClass,
                                                          QuadJoiner<A,B,C,D> joiner)

      Create a new `BiConstraintStream` for every tuple of A, B and C where D exists for which the `QuadJoiner` is true (for the properties it extracts from the facts).

      This method has overloaded methods with multiple `QuadJoiner` parameters.

      Type Parameters:
        `D` - the type of the fourth matched fact
      Parameters:
        `otherClass` - never null
        `joiner` - 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,C> ifExists(Class<D> otherClass,
                                                          QuadJoiner<A,B,C,D> joiner1,
                                                          QuadJoiner<A,B,C,D> joiner2)

      As defined by `ifExists(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 null
        `joiner1` - never null
        `joiner2` - 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,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 by `ifExists(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 null
        `joiner1` - never null
        `joiner2` - never null
        `joiner3` - 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,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 by `ifExists(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 null
        `joiner1` - never null
        `joiner2` - never null
        `joiner3` - never null
        `joiner4` - 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

          <D> TriConstraintStream<A,B,C> ifExists(Class<D> otherClass,
                                                  QuadJoiner<A,B,C,D>... joiners)

      As defined by `ifExists(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 4 `QuadJoiner` parameters.

      Type Parameters:
        `D` - the type of the fourth matched fact
      Parameters:
        `otherClass` - never null
        `joiners` - 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

          default <D> TriConstraintStream<A,B,C> ifNotExists(Class<D> otherClass,
                                                             QuadJoiner<A,B,C,D> joiner)

      Create a new `BiConstraintStream` for every tuple of A, B and C where D does not exist for which the `QuadJoiner` is true (for the properties it extracts from the facts).

      This method has overloaded methods with multiple `QuadJoiner` parameters.

      Type Parameters:
        `D` - the type of the fourth matched fact
      Parameters:
        `otherClass` - never null
        `joiner` - 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,C> ifNotExists(Class<D> otherClass,
                                                             QuadJoiner<A,B,C,D> joiner1,
                                                             QuadJoiner<A,B,C,D> joiner2)

      As defined by `ifNotExists(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 null
        `joiner1` - never null
        `joiner2` - 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,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 by `ifNotExists(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 null
        `joiner1` - never null
        `joiner2` - never null
        `joiner3` - 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,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 by `ifNotExists(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 null
        `joiner1` - never null
        `joiner2` - never null
        `joiner3` - never null
        `joiner4` - 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

          <D> TriConstraintStream<A,B,C> ifNotExists(Class<D> otherClass,
                                                     QuadJoiner<A,B,C,D>... joiners)

      As defined by `ifNotExists(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 4 `QuadJoiner` parameters.

      Type Parameters:
        `D` - the type of the fourth matched fact
      Parameters:
        `otherClass` - never null
        `joiners` - 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 the `TriConstraintStream` to a `UniConstraintStream`, containing only a single tuple, the result of applying `TriConstraintCollector`.
      Type Parameters:
        `ResultContainer_` - the mutable accumulation type (often hidden as an implementation detail)
        `Result_` - the type of a fact in the destination `UniConstraintStream`'s tuple
      Parameters:
        `collector` - never null, the collector to perform the grouping operation with See `ConstraintCollectors` for common operations, such as `count()`, `sum()` and others.
      Returns:
        never null

    - #### groupBy

          <GroupKey_> UniConstraintStream<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. Neither tuple of the new stream `Objects.equals(Object, Object)` any other.
      Type Parameters:
        `GroupKey_` - the type of a fact in the destination `UniConstraintStream`'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(TriFunction<A,B,C,GroupKey_> groupKeyMapping,
                                                                                             TriConstraintCollector<A,B,C,ResultContainer_,Result_> collector)

      Convert the `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.

      Type Parameters:
        `GroupKey_` - the type of the first fact in the destination `BiConstraintStream`'s tuple
        `ResultContainer_` - the mutable accumulation type (often hidden as an implementation detail)
        `Result_` - the type of the second fact in the destination `BiConstraintStream`'s tuple
      Parameters:
        `groupKeyMapping` - never null, function to convert the fact in the original tuple to a different fact
        `collector` - never null, the collector to perform the grouping operation with See `ConstraintCollectors` for common operations, such as `count()`, `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 the `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.

      Type Parameters:
        `GroupKeyA_` - the type of the first fact in the destination `BiConstraintStream`'s tuple
        `GroupKeyB_` - the type of the second fact in the destination `BiConstraintStream`'s tuple
      Parameters:
        `groupKeyAMapping` - never null, function to convert the facts in the original tuple to a new fact
        `groupKeyBMapping` - 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(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)`. 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.
      Type Parameters:
        `GroupKeyA_` - the type of the first fact in the destination `TriConstraintStream`'s tuple
        `GroupKeyB_` - the type of the second fact in the destination `TriConstraintStream`'s tuple
        `ResultContainer_` - the mutable accumulation type (often hidden as an implementation detail)
        `Result_` - the type of the third fact in the destination `TriConstraintStream`'s tuple
      Parameters:
        `groupKeyAMapping` - never null, function to convert the original tuple into a first fact
        `groupKeyBMapping` - never null, function to convert the original tuple into a second fact
        `collector` - never null, the collector to perform the grouping operation with See `ConstraintCollectors` for common operations, such as `count()`, `sum()` and others.
      Returns:
        never null

    - #### groupBy

          <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 of `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 group
      Type Parameters:
        `GroupKeyA_` - the type of the first fact in the destination `QuadConstraintStream`'s tuple
        `GroupKeyB_` - the type of the second fact in the destination `QuadConstraintStream`'s tuple
        `ResultContainerC_` - the mutable accumulation type (often hidden as an implementation detail)
        `ResultC_` - the type of the third fact in the destination `QuadConstraintStream`'s tuple
        `ResultContainerD_` - the mutable accumulation type (often hidden as an implementation detail)
        `ResultD_` - the type of the fourth fact in the destination `QuadConstraintStream`'s tuple
      Parameters:
        `groupKeyAMapping` - never null, function to convert the original tuple into a first fact
        `groupKeyBMapping` - never null, function to convert the original tuple into a second fact
        `collectorC` - never null, the collector to perform the first grouping operation with See `ConstraintCollectors` for common operations, such as `count()`, `sum()` and others.
        `collectorD` - never null, the collector to perform the second grouping operation with See `ConstraintCollectors` for common operations, such as `count()`, `sum()` and others.
      Returns:
        never null

    - #### penalize

          default Constraint penalize(String constraintName,
                                      Score<?> constraintWeight,
                                      ToIntTriFunction<A,B,C> matchWeigher)

      Negatively impact the `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.

      Parameters:
        `constraintName` - never null, shows up in `ConstraintMatchTotal` during score justification
        `constraintWeight` - never null
        `matchWeigher` - 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,
                              ToIntTriFunction<A,B,C> matchWeigher)

      As defined by `penalize(String, Score, ToIntTriFunction)`.
      Parameters:
        `constraintPackage` - never null
        `constraintName` - never null
        `constraintWeight` - never null
        `matchWeigher` - never null
      Returns:
        never null

    - #### penalizeLong

          default Constraint penalizeLong(String constraintName,
                                          Score<?> constraintWeight,
                                          ToLongTriFunction<A,B,C> matchWeigher)

      Negatively impact the `Score`: subtract the constraintWeight multiplied by the match weight. Otherwise as defined by `ConstraintStream.penalize(String, Score)`.
      Parameters:
        `constraintName` - never null, shows up in `ConstraintMatchTotal` during score justification
        `constraintWeight` - never null
        `matchWeigher` - 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,
                                  ToLongTriFunction<A,B,C> matchWeigher)

      As defined by `penalizeLong(String, Score, ToLongTriFunction)`.
      Parameters:
        `constraintPackage` - never null
        `constraintName` - never null
        `constraintWeight` - never null
        `matchWeigher` - never null
      Returns:
        never null

    - #### penalizeBigDecimal

          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. Otherwise as defined by `ConstraintStream.penalize(String, Score)`.
      Parameters:
        `constraintName` - never null, shows up in `ConstraintMatchTotal` during score justification
        `constraintWeight` - never null
        `matchWeigher` - 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,
                                        TriFunction<A,B,C,BigDecimal> matchWeigher)

      As defined by `penalizeBigDecimal(String, Score, TriFunction)`.
      Parameters:
        `constraintPackage` - never null
        `constraintName` - never null
        `constraintWeight` - never null
        `matchWeigher` - never null
      Returns:
        never null

    - #### penalizeConfigurable

          default Constraint penalizeConfigurable(String constraintName,
                                                  ToIntTriFunction<A,B,C> matchWeigher)

      Negatively impact the `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.

      Parameters:
        `constraintName` - never null, shows up in `ConstraintMatchTotal` during score justification
        `matchWeigher` - never null, the result of this function (matchWeight) is multiplied by the constraintWeight
      Returns:
        never null

    - #### penalizeConfigurable

          Constraint penalizeConfigurable(String constraintPackage,
                                          String constraintName,
                                          ToIntTriFunction<A,B,C> matchWeigher)

      As defined by `penalizeConfigurable(String, ToIntTriFunction)`.
      Parameters:
        `constraintPackage` - never null
        `constraintName` - never null
        `matchWeigher` - never null
      Returns:
        never null

    - #### penalizeConfigurableLong

          default Constraint penalizeConfigurableLong(String constraintName,
                                                      ToLongTriFunction<A,B,C> matchWeigher)

      Negatively impact the `Score`: subtract the `ConstraintWeight` multiplied by the match weight. Otherwise as defined by `ConstraintStream.penalizeConfigurable(String)`.
      Parameters:
        `constraintName` - never null, shows up in `ConstraintMatchTotal` during score justification
        `matchWeigher` - never null, the result of this function (matchWeight) is multiplied by the constraintWeight
      Returns:
        never null

    - #### penalizeConfigurableLong

          Constraint penalizeConfigurableLong(String constraintPackage,
                                              String constraintName,
                                              ToLongTriFunction<A,B,C> matchWeigher)

      As defined by `penalizeConfigurableLong(String, ToLongTriFunction)`.
      Parameters:
        `constraintPackage` - never null
        `constraintName` - never null
        `matchWeigher` - never null
      Returns:
        never null

    - #### penalizeConfigurableBigDecimal

          default Constraint penalizeConfigurableBigDecimal(String constraintName,
                                                            TriFunction<A,B,C,BigDecimal> matchWeigher)

      Negatively impact the `Score`: subtract the `ConstraintWeight` multiplied by the match weight. Otherwise as defined by `ConstraintStream.penalizeConfigurable(String)`.
      Parameters:
        `constraintName` - never null, shows up in `ConstraintMatchTotal` during score justification
        `matchWeigher` - never null, the result of this function (matchWeight) is multiplied by the constraintWeight
      Returns:
        never null

    - #### penalizeConfigurableBigDecimal

          Constraint penalizeConfigurableBigDecimal(String constraintPackage,
                                                    String constraintName,
                                                    TriFunction<A,B,C,BigDecimal> matchWeigher)

      As defined by `penalizeConfigurableBigDecimal(String, TriFunction)`.
      Parameters:
        `constraintPackage` - never null
        `constraintName` - never null
        `matchWeigher` - never null
      Returns:
        never null

    - #### reward

          default Constraint reward(String constraintName,
                                    Score<?> constraintWeight,
                                    ToIntTriFunction<A,B,C> matchWeigher)

      Positively impact the `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.

      Parameters:
        `constraintName` - never null, shows up in `ConstraintMatchTotal` during score justification
        `constraintWeight` - never null
        `matchWeigher` - 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,
                            ToIntTriFunction<A,B,C> matchWeigher)

      As defined by `reward(String, Score, ToIntTriFunction)`.
      Parameters:
        `constraintPackage` - never null
        `constraintName` - never null
        `constraintWeight` - never null
        `matchWeigher` - never null
      Returns:
        never null

    - #### rewardLong

          default Constraint rewardLong(String constraintName,
                                        Score<?> constraintWeight,
                                        ToLongTriFunction<A,B,C> matchWeigher)

      Positively impact the `Score`: add the constraintWeight multiplied by the match weight. Otherwise as defined by `ConstraintStream.reward(String, Score)`.
      Parameters:
        `constraintName` - never null, shows up in `ConstraintMatchTotal` during score justification
        `constraintWeight` - never null
        `matchWeigher` - 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,
                                ToLongTriFunction<A,B,C> matchWeigher)

      As defined by `rewardLong(String, Score, ToLongTriFunction)`.
      Parameters:
        `constraintPackage` - never null
        `constraintName` - never null
        `constraintWeight` - never null
        `matchWeigher` - never null
      Returns:
        never null

    - #### rewardBigDecimal

          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. Otherwise as defined by `ConstraintStream.reward(String, Score)`.
      Parameters:
        `constraintName` - never null, shows up in `ConstraintMatchTotal` during score justification
        `constraintWeight` - never null
        `matchWeigher` - 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,
                                      TriFunction<A,B,C,BigDecimal> matchWeigher)

      As defined by `rewardBigDecimal(String, Score, TriFunction)`.
      Parameters:
        `constraintPackage` - never null
        `constraintName` - never null
        `constraintWeight` - never null
        `matchWeigher` - never null
      Returns:
        never null

    - #### rewardConfigurable

          default Constraint rewardConfigurable(String constraintName,
                                                ToIntTriFunction<A,B,C> matchWeigher)

      Positively impact the `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.

      Parameters:
        `constraintName` - never null, shows up in `ConstraintMatchTotal` during score justification
        `matchWeigher` - never null, the result of this function (matchWeight) is multiplied by the constraintWeight
      Returns:
        never null

    - #### rewardConfigurable

          Constraint rewardConfigurable(String constraintPackage,
                                        String constraintName,
                                        ToIntTriFunction<A,B,C> matchWeigher)

      As defined by `rewardConfigurable(String, ToIntTriFunction)`.
      Parameters:
        `constraintPackage` - never null
        `constraintName` - never null
        `matchWeigher` - never null
      Returns:
        never null

    - #### rewardConfigurableLong

          default Constraint rewardConfigurableLong(String constraintName,
                                                    ToLongTriFunction<A,B,C> matchWeigher)

      Positively impact the `Score`: add the `ConstraintWeight` multiplied by the match weight. Otherwise as defined by `ConstraintStream.rewardConfigurable(String)`.
      Parameters:
        `constraintName` - never null, shows up in `ConstraintMatchTotal` during score justification
        `matchWeigher` - never null, the result of this function (matchWeight) is multiplied by the constraintWeight
      Returns:
        never null

    - #### rewardConfigurableLong

          Constraint rewardConfigurableLong(String constraintPackage,
                                            String constraintName,
                                            ToLongTriFunction<A,B,C> matchWeigher)

      As defined by `rewardConfigurableLong(String, ToLongTriFunction)`.
      Parameters:
        `constraintPackage` - never null
        `constraintName` - never null
        `matchWeigher` - never null
      Returns:
        never null

    - #### rewardConfigurableBigDecimal

          default Constraint rewardConfigurableBigDecimal(String constraintName,
                                                          TriFunction<A,B,C,BigDecimal> matchWeigher)

      Positively impact the `Score`: add the `ConstraintWeight` multiplied by the match weight. Otherwise as defined by `ConstraintStream.rewardConfigurable(String)`.
      Parameters:
        `constraintName` - never null, shows up in `ConstraintMatchTotal` during score justification
        `matchWeigher` - never null, the result of this function (matchWeight) is multiplied by the constraintWeight
      Returns:
        never null

    - #### rewardConfigurableBigDecimal

          Constraint rewardConfigurableBigDecimal(String constraintPackage,
                                                  String constraintName,
                                                  TriFunction<A,B,C,BigDecimal> matchWeigher)

      As defined by `rewardConfigurableBigDecimal(String, TriFunction)`.
      Parameters:
        `constraintPackage` - never null
        `constraintName` - never null
        `matchWeigher` - never null
      Returns:
        never null

    - #### impact

          default Constraint impact(String constraintName,
                                    Score<?> constraintWeight,
                                    ToIntTriFunction<A,B,C> matchWeigher)

      Positively or negatively impact the `Score` by the constraintWeight multiplied by the match weight. Otherwise as defined by `ConstraintStream.impact(String, Score)`.

      Use `penalize(...)` or `reward(...)` instead, unless this constraint can both have positive and negative weights.

      For non-int `Score` types use `impactLong(String, Score, ToLongTriFunction)` or `impactBigDecimal(String, Score, TriFunction)` instead.

      Parameters:
        `constraintName` - never null, shows up in `ConstraintMatchTotal` during score justification
        `constraintWeight` - never null
        `matchWeigher` - 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,
                            ToIntTriFunction<A,B,C> matchWeigher)

      As defined by `impact(String, Score, ToIntTriFunction)`.
      Parameters:
        `constraintPackage` - never null
        `constraintName` - never null
        `constraintWeight` - never null
        `matchWeigher` - never null
      Returns:
        never null

    - #### impactLong

          default Constraint impactLong(String constraintName,
                                        Score<?> constraintWeight,
                                        ToLongTriFunction<A,B,C> matchWeigher)

      Positively or negatively impact the `Score` by the constraintWeight multiplied by the match weight. Otherwise as defined by `ConstraintStream.impact(String, Score)`.

      Use `penalizeLong(...)` or `rewardLong(...)` instead, unless this constraint can both have positive and negative weights.

      Parameters:
        `constraintName` - never null, shows up in `ConstraintMatchTotal` during score justification
        `constraintWeight` - never null
        `matchWeigher` - 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,
                                ToLongTriFunction<A,B,C> matchWeigher)

      As defined by `impactLong(String, Score, ToLongTriFunction)`.
      Parameters:
        `constraintPackage` - never null
        `constraintName` - never null
        `constraintWeight` - never null
        `matchWeigher` - never null
      Returns:
        never null

    - #### impactBigDecimal

          default Constraint impactBigDecimal(String constraintName,
                                              Score<?> constraintWeight,
                                              TriFunction<A,B,C,BigDecimal> matchWeigher)

      Positively or negatively impact the `Score` by the constraintWeight multiplied by the match weight. Otherwise as defined by `ConstraintStream.impact(String, Score)`.

      Use `penalizeBigDecimal(...)` or `rewardBigDecimal(...)` unless you intend to mix positive and negative weights.

      Parameters:
        `constraintName` - never null, shows up in `ConstraintMatchTotal` during score justification
        `constraintWeight` - never null
        `matchWeigher` - 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,
                                      TriFunction<A,B,C,BigDecimal> matchWeigher)

      As defined by `impactBigDecimal(String, Score, TriFunction)`.
      Parameters:
        `constraintPackage` - never null
        `constraintName` - never null
        `constraintWeight` - never null
        `matchWeigher` - never null
      Returns:
        never null

    - #### impactConfigurable

          default Constraint impactConfigurable(String constraintName,
                                                ToIntTriFunction<A,B,C> matchWeigher)

      Positively or negatively impact the `Score` by the `ConstraintWeight` for each match.

      Use `penalizeConfigurable(...)` or `rewardConfigurable(...)` instead, unless this constraint can both have positive and negative weights.

      For non-int `Score` types use `impactConfigurableLong(String, ToLongTriFunction)` or `impactConfigurableBigDecimal(String, TriFunction)` instead.

      The constraintWeight comes from an `ConstraintWeight` annotated member on the `ConstraintConfiguration`, so end users can change the constraint weights dynamically. This constraint may be deactivated if the `ConstraintWeight` is zero. If there is no `ConstraintConfiguration`, use `ConstraintStream.impact(String, Score)` instead.

      The `Constraint.getConstraintPackage()` defaults to `ConstraintConfiguration.constraintPackage()`.

      Parameters:
        `constraintName` - never null, shows up in `ConstraintMatchTotal` during score justification
        `matchWeigher` - never null, the result of this function (matchWeight) is multiplied by the constraintWeight
      Returns:
        never null

    - #### impactConfigurable

          Constraint impactConfigurable(String constraintPackage,
                                        String constraintName,
                                        ToIntTriFunction<A,B,C> matchWeigher)

      As defined by `impactConfigurable(String, ToIntTriFunction)`.
      Parameters:
        `constraintPackage` - never null
        `constraintName` - never null
        `matchWeigher` - never null
      Returns:
        never null

    - #### impactConfigurableLong

          default Constraint impactConfigurableLong(String constraintName,
                                                    ToLongTriFunction<A,B,C> matchWeigher)

      Positively or negatively impact the `Score` by the `ConstraintWeight` for each match.

      Use `penalizeConfigurableLong(...)` or `rewardConfigurableLong(...)` instead, unless this constraint can both have positive and negative weights.

      The constraintWeight comes from an `ConstraintWeight` annotated member on the `ConstraintConfiguration`, so end users can change the constraint weights dynamically. This constraint may be deactivated if the `ConstraintWeight` is zero. If there is no `ConstraintConfiguration`, use `ConstraintStream.impact(String, Score)` instead.

      The `Constraint.getConstraintPackage()` defaults to `ConstraintConfiguration.constraintPackage()`.

      Parameters:
        `constraintName` - never null, shows up in `ConstraintMatchTotal` during score justification
        `matchWeigher` - never null, the result of this function (matchWeight) is multiplied by the constraintWeight
      Returns:
        never null

    - #### impactConfigurableLong

          Constraint impactConfigurableLong(String constraintPackage,
                                            String constraintName,
                                            ToLongTriFunction<A,B,C> matchWeigher)

      As defined by `impactConfigurableLong(String, ToLongTriFunction)`.
      Parameters:
        `constraintPackage` - never null
        `constraintName` - never null
        `matchWeigher` - never null
      Returns:
        never null

    - #### impactConfigurableBigDecimal

          default Constraint impactConfigurableBigDecimal(String constraintName,
                                                          TriFunction<A,B,C,BigDecimal> matchWeigher)

      Positively or negatively impact the `Score` by the `ConstraintWeight` for each match.

      Use `penalizeConfigurableBigDecimal(...)` or `rewardConfigurableLong(...)` instead, unless this constraint can both have positive and negative weights.

      The constraintWeight comes from an `ConstraintWeight` annotated member on the `ConstraintConfiguration`, so end users can change the constraint weights dynamically. This constraint may be deactivated if the `ConstraintWeight` is zero. If there is no `ConstraintConfiguration`, use `ConstraintStream.impact(String, Score)` instead.

      The `Constraint.getConstraintPackage()` defaults to `ConstraintConfiguration.constraintPackage()`.

      Parameters:
        `constraintName` - never null, shows up in `ConstraintMatchTotal` during score justification
        `matchWeigher` - never null, the result of this function (matchWeight) is multiplied by the constraintWeight
      Returns:
        never null

    - #### impactConfigurableBigDecimal

          Constraint impactConfigurableBigDecimal(String constraintPackage,
                                                  String constraintName,
                                                  TriFunction<A,B,C,BigDecimal> matchWeigher)

      As defined by `impactConfigurableBigDecimal(String, TriFunction)`.
      Parameters:
        `constraintPackage` - never null
        `constraintName` - never null
        `matchWeigher` - never null
      Returns:
        never null

Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.