Package org.optaplanner.core.impl.score.stream.drools.uni

## Class DroolsGroupingUniConstraintStream<Solution_,​NewA>

- java.lang.Object
- - org.optaplanner.core.impl.score.stream.common.AbstractConstraintStream<Solution_>
  - - org.optaplanner.core.impl.score.stream.drools.common.DroolsAbstractConstraintStream<Solution_>
    - - org.optaplanner.core.impl.score.stream.drools.uni.DroolsAbstractUniConstraintStream<Solution_,​NewA>
      - - org.optaplanner.core.impl.score.stream.drools.uni.DroolsGroupingUniConstraintStream<Solution_,​NewA>

- All Implemented Interfaces:
    `ConstraintStream`, `UniConstraintStream<NewA>`, `InnerUniConstraintStream<NewA>`

      public final class DroolsGroupingUniConstraintStream<Solution_,​NewA>
      extends DroolsAbstractUniConstraintStream<Solution_,​NewA>

- - ### Field Summary

    - ### Fields inherited from class org.optaplanner.core.impl.score.stream.drools.common.DroolsAbstractConstraintStream

      `constraintFactory`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `DroolsGroupingUniConstraintStream​(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractBiConstraintStream<Solution_,​A,​B> parent, BiFunction<A,​B,​NewA> groupKeyMapping)` |
    `DroolsGroupingUniConstraintStream​(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractBiConstraintStream<Solution_,​A,​B> parent, BiConstraintCollector<A,​B,​?,​NewA> collector)` |
    `DroolsGroupingUniConstraintStream​(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractQuadConstraintStream<Solution_,​A,​B,​C,​D> parent, QuadFunction<A,​B,​C,​D,​NewA> groupKeyMapping)` |
    `DroolsGroupingUniConstraintStream​(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractQuadConstraintStream<Solution_,​A,​B,​C,​D> parent, QuadConstraintCollector<A,​B,​C,​D,​?,​NewA> collector)` |
    `DroolsGroupingUniConstraintStream​(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractTriConstraintStream<Solution_,​A,​B,​C> parent, TriFunction<A,​B,​C,​NewA> groupKeyMapping)` |
    `DroolsGroupingUniConstraintStream​(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractTriConstraintStream<Solution_,​A,​B,​C> parent, TriConstraintCollector<A,​B,​C,​?,​NewA> collector)` |
    `DroolsGroupingUniConstraintStream​(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractUniConstraintStream<Solution_,​A> parent, Function<A,​NewA> groupKeyMapping)` |
    `DroolsGroupingUniConstraintStream​(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractUniConstraintStream<Solution_,​A> parent, UniConstraintCollector<A,​?,​NewA> collector)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `UniLeftHandSide<NewA>` | `getLeftHandSide()` |
    `boolean` | `guaranteesDistinct()` | This method will return true if the constraint stream is guaranteed to only produce distinct tuples.
    `String` | `toString()` |

    - ### Methods inherited from class org.optaplanner.core.impl.score.stream.drools.uni.DroolsAbstractUniConstraintStream

      `filter, flattenLast, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, ifExists, ifNotExists, impactScore, impactScore, impactScoreBigDecimal, impactScoreConfigurable, impactScoreConfigurable, impactScoreConfigurableBigDecimal, impactScoreConfigurableLong, impactScoreLong, join, map`

    - ### Methods inherited from class org.optaplanner.core.impl.score.stream.drools.common.DroolsAbstractConstraintStream

      `addChildStream, buildConstraint, buildConstraintConfigurable, getChildStreams, getConstraintFactory`

    - ### Methods inherited from class org.optaplanner.core.impl.score.stream.common.AbstractConstraintStream

      `buildConstraintWeightExtractor, buildConstraintWeightExtractor, impact, penalize, penalizeConfigurable, reward, rewardConfigurable`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface org.optaplanner.core.api.score.stream.ConstraintStream

      `getConstraintFactory, impact, impact, penalize, penalize, penalizeConfigurable, penalizeConfigurable, reward, reward, rewardConfigurable, rewardConfigurable`

    - ### Methods inherited from interface org.optaplanner.core.impl.score.stream.uni.InnerUniConstraintStream

      `distinct, impact, impactBigDecimal, impactConfigurable, impactConfigurableBigDecimal, impactConfigurableLong, impactLong, penalize, penalizeBigDecimal, penalizeConfigurable, penalizeConfigurableBigDecimal, penalizeConfigurableLong, penalizeLong, reward, rewardBigDecimal, rewardConfigurable, rewardConfigurableBigDecimal, rewardConfigurableLong, rewardLong`

    - ### Methods inherited from interface org.optaplanner.core.api.score.stream.uni.UniConstraintStream

      `ifExists, ifExists, ifExists, ifExists, ifExistsOther, ifExistsOther, ifExistsOther, ifExistsOther, ifExistsOther, ifExistsOther, ifNotExists, ifNotExists, ifNotExists, ifNotExists, ifNotExistsOther, ifNotExistsOther, ifNotExistsOther, ifNotExistsOther, ifNotExistsOther, ifNotExistsOther, impact, impactBigDecimal, impactConfigurable, impactConfigurableBigDecimal, impactConfigurableLong, impactLong, join, join, join, join, join, join, join, join, join, join, join, penalize, penalizeBigDecimal, penalizeConfigurable, penalizeConfigurableBigDecimal, penalizeConfigurableLong, penalizeLong, reward, rewardBigDecimal, rewardConfigurable, rewardConfigurableBigDecimal, rewardConfigurableLong, rewardLong`

- - ### Constructor Detail

    - #### DroolsGroupingUniConstraintStream

          public DroolsGroupingUniConstraintStream​(DroolsConstraintFactory<Solution_> constraintFactory,
                                                   DroolsAbstractUniConstraintStream<Solution_,​A> parent,
                                                   Function<A,​NewA> groupKeyMapping)

    - #### DroolsGroupingUniConstraintStream

          public DroolsGroupingUniConstraintStream​(DroolsConstraintFactory<Solution_> constraintFactory,
                                                   DroolsAbstractUniConstraintStream<Solution_,​A> parent,
                                                   UniConstraintCollector<A,​?,​NewA> collector)

    - #### DroolsGroupingUniConstraintStream

          public DroolsGroupingUniConstraintStream​(DroolsConstraintFactory<Solution_> constraintFactory,
                                                   DroolsAbstractBiConstraintStream<Solution_,​A,​B> parent,
                                                   BiFunction<A,​B,​NewA> groupKeyMapping)

    - #### DroolsGroupingUniConstraintStream

          public DroolsGroupingUniConstraintStream​(DroolsConstraintFactory<Solution_> constraintFactory,
                                                   DroolsAbstractBiConstraintStream<Solution_,​A,​B> parent,
                                                   BiConstraintCollector<A,​B,​?,​NewA> collector)

    - #### DroolsGroupingUniConstraintStream

          public DroolsGroupingUniConstraintStream​(DroolsConstraintFactory<Solution_> constraintFactory,
                                                   DroolsAbstractTriConstraintStream<Solution_,​A,​B,​C> parent,
                                                   TriConstraintCollector<A,​B,​C,​?,​NewA> collector)

    - #### DroolsGroupingUniConstraintStream

          public DroolsGroupingUniConstraintStream​(DroolsConstraintFactory<Solution_> constraintFactory,
                                                   DroolsAbstractTriConstraintStream<Solution_,​A,​B,​C> parent,
                                                   TriFunction<A,​B,​C,​NewA> groupKeyMapping)

    - #### DroolsGroupingUniConstraintStream

          public DroolsGroupingUniConstraintStream​(DroolsConstraintFactory<Solution_> constraintFactory,
                                                   DroolsAbstractQuadConstraintStream<Solution_,​A,​B,​C,​D> parent,
                                                   QuadConstraintCollector<A,​B,​C,​D,​?,​NewA> collector)

    - #### DroolsGroupingUniConstraintStream

          public DroolsGroupingUniConstraintStream​(DroolsConstraintFactory<Solution_> constraintFactory,
                                                   DroolsAbstractQuadConstraintStream<Solution_,​A,​B,​C,​D> parent,
                                                   QuadFunction<A,​B,​C,​D,​NewA> groupKeyMapping)

  - ### Method Detail

    - #### guaranteesDistinct

          public boolean guaranteesDistinct()

      Description copied from interface: `InnerUniConstraintStream`
      This method will return true if the constraint stream is guaranteed to only produce distinct tuples. See `InnerUniConstraintStream.distinct()` for details.
      Returns:
        true if the guarantee of distinct tuples is provided

    - #### getLeftHandSide

          public UniLeftHandSide<NewA> getLeftHandSide()

      Specified by:
        `getLeftHandSide` in class `DroolsAbstractUniConstraintStream<Solution_,​NewA>`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`