## Uses of Interface
org.optaplanner.core.api.score.stream.quad.QuadConstraintCollector

- Packages that use QuadConstraintCollector
  Package | Description
  --- | ---
  org.optaplanner.core.api.score.stream | The `ConstraintStream` API: a way to define constraints for `Score` calculation.
  org.optaplanner.core.api.score.stream.quad | The `ConstraintStream` API for four matched facts.
  org.optaplanner.core.impl.score.stream.drools.bi |
  org.optaplanner.core.impl.score.stream.drools.quad |
  org.optaplanner.core.impl.score.stream.drools.tri |
  org.optaplanner.core.impl.score.stream.drools.uni |
  org.optaplanner.core.impl.score.stream.quad |

- - ### Uses of QuadConstraintCollector in org.optaplanner.core.api.score.stream

    Methods in org.optaplanner.core.api.score.stream that return QuadConstraintCollector
    Modifier and Type | Method and Description
    --- | ---
    `static <A,B,C,D> QuadConstraintCollector<A,B,C,D,?,Integer>` | ConstraintCollectors.`countDistinct(QuadFunction<A,B,C,D,?> groupValueMapping)`
    `static <A,B,C,D> QuadConstraintCollector<A,B,C,D,?,Long>` | ConstraintCollectors.`countDistinctLong(QuadFunction<A,B,C,D,?> groupValueMapping)`
    `static <A,B,C,D> QuadConstraintCollector<A,B,C,D,?,Long>` | ConstraintCollectors.`countLongQuad()`
    `static <A,B,C,D> QuadConstraintCollector<A,B,C,D,?,Integer>` | ConstraintCollectors.`countQuad()`
    `static <A,B,C,D,Result> QuadConstraintCollector<A,B,C,D,?,Result>` | ConstraintCollectors.`sum(QuadFunction<? super A,? super B,? super C,? super D,Result> groupValueMapping, Result zero, BinaryOperator<Result> adder, BinaryOperator<Result> subtractor)`
    `static <A,B,C,D> QuadConstraintCollector<A,B,C,D,?,Integer>` | ConstraintCollectors.`sum(ToIntQuadFunction<? super A,? super B,? super C,? super D> groupValueMapping)`
    `static <A,B,C,D> QuadConstraintCollector<A,B,C,D,?,BigDecimal>` | ConstraintCollectors.`sumBigDecimal(QuadFunction<? super A,? super B,? super C,? super D,BigDecimal> groupValueMapping)`
    `static <A,B,C,D> QuadConstraintCollector<A,B,C,D,?,BigInteger>` | ConstraintCollectors.`sumBigInteger(QuadFunction<? super A,? super B,? super C,? super D,BigInteger> groupValueMapping)`
    `static <A,B,C,D> QuadConstraintCollector<A,B,C,D,?,Duration>` | ConstraintCollectors.`sumDuration(QuadFunction<? super A,? super B,? super C,? super D,Duration> groupValueMapping)`
    `static <A,B,C,D> QuadConstraintCollector<A,B,C,D,?,Long>` | ConstraintCollectors.`sumLong(ToLongQuadFunction<? super A,? super B,? super C,? super D> groupValueMapping)`
    `static <A,B,C,D> QuadConstraintCollector<A,B,C,D,?,Period>` | ConstraintCollectors.`sumPeriod(QuadFunction<? super A,? super B,? super C,? super D,Period> groupValueMapping)`

  - ### Uses of QuadConstraintCollector in org.optaplanner.core.api.score.stream.quad

    Methods in org.optaplanner.core.api.score.stream.quad with parameters of type QuadConstraintCollector
    Modifier and Type | Method and Description
    --- | ---
    `<ResultContainer_,Result_> UniConstraintStream<Result_>` | QuadConstraintStream.`groupBy(QuadConstraintCollector<A,B,C,D,ResultContainer_,Result_> collector)` Convert the `QuadConstraintStream` to a `UniConstraintStream`, containing only a single tuple, the result of applying `QuadConstraintCollector`.
    `<GroupKey_,ResultContainer_,Result_> BiConstraintStream<GroupKey_,Result_>` | QuadConstraintStream.`groupBy(QuadFunction<A,B,C,D,GroupKey_> groupKeyMapping, QuadConstraintCollector<A,B,C,D,ResultContainer_,Result_> collector)` Convert the `QuadConstraintStream` to a `BiConstraintStream`, consisting of unique tuples.
    `<GroupKeyA_,GroupKeyB_,ResultContainer_,Result_> TriConstraintStream<GroupKeyA_,GroupKeyB_,Result_>` | QuadConstraintStream.`groupBy(QuadFunction<A,B,C,D,GroupKeyA_> groupKeyAMapping, QuadFunction<A,B,C,D,GroupKeyB_> groupKeyBMapping, QuadConstraintCollector<A,B,C,D,ResultContainer_,Result_> collector)` Combines the semantics of `QuadConstraintStream.groupBy(QuadFunction, QuadFunction)` and `QuadConstraintStream.groupBy(QuadConstraintCollector)`.
    `<GroupKeyA_,GroupKeyB_,ResultContainerC_,ResultC_,ResultContainerD_,ResultD_> QuadConstraintStream<GroupKeyA_,GroupKeyB_,ResultC_,ResultD_>` | QuadConstraintStream.`groupBy(QuadFunction<A,B,C,D,GroupKeyA_> groupKeyAMapping, QuadFunction<A,B,C,D,GroupKeyB_> groupKeyBMapping, QuadConstraintCollector<A,B,C,D,ResultContainerC_,ResultC_> collectorC, QuadConstraintCollector<A,B,C,D,ResultContainerD_,ResultD_> collectorD)` Combines the semantics of `QuadConstraintStream.groupBy(QuadFunction, QuadFunction)` and `QuadConstraintStream.groupBy(QuadConstraintCollector)`.
    `<GroupKeyA_,GroupKeyB_,ResultContainerC_,ResultC_,ResultContainerD_,ResultD_> QuadConstraintStream<GroupKeyA_,GroupKeyB_,ResultC_,ResultD_>` | QuadConstraintStream.`groupBy(QuadFunction<A,B,C,D,GroupKeyA_> groupKeyAMapping, QuadFunction<A,B,C,D,GroupKeyB_> groupKeyBMapping, QuadConstraintCollector<A,B,C,D,ResultContainerC_,ResultC_> collectorC, QuadConstraintCollector<A,B,C,D,ResultContainerD_,ResultD_> collectorD)` Combines the semantics of `QuadConstraintStream.groupBy(QuadFunction, QuadFunction)` and `QuadConstraintStream.groupBy(QuadConstraintCollector)`.

  - ### Uses of QuadConstraintCollector in org.optaplanner.core.impl.score.stream.drools.bi

    Constructors in org.optaplanner.core.impl.score.stream.drools.bi with parameters of type QuadConstraintCollector
    Constructor and Description
    `DroolsGroupingBiConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D> parent, QuadFunction<A,B,C,D,NewA> groupKeyMapping, QuadConstraintCollector<A,B,C,D,__,NewB> collector)`

  - ### Uses of QuadConstraintCollector in org.optaplanner.core.impl.score.stream.drools.quad

    Methods in org.optaplanner.core.impl.score.stream.drools.quad with parameters of type QuadConstraintCollector
    Modifier and Type | Method and Description
    --- | ---
    `<NewA,__> DroolsUniCondition<NewA,NewA>` | DroolsQuadCondition.`andCollect(QuadConstraintCollector<A,B,C,D,__,NewA> collector)`
    `<NewA,NewB,NewC,__> DroolsTriCondition<NewA,NewB,NewC,TriTuple<NewA,NewB,NewC>>` | DroolsQuadCondition.`andGroupBiWithCollect(QuadFunction<A,B,C,D,NewA> groupKeyAMapping, QuadFunction<A,B,C,D,NewB> groupKeyBMapping, QuadConstraintCollector<A,B,C,D,__,NewC> collector)`
    `<NewA,NewB,NewC,NewD> DroolsQuadCondition<NewA,NewB,NewC,NewD,QuadTuple<NewA,NewB,NewC,NewD>>` | DroolsQuadCondition.`andGroupBiWithCollectBi(QuadFunction<A,B,C,D,NewA> groupKeyAMapping, QuadFunction<A,B,C,D,NewB> groupKeyBMapping, QuadConstraintCollector<A,B,C,D,?,NewC> collectorC, QuadConstraintCollector<A,B,C,D,?,NewD> collectorD)`
    `<NewA,NewB,NewC,NewD> DroolsQuadCondition<NewA,NewB,NewC,NewD,QuadTuple<NewA,NewB,NewC,NewD>>` | DroolsQuadCondition.`andGroupBiWithCollectBi(QuadFunction<A,B,C,D,NewA> groupKeyAMapping, QuadFunction<A,B,C,D,NewB> groupKeyBMapping, QuadConstraintCollector<A,B,C,D,?,NewC> collectorC, QuadConstraintCollector<A,B,C,D,?,NewD> collectorD)`
    `<NewA,NewB,__> DroolsBiCondition<NewA,NewB,BiTuple<NewA,NewB>>` | DroolsQuadCondition.`andGroupWithCollect(QuadFunction<A,B,C,D,NewA> groupKeyMapping, QuadConstraintCollector<A,B,C,D,__,NewB> collector)`
    `<ResultContainer_,Result_> UniConstraintStream<Result_>` | DroolsAbstractQuadConstraintStream.`groupBy(QuadConstraintCollector<A,B,C,D,ResultContainer_,Result_> collector)`
    `<GroupKey_,ResultContainer_,Result_> BiConstraintStream<GroupKey_,Result_>` | DroolsAbstractQuadConstraintStream.`groupBy(QuadFunction<A,B,C,D,GroupKey_> groupKeyMapping, QuadConstraintCollector<A,B,C,D,ResultContainer_,Result_> collector)`
    `<GroupKeyA_,GroupKeyB_,ResultContainer_,Result_> TriConstraintStream<GroupKeyA_,GroupKeyB_,Result_>` | DroolsAbstractQuadConstraintStream.`groupBy(QuadFunction<A,B,C,D,GroupKeyA_> groupKeyAMapping, QuadFunction<A,B,C,D,GroupKeyB_> groupKeyBMapping, QuadConstraintCollector<A,B,C,D,ResultContainer_,Result_> collector)`
    `<GroupKeyA_,GroupKeyB_,ResultContainerC_,ResultC_,ResultContainerD_,ResultD_> QuadConstraintStream<GroupKeyA_,GroupKeyB_,ResultC_,ResultD_>` | DroolsAbstractQuadConstraintStream.`groupBy(QuadFunction<A,B,C,D,GroupKeyA_> groupKeyAMapping, QuadFunction<A,B,C,D,GroupKeyB_> groupKeyBMapping, QuadConstraintCollector<A,B,C,D,ResultContainerC_,ResultC_> collectorC, QuadConstraintCollector<A,B,C,D,ResultContainerD_,ResultD_> collectorD)`
    `<GroupKeyA_,GroupKeyB_,ResultContainerC_,ResultC_,ResultContainerD_,ResultD_> QuadConstraintStream<GroupKeyA_,GroupKeyB_,ResultC_,ResultD_>` | DroolsAbstractQuadConstraintStream.`groupBy(QuadFunction<A,B,C,D,GroupKeyA_> groupKeyAMapping, QuadFunction<A,B,C,D,GroupKeyB_> groupKeyBMapping, QuadConstraintCollector<A,B,C,D,ResultContainerC_,ResultC_> collectorC, QuadConstraintCollector<A,B,C,D,ResultContainerD_,ResultD_> collectorD)`

    Constructors in org.optaplanner.core.impl.score.stream.drools.quad with parameters of type QuadConstraintCollector
    Constructor and Description
    `DroolsGroupingQuadConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D> parent, QuadFunction<A,B,C,D,NewA> groupKeyAMapping, QuadFunction<A,B,C,D,NewB> groupKeyBMapping, QuadConstraintCollector<A,B,C,D,ResultContainerC,NewC> collectorC, QuadConstraintCollector<A,B,C,D,ResultContainerD,NewD> collectorD)`
    `DroolsGroupingQuadConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D> parent, QuadFunction<A,B,C,D,NewA> groupKeyAMapping, QuadFunction<A,B,C,D,NewB> groupKeyBMapping, QuadConstraintCollector<A,B,C,D,ResultContainerC,NewC> collectorC, QuadConstraintCollector<A,B,C,D,ResultContainerD,NewD> collectorD)`
    `DroolsQuadGroupByInvoker(QuadFunction<A,B,C,D,NewA> groupKeyAMapping, QuadFunction<A,B,C,D,NewB> groupKeyBMapping, QuadConstraintCollector<A,B,C,D,?,NewC> collectorC, QuadConstraintCollector<A,B,C,D,?,NewD> collectorD, org.drools.model.Variable<A> aVariable, org.drools.model.Variable<B> bVariable, org.drools.model.Variable<C> cVariable, org.drools.model.Variable<D> dVariable)`
    `DroolsQuadGroupByInvoker(QuadFunction<A,B,C,D,NewA> groupKeyAMapping, QuadFunction<A,B,C,D,NewB> groupKeyBMapping, QuadConstraintCollector<A,B,C,D,?,NewC> collectorC, QuadConstraintCollector<A,B,C,D,?,NewD> collectorD, org.drools.model.Variable<A> aVariable, org.drools.model.Variable<B> bVariable, org.drools.model.Variable<C> cVariable, org.drools.model.Variable<D> dVariable)`
    `DroolsQuadToBiGroupByInvoker(QuadFunction<A,B,C,D,NewA> groupKeyMapping, QuadConstraintCollector<A,B,C,D,?,NewB> collector, org.drools.model.Variable<A> aVariable, org.drools.model.Variable<B> bVariable, org.drools.model.Variable<C> cVariable, org.drools.model.Variable<D> dVariable)`
    `DroolsQuadToTriGroupByInvoker(QuadFunction<A,B,C,D,NewA> groupKeyAMapping, QuadFunction<A,B,C,D,NewB> groupKeyBMapping, QuadConstraintCollector<A,B,C,D,?,NewC> collector, org.drools.model.Variable<A> aVariable, org.drools.model.Variable<B> bVariable, org.drools.model.Variable<C> cVariable, org.drools.model.Variable<D> dVariable)`

  - ### Uses of QuadConstraintCollector in org.optaplanner.core.impl.score.stream.drools.tri

    Constructors in org.optaplanner.core.impl.score.stream.drools.tri with parameters of type QuadConstraintCollector
    Constructor and Description
    `DroolsGroupingTriConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D> parent, QuadFunction<A,B,C,D,NewA> groupKeyAMapping, QuadFunction<A,B,C,D,NewB> groupKeyBMapping, QuadConstraintCollector<A,B,C,D,ResultContainer_,NewC> collector)`

  - ### Uses of QuadConstraintCollector in org.optaplanner.core.impl.score.stream.drools.uni

    Constructors in org.optaplanner.core.impl.score.stream.drools.uni with parameters of type QuadConstraintCollector
    Constructor and Description
    `DroolsGroupingUniConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D> parent, QuadConstraintCollector<A,B,C,D,ResultContainer_,NewA> collector)`

  - ### Uses of QuadConstraintCollector in org.optaplanner.core.impl.score.stream.quad

    Classes in org.optaplanner.core.impl.score.stream.quad that implement QuadConstraintCollector
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DefaultQuadConstraintCollector<A,B,C,D,ResultContainer_,Result_>`

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