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

- Packages that use QuadConstraintCollector
  Package | Description
  --- | ---
  org.optaplanner.core.api.score.stream |
  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.common |
  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 | Description
    --- | --- | ---
    `static <A,​B,​C,​D> QuadConstraintCollector<A,​B,​C,​D,​?,​Integer>` | ConstraintCollectors.`countDistinct​(QuadFunction<A,​B,​C,​D,​?> groupValueMapping)` | As defined by `ConstraintCollectors.countDistinct(Function)`.
    `static <A,​B,​C,​D> QuadConstraintCollector<A,​B,​C,​D,​?,​Long>` | ConstraintCollectors.`countDistinctLong​(QuadFunction<A,​B,​C,​D,​?> groupValueMapping)` | As defined by `ConstraintCollectors.countDistinct(Function)`.
    `static <A,​B,​C,​D> QuadConstraintCollector<A,​B,​C,​D,​?,​Long>` | ConstraintCollectors.`countLongQuad()` | As defined by `ConstraintCollectors.count()`.
    `static <A,​B,​C,​D> QuadConstraintCollector<A,​B,​C,​D,​?,​Integer>` | ConstraintCollectors.`countQuad()` | As defined by `ConstraintCollectors.count()`.
    `static <A,​B,​C,​D,​Mapped extends Comparable<Mapped>> QuadConstraintCollector<A,​B,​C,​D,​?,​Mapped>` | ConstraintCollectors.`max​(QuadFunction<A,​B,​C,​D,​Mapped> groupValueMapping)` | As defined by `ConstraintCollectors.max(Function)`.
    `static <A,​B,​C,​D,​Mapped> QuadConstraintCollector<A,​B,​C,​D,​?,​Mapped>` | ConstraintCollectors.`max​(QuadFunction<A,​B,​C,​D,​Mapped> groupValueMapping, Comparator<Mapped> comparator)` | As defined by `ConstraintCollectors.max(Function)`, only with a custom `Comparator`.
    `static <A,​B,​C,​D,​Mapped extends Comparable<Mapped>> QuadConstraintCollector<A,​B,​C,​D,​?,​Mapped>` | ConstraintCollectors.`min​(QuadFunction<A,​B,​C,​D,​Mapped> groupValueMapping)` | As defined by `ConstraintCollectors.min(Function)`.
    `static <A,​B,​C,​D,​Mapped> QuadConstraintCollector<A,​B,​C,​D,​?,​Mapped>` | ConstraintCollectors.`min​(QuadFunction<A,​B,​C,​D,​Mapped> groupValueMapping, Comparator<Mapped> comparator)` | As defined by `ConstraintCollectors.min(Function)`, only with a custom `Comparator`.
    `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)` | As defined by `ConstraintCollectors.sum(ToIntFunction)`.
    `static <A,​B,​C,​D> QuadConstraintCollector<A,​B,​C,​D,​?,​Integer>` | ConstraintCollectors.`sum​(ToIntQuadFunction<? super A,​? super B,​? super C,​? super D> groupValueMapping)` | As defined by `ConstraintCollectors.sum(ToIntFunction)`.
    `static <A,​B,​C,​D> QuadConstraintCollector<A,​B,​C,​D,​?,​BigDecimal>` | ConstraintCollectors.`sumBigDecimal​(QuadFunction<? super A,​? super B,​? super C,​? super D,​BigDecimal> groupValueMapping)` | As defined by `ConstraintCollectors.sum(ToIntFunction)`.
    `static <A,​B,​C,​D> QuadConstraintCollector<A,​B,​C,​D,​?,​BigInteger>` | ConstraintCollectors.`sumBigInteger​(QuadFunction<? super A,​? super B,​? super C,​? super D,​BigInteger> groupValueMapping)` | As defined by `ConstraintCollectors.sum(ToIntFunction)`.
    `static <A,​B,​C,​D> QuadConstraintCollector<A,​B,​C,​D,​?,​Duration>` | ConstraintCollectors.`sumDuration​(QuadFunction<? super A,​? super B,​? super C,​? super D,​Duration> groupValueMapping)` | As defined by `ConstraintCollectors.sum(ToIntFunction)`.
    `static <A,​B,​C,​D> QuadConstraintCollector<A,​B,​C,​D,​?,​Long>` | ConstraintCollectors.`sumLong​(ToLongQuadFunction<? super A,​? super B,​? super C,​? super D> groupValueMapping)` | As defined by `ConstraintCollectors.sum(ToIntFunction)`.
    `static <A,​B,​C,​D> QuadConstraintCollector<A,​B,​C,​D,​?,​Period>` | ConstraintCollectors.`sumPeriod​(QuadFunction<? super A,​? super B,​? super C,​? super D,​Period> groupValueMapping)` | As defined by `ConstraintCollectors.sum(ToIntFunction)`.
    `static <A,​B,​C,​D,​Mapped,​Result extends Collection<Mapped>> QuadConstraintCollector<A,​B,​C,​D,​?,​Result>` | ConstraintCollectors.`toCollection​(QuadFunction<A,​B,​C,​D,​Mapped> groupValueMapping, IntFunction<Result> collectionFunction)` |
    `static <A,​B,​C,​D,​Mapped> QuadConstraintCollector<A,​B,​C,​D,​?,​List<Mapped>>` | ConstraintCollectors.`toList​(QuadFunction<A,​B,​C,​D,​Mapped> groupValueMapping)` | Creates constraint collector that returns `List` of the given element type.
    `static <A,​B,​C,​D,​Key,​Value> QuadConstraintCollector<A,​B,​C,​D,​?,​Map<Key,​Set<Value>>>` | ConstraintCollectors.`toMap​(QuadFunction<? super A,​? super B,​? super C,​? super D,​? extends Key> keyMapper, QuadFunction<? super A,​? super B,​? super C,​? super D,​? extends Value> valueMapper)` | As defined by `ConstraintCollectors.toMap(Function, Function)`.
    `static <A,​B,​C,​D,​Key,​Value> QuadConstraintCollector<A,​B,​C,​D,​?,​Map<Key,​Value>>` | ConstraintCollectors.`toMap​(QuadFunction<? super A,​? super B,​? super C,​? super D,​? extends Key> keyMapper, QuadFunction<? super A,​? super B,​? super C,​? super D,​? extends Value> valueMapper, BinaryOperator<Value> mergeFunction)` | As defined by `ConstraintCollectors.toMap(Function, Function, BinaryOperator)`.
    `static <A,​B,​C,​D,​Key,​Value,​ValueSet extends Set<Value>> QuadConstraintCollector<A,​B,​C,​D,​?,​Map<Key,​ValueSet>>` | ConstraintCollectors.`toMap​(QuadFunction<? super A,​? super B,​? super C,​? super D,​? extends Key> keyMapper, QuadFunction<? super A,​? super B,​? super C,​? super D,​? extends Value> valueMapper, IntFunction<ValueSet> valueSetFunction)` | As defined by `ConstraintCollectors.toMap(Function, Function, IntFunction)`.
    `static <A,​B,​C,​D,​Mapped> QuadConstraintCollector<A,​B,​C,​D,​?,​Set<Mapped>>` | ConstraintCollectors.`toSet​(QuadFunction<A,​B,​C,​D,​Mapped> groupValueMapping)` | As defined by `ConstraintCollectors.toSet(Function)`.
    `static <A,​B,​C,​D,​Key extends Comparable<Key>,​Value> QuadConstraintCollector<A,​B,​C,​D,​?,​SortedMap<Key,​Set<Value>>>` | ConstraintCollectors.`toSortedMap​(QuadFunction<? super A,​? super B,​? super C,​? super D,​? extends Key> keyMapper, QuadFunction<? super A,​? super B,​? super C,​? super D,​? extends Value> valueMapper)` | As defined by `ConstraintCollectors.toSortedMap(Function, Function)`.
    `static <A,​B,​C,​D,​Key extends Comparable<Key>,​Value> QuadConstraintCollector<A,​B,​C,​D,​?,​SortedMap<Key,​Value>>` | ConstraintCollectors.`toSortedMap​(QuadFunction<? super A,​? super B,​? super C,​? super D,​? extends Key> keyMapper, QuadFunction<? super A,​? super B,​? super C,​? super D,​? extends Value> valueMapper, BinaryOperator<Value> mergeFunction)` | As defined by `ConstraintCollectors.toSortedMap(Function, Function, BinaryOperator)`.
    `static <A,​B,​C,​D,​Key extends Comparable<Key>,​Value,​ValueSet extends Set<Value>> QuadConstraintCollector<A,​B,​C,​D,​?,​SortedMap<Key,​ValueSet>>` | ConstraintCollectors.`toSortedMap​(QuadFunction<? super A,​? super B,​? super C,​? super D,​? extends Key> keyMapper, QuadFunction<? super A,​? super B,​? super C,​? super D,​? extends Value> valueMapper, IntFunction<ValueSet> valueSetFunction)` | As defined by `ConstraintCollectors.toSortedMap(Function, Function, IntFunction)`.
    `static <A,​B,​C,​D,​Mapped extends Comparable<Mapped>> QuadConstraintCollector<A,​B,​C,​D,​?,​SortedSet<Mapped>>` | ConstraintCollectors.`toSortedSet​(QuadFunction<A,​B,​C,​D,​Mapped> groupValueMapping)` | As defined by `ConstraintCollectors.toSortedSet(Function)`.

  - ### 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 | Description
    --- | --- | ---
    `<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)`.
    `<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`.

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

    Methods in org.optaplanner.core.impl.score.stream.drools.common with parameters of type QuadConstraintCollector
    Modifier and Type | Method | Description
    --- | --- | ---
    `<NewA,​NewB,​NewC> TriLeftHandSide<NewA,​NewB,​NewC>` | QuadLeftHandSide.`andGroupBy​(QuadFunction<A,​B,​C,​D,​NewA> keyMappingA, QuadFunction<A,​B,​C,​D,​NewB> keyMappingB, QuadConstraintCollector<A,​B,​C,​D,​?,​NewC> collectorC)` |
    `<NewA,​NewB,​NewC,​NewD> QuadLeftHandSide<NewA,​NewB,​NewC,​NewD>` | QuadLeftHandSide.`andGroupBy​(QuadFunction<A,​B,​C,​D,​NewA> keyMappingA, QuadFunction<A,​B,​C,​D,​NewB> keyMappingB, QuadConstraintCollector<A,​B,​C,​D,​?,​NewC> collectorC, QuadConstraintCollector<A,​B,​C,​D,​?,​NewD> collectorD)` |
    `<NewA,​NewB> BiLeftHandSide<NewA,​NewB>` | QuadLeftHandSide.`andGroupBy​(QuadFunction<A,​B,​C,​D,​NewA> keyMappingA, QuadConstraintCollector<A,​B,​C,​D,​?,​NewB> collectorB)` |
    `<NewA> UniLeftHandSide<NewA>` | QuadLeftHandSide.`andGroupBy​(QuadConstraintCollector<A,​B,​C,​D,​?,​NewA> 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 | Description
    --- | --- | ---
    `<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)` |
    `<ResultContainer_,​Result_> UniConstraintStream<Result_>` | DroolsAbstractQuadConstraintStream.`groupBy​(QuadConstraintCollector<A,​B,​C,​D,​ResultContainer_,​Result_> collector)` |

    Constructors in org.optaplanner.core.impl.score.stream.drools.quad with parameters of type QuadConstraintCollector
    Constructor | 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)` |

  - ### 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 | 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 | 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 | Description
    --- | --- | ---
    `class` | `DefaultQuadConstraintCollector<A,​B,​C,​D,​ResultContainer_,​Result_>` |

    Methods in org.optaplanner.core.impl.score.stream.quad that return QuadConstraintCollector
    Modifier and Type | Method | Description
    --- | --- | ---
    `static <A,​B,​C,​D,​Result_> QuadConstraintCollector<A,​B,​C,​D,​?,​Result_>` | DefaultQuadConstraintCollector.`noop()` |