## Uses of Interface
org.optaplanner.core.api.score.stream.uni.UniConstraintCollector

- Packages that use UniConstraintCollector
  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.uni | The `ConstraintStream` API for uni-tuples.
  org.optaplanner.core.impl.score.stream.bavet.uni |
  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.uni |

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

    Methods in org.optaplanner.core.api.score.stream that return UniConstraintCollector
    Modifier and Type | Method and Description
    --- | ---
    `static <A> UniConstraintCollector<A,?,Integer>` | ConstraintCollectors.`count()`
    `static <A> UniConstraintCollector<A,?,Integer>` | ConstraintCollectors.`countDistinct(Function<A,?> groupValueMapping)`
    `static <A> UniConstraintCollector<A,?,Long>` | ConstraintCollectors.`countDistinctLong(Function<A,?> groupValueMapping)`
    `static <A> UniConstraintCollector<A,?,Long>` | ConstraintCollectors.`countLong()`
    `static <A extends Comparable<A>> UniConstraintCollector<A,?,A>` | ConstraintCollectors.`max()`
    `static <A> UniConstraintCollector<A,?,A>` | ConstraintCollectors.`max(Comparator<A> comparator)`
    `static <A extends Comparable<A>> UniConstraintCollector<A,?,A>` | ConstraintCollectors.`min()`
    `static <A> UniConstraintCollector<A,?,A>` | ConstraintCollectors.`min(Comparator<A> comparator)`
    `static <A,Result> UniConstraintCollector<A,?,Result>` | ConstraintCollectors.`sum(Function<? super A,Result> groupValueMapping, Result zero, BinaryOperator<Result> adder, BinaryOperator<Result> subtractor)`
    `static <A> UniConstraintCollector<A,?,Integer>` | ConstraintCollectors.`sum(ToIntFunction<? super A> groupValueMapping)`
    `static <A> UniConstraintCollector<A,?,BigDecimal>` | ConstraintCollectors.`sumBigDecimal(Function<? super A,BigDecimal> groupValueMapping)`
    `static <A> UniConstraintCollector<A,?,BigInteger>` | ConstraintCollectors.`sumBigInteger(Function<? super A,BigInteger> groupValueMapping)`
    `static <A> UniConstraintCollector<A,?,Duration>` | ConstraintCollectors.`sumDuration(Function<? super A,Duration> groupValueMapping)`
    `static <A> UniConstraintCollector<A,?,Long>` | ConstraintCollectors.`sumLong(ToLongFunction<? super A> groupValueMapping)`
    `static <A> UniConstraintCollector<A,?,Period>` | ConstraintCollectors.`sumPeriod(Function<? super A,Period> groupValueMapping)`

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

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

  - ### Uses of UniConstraintCollector in org.optaplanner.core.impl.score.stream.bavet.uni

    Methods in org.optaplanner.core.impl.score.stream.bavet.uni with parameters of type UniConstraintCollector
    Modifier and Type | Method and Description
    --- | ---
    `<GroupKey_,ResultContainer_,Result_> BiConstraintStream<GroupKey_,Result_>` | BavetAbstractUniConstraintStream.`groupBy(Function<A,GroupKey_> groupKeyMapping, UniConstraintCollector<A,ResultContainer_,Result_> collector)`
    `<GroupKeyA_,GroupKeyB_,ResultContainer_,Result_> TriConstraintStream<GroupKeyA_,GroupKeyB_,Result_>` | BavetAbstractUniConstraintStream.`groupBy(Function<A,GroupKeyA_> groupKeyAMapping, Function<A,GroupKeyB_> groupKeyBMapping, UniConstraintCollector<A,ResultContainer_,Result_> collector)`
    `<GroupKeyA_,GroupKeyB_,ResultContainerC_,ResultC_,ResultContainerD_,ResultD_> QuadConstraintStream<GroupKeyA_,GroupKeyB_,ResultC_,ResultD_>` | BavetAbstractUniConstraintStream.`groupBy(Function<A,GroupKeyA_> groupKeyAMapping, Function<A,GroupKeyB_> groupKeyBMapping, UniConstraintCollector<A,ResultContainerC_,ResultC_> collectorC, UniConstraintCollector<A,ResultContainerD_,ResultD_> collectorD)`
    `<GroupKeyA_,GroupKeyB_,ResultContainerC_,ResultC_,ResultContainerD_,ResultD_> QuadConstraintStream<GroupKeyA_,GroupKeyB_,ResultC_,ResultD_>` | BavetAbstractUniConstraintStream.`groupBy(Function<A,GroupKeyA_> groupKeyAMapping, Function<A,GroupKeyB_> groupKeyBMapping, UniConstraintCollector<A,ResultContainerC_,ResultC_> collectorC, UniConstraintCollector<A,ResultContainerD_,ResultD_> collectorD)`
    `<ResultContainer_,Result_> UniConstraintStream<Result_>` | BavetAbstractUniConstraintStream.`groupBy(UniConstraintCollector<A,ResultContainer_,Result_> collector)`

    Constructors in org.optaplanner.core.impl.score.stream.bavet.uni with parameters of type UniConstraintCollector
    Constructor and Description
    `BavetGroupBridgeUniConstraintStream(BavetConstraintFactory<Solution_> constraintFactory, BavetAbstractUniConstraintStream<Solution_,A> parent, Function<A,NewA> groupKeyMapping, UniConstraintCollector<A,ResultContainer_,NewB> collector)`
    `BavetGroupBridgeUniNode(BavetConstraintSession session, int nodeOrder, BavetAbstractUniNode<A> parentNode, Function<A,NewA> groupKeyMapping, UniConstraintCollector<A,ResultContainer_,NewB> collector, BavetGroupBiNode<NewA,ResultContainer_,NewB> groupNode)`

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

    Constructors in org.optaplanner.core.impl.score.stream.drools.bi with parameters of type UniConstraintCollector
    Constructor and Description
    `DroolsGroupingBiConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractUniConstraintStream<Solution_,A> parent, Function<A,NewA> groupKeyMapping, UniConstraintCollector<A,__,NewB> collector)`

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

    Constructors in org.optaplanner.core.impl.score.stream.drools.quad with parameters of type UniConstraintCollector
    Constructor and Description
    `DroolsGroupingQuadConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractUniConstraintStream<Solution_,A> parent, Function<A,NewA> groupKeyAMapping, Function<A,NewB> groupKeyBMapping, UniConstraintCollector<A,ResultContainerC,NewC> collectorC, UniConstraintCollector<A,ResultContainerD,NewD> collectorD)`
    `DroolsGroupingQuadConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractUniConstraintStream<Solution_,A> parent, Function<A,NewA> groupKeyAMapping, Function<A,NewB> groupKeyBMapping, UniConstraintCollector<A,ResultContainerC,NewC> collectorC, UniConstraintCollector<A,ResultContainerD,NewD> collectorD)`

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

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

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

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

    Constructors in org.optaplanner.core.impl.score.stream.drools.uni with parameters of type UniConstraintCollector
    Constructor and Description
    `DroolsGroupingUniConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractUniConstraintStream<Solution_,A> parent, UniConstraintCollector<A,ResultContainer_,NewA> collector)`
    `DroolsUniToBiGroupByInvoker(Function<A,NewA> groupKeyMapping, UniConstraintCollector<A,?,NewB> collector, org.drools.model.Variable<A> aVariable)`
    `DroolsUniToQuadGroupByInvoker(Function<A,NewA> groupKeyAMapping, Function<A,NewB> groupKeyBMapping, UniConstraintCollector<A,?,NewC> collectorC, UniConstraintCollector<A,?,NewD> collectorD, org.drools.model.Variable<A> aVariable)`
    `DroolsUniToQuadGroupByInvoker(Function<A,NewA> groupKeyAMapping, Function<A,NewB> groupKeyBMapping, UniConstraintCollector<A,?,NewC> collectorC, UniConstraintCollector<A,?,NewD> collectorD, org.drools.model.Variable<A> aVariable)`
    `DroolsUniToTriGroupByInvoker(Function<A,NewA> groupKeyAMapping, Function<A,NewB> groupKeyBMapping, UniConstraintCollector<A,?,NewC> collector, org.drools.model.Variable<A> aVariable)`

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

    Classes in org.optaplanner.core.impl.score.stream.uni that implement UniConstraintCollector
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DefaultUniConstraintCollector<A,ResultContainer_,Result_>`

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