Uses of Interface
org.optaplanner.core.api.score.stream.bi.BiConstraintCollector
-
Uses of BiConstraintCollector in org.optaplanner.core.api.score.stream
Modifier and TypeMethodDescriptionstatic <A,
B> BiConstraintCollector<A, B, ?, Double> ConstraintCollectors.average
(ToIntBiFunction<A, B> groupValueMapping) As defined byConstraintCollectors.average(ToIntFunction)
.static <A,
B> BiConstraintCollector<A, B, ?, BigDecimal> ConstraintCollectors.averageBigDecimal
(BiFunction<A, B, BigDecimal> groupValueMapping) As defined byConstraintCollectors.averageBigDecimal(Function)
.static <A,
B> BiConstraintCollector<A, B, ?, BigDecimal> ConstraintCollectors.averageBigInteger
(BiFunction<A, B, BigInteger> groupValueMapping) As defined byConstraintCollectors.averageBigInteger(Function)
.static <A,
B> BiConstraintCollector<A, B, ?, Duration> ConstraintCollectors.averageDuration
(BiFunction<A, B, Duration> groupValueMapping) As defined byConstraintCollectors.average(ToIntFunction)
.static <A,
B> BiConstraintCollector<A, B, ?, Double> ConstraintCollectors.averageLong
(ToLongBiFunction<A, B> groupValueMapping) As defined byConstraintCollectors.average(ToIntFunction)
.static <A,
B, Result_, SubResultContainer1_, SubResultContainer2_, SubResult1_, SubResult2_>
BiConstraintCollector<A,B, ?, Result_> ConstraintCollectors.compose
(BiConstraintCollector<A, B, SubResultContainer1_, SubResult1_> subCollector1, BiConstraintCollector<A, B, SubResultContainer2_, SubResult2_> subCollector2, BiFunction<SubResult1_, SubResult2_, Result_> composeFunction) static <A,
B, Result_, SubResultContainer1_, SubResultContainer2_, SubResultContainer3_, SubResult1_, SubResult2_, SubResult3_>
BiConstraintCollector<A,B, ?, Result_> ConstraintCollectors.compose
(BiConstraintCollector<A, B, SubResultContainer1_, SubResult1_> subCollector1, BiConstraintCollector<A, B, SubResultContainer2_, SubResult2_> subCollector2, BiConstraintCollector<A, B, SubResultContainer3_, SubResult3_> subCollector3, TriFunction<SubResult1_, SubResult2_, SubResult3_, Result_> composeFunction) static <A,
B, Result_, SubResultContainer1_, SubResultContainer2_, SubResultContainer3_, SubResultContainer4_, SubResult1_, SubResult2_, SubResult3_, SubResult4_>
BiConstraintCollector<A,B, ?, Result_> ConstraintCollectors.compose
(BiConstraintCollector<A, B, SubResultContainer1_, SubResult1_> subCollector1, BiConstraintCollector<A, B, SubResultContainer2_, SubResult2_> subCollector2, BiConstraintCollector<A, B, SubResultContainer3_, SubResult3_> subCollector3, BiConstraintCollector<A, B, SubResultContainer4_, SubResult4_> subCollector4, QuadFunction<SubResult1_, SubResult2_, SubResult3_, SubResult4_, Result_> composeFunction) static <A,
B, ResultContainer_, Result_>
BiConstraintCollector<A,B, ResultContainer_, Result_> ConstraintCollectors.conditionally
(BiPredicate<A, B> condition, BiConstraintCollector<A, B, ResultContainer_, Result_> delegate) static <A,
B> BiConstraintCollector<A, B, ?, Integer> ConstraintCollectors.countBi()
As defined byConstraintCollectors.count()
.static <A,
B> BiConstraintCollector<A, B, ?, Integer> ConstraintCollectors.countDistinct
(BiFunction<A, B, ?> groupValueMapping) As defined byConstraintCollectors.countDistinct(Function)
.static <A,
B> BiConstraintCollector<A, B, ?, Long> ConstraintCollectors.countDistinctLong
(BiFunction<A, B, ?> groupValueMapping) As defined byConstraintCollectors.countDistinct(Function)
.static <A,
B> BiConstraintCollector<A, B, ?, Long> ConstraintCollectors.countLongBi()
As defined byConstraintCollectors.count()
.static <A,
B, Mapped extends Comparable<? super Mapped>>
BiConstraintCollector<A,B, ?, Mapped> ConstraintCollectors.max
(BiFunction<A, B, Mapped> groupValueMapping) As defined byConstraintCollectors.max(Function)
.static <A,
B, Mapped>
BiConstraintCollector<A,B, ?, Mapped> ConstraintCollectors.max
(BiFunction<A, B, Mapped> groupValueMapping, Comparator<? super Mapped> comparator) As defined byConstraintCollectors.max(Function)
, only with a customComparator
.static <A,
B, Mapped extends Comparable<? super Mapped>>
BiConstraintCollector<A,B, ?, Mapped> ConstraintCollectors.min
(BiFunction<A, B, Mapped> groupValueMapping) As defined byConstraintCollectors.min(Function)
.static <A,
B, Mapped>
BiConstraintCollector<A,B, ?, Mapped> ConstraintCollectors.min
(BiFunction<A, B, Mapped> groupValueMapping, Comparator<? super Mapped> comparator) As defined byConstraintCollectors.min(Function)
, only with a customComparator
.static <A,
B, Result>
BiConstraintCollector<A,B, ?, Result> ConstraintCollectors.sum
(BiFunction<? super A, ? super B, Result> groupValueMapping, Result zero, BinaryOperator<Result> adder, BinaryOperator<Result> subtractor) As defined byConstraintCollectors.sum(ToIntFunction)
.static <A,
B> BiConstraintCollector<A, B, ?, Integer> ConstraintCollectors.sum
(ToIntBiFunction<? super A, ? super B> groupValueMapping) As defined byConstraintCollectors.sum(ToIntFunction)
.static <A,
B> BiConstraintCollector<A, B, ?, BigDecimal> ConstraintCollectors.sumBigDecimal
(BiFunction<? super A, ? super B, BigDecimal> groupValueMapping) As defined byConstraintCollectors.sum(ToIntFunction)
.static <A,
B> BiConstraintCollector<A, B, ?, BigInteger> ConstraintCollectors.sumBigInteger
(BiFunction<? super A, ? super B, BigInteger> groupValueMapping) As defined byConstraintCollectors.sum(ToIntFunction)
.static <A,
B> BiConstraintCollector<A, B, ?, Duration> ConstraintCollectors.sumDuration
(BiFunction<? super A, ? super B, Duration> groupValueMapping) As defined byConstraintCollectors.sum(ToIntFunction)
.static <A,
B> BiConstraintCollector<A, B, ?, Long> ConstraintCollectors.sumLong
(ToLongBiFunction<? super A, ? super B> groupValueMapping) As defined byConstraintCollectors.sum(ToIntFunction)
.static <A,
B> BiConstraintCollector<A, B, ?, Period> ConstraintCollectors.sumPeriod
(BiFunction<? super A, ? super B, Period> groupValueMapping) As defined byConstraintCollectors.sum(ToIntFunction)
.static <A,
B, Mapped, Result extends Collection<Mapped>>
BiConstraintCollector<A,B, ?, Result> ConstraintCollectors.toCollection
(BiFunction<A, B, Mapped> groupValueMapping, IntFunction<Result> collectionFunction) Deprecated.static <A,
B, Mapped>
BiConstraintCollector<A,B, ?, List<Mapped>> ConstraintCollectors.toList
(BiFunction<A, B, Mapped> groupValueMapping) As defined byConstraintCollectors.toList(Function)
.static <A,
B, Key, Value>
BiConstraintCollector<A,B, ?, Map<Key, Set<Value>>> ConstraintCollectors.toMap
(BiFunction<? super A, ? super B, ? extends Key> keyMapper, BiFunction<? super A, ? super B, ? extends Value> valueMapper) As defined byConstraintCollectors.toMap(Function, Function)
.static <A,
B, Key, Value>
BiConstraintCollector<A,B, ?, Map<Key, Value>> ConstraintCollectors.toMap
(BiFunction<? super A, ? super B, ? extends Key> keyMapper, BiFunction<? super A, ? super B, ? extends Value> valueMapper, BinaryOperator<Value> mergeFunction) static <A,
B, Key, Value, ValueSet extends Set<Value>>
BiConstraintCollector<A,B, ?, Map<Key, ValueSet>> ConstraintCollectors.toMap
(BiFunction<? super A, ? super B, ? extends Key> keyMapper, BiFunction<? super A, ? super B, ? extends Value> valueMapper, IntFunction<ValueSet> valueSetFunction) As defined byConstraintCollectors.toMap(Function, Function, IntFunction)
.static <A,
B, Mapped>
BiConstraintCollector<A,B, ?, Set<Mapped>> ConstraintCollectors.toSet
(BiFunction<A, B, Mapped> groupValueMapping) As defined byConstraintCollectors.toSet(Function)
.static <A,
B, Key extends Comparable<? super Key>, Value>
BiConstraintCollector<A,B, ?, SortedMap<Key, Set<Value>>> ConstraintCollectors.toSortedMap
(BiFunction<? super A, ? super B, ? extends Key> keyMapper, BiFunction<? super A, ? super B, ? extends Value> valueMapper) As defined byConstraintCollectors.toSortedMap(Function, Function)
.static <A,
B, Key extends Comparable<? super Key>, Value>
BiConstraintCollector<A,B, ?, SortedMap<Key, Value>> ConstraintCollectors.toSortedMap
(BiFunction<? super A, ? super B, ? extends Key> keyMapper, BiFunction<? super A, ? super B, ? extends Value> valueMapper, BinaryOperator<Value> mergeFunction) static <A,
B, Key extends Comparable<? super Key>, Value, ValueSet extends Set<Value>>
BiConstraintCollector<A,B, ?, SortedMap<Key, ValueSet>> ConstraintCollectors.toSortedMap
(BiFunction<? super A, ? super B, ? extends Key> keyMapper, BiFunction<? super A, ? super B, ? extends Value> valueMapper, IntFunction<ValueSet> valueSetFunction) static <A,
B, Mapped extends Comparable<? super Mapped>>
BiConstraintCollector<A,B, ?, SortedSet<Mapped>> ConstraintCollectors.toSortedSet
(BiFunction<A, B, Mapped> groupValueMapping) As defined byConstraintCollectors.toSortedSet(Function)
.static <A,
B, Mapped>
BiConstraintCollector<A,B, ?, SortedSet<Mapped>> ConstraintCollectors.toSortedSet
(BiFunction<A, B, Mapped> groupValueMapping, Comparator<? super Mapped> comparator) As defined byConstraintCollectors.toSortedSet(Function, Comparator)
.Modifier and TypeMethodDescriptionstatic <A,
B, Result_, SubResultContainer1_, SubResultContainer2_, SubResult1_, SubResult2_>
BiConstraintCollector<A,B, ?, Result_> ConstraintCollectors.compose
(BiConstraintCollector<A, B, SubResultContainer1_, SubResult1_> subCollector1, BiConstraintCollector<A, B, SubResultContainer2_, SubResult2_> subCollector2, BiFunction<SubResult1_, SubResult2_, Result_> composeFunction) static <A,
B, Result_, SubResultContainer1_, SubResultContainer2_, SubResultContainer3_, SubResult1_, SubResult2_, SubResult3_>
BiConstraintCollector<A,B, ?, Result_> ConstraintCollectors.compose
(BiConstraintCollector<A, B, SubResultContainer1_, SubResult1_> subCollector1, BiConstraintCollector<A, B, SubResultContainer2_, SubResult2_> subCollector2, BiConstraintCollector<A, B, SubResultContainer3_, SubResult3_> subCollector3, TriFunction<SubResult1_, SubResult2_, SubResult3_, Result_> composeFunction) static <A,
B, Result_, SubResultContainer1_, SubResultContainer2_, SubResultContainer3_, SubResultContainer4_, SubResult1_, SubResult2_, SubResult3_, SubResult4_>
BiConstraintCollector<A,B, ?, Result_> ConstraintCollectors.compose
(BiConstraintCollector<A, B, SubResultContainer1_, SubResult1_> subCollector1, BiConstraintCollector<A, B, SubResultContainer2_, SubResult2_> subCollector2, BiConstraintCollector<A, B, SubResultContainer3_, SubResult3_> subCollector3, BiConstraintCollector<A, B, SubResultContainer4_, SubResult4_> subCollector4, QuadFunction<SubResult1_, SubResult2_, SubResult3_, SubResult4_, Result_> composeFunction) static <A,
B, ResultContainer_, Result_>
BiConstraintCollector<A,B, ResultContainer_, Result_> ConstraintCollectors.conditionally
(BiPredicate<A, B> condition, BiConstraintCollector<A, B, ResultContainer_, Result_> delegate) -
Uses of BiConstraintCollector in org.optaplanner.core.api.score.stream.bi
Modifier and TypeMethodDescription<GroupKey_,
ResultContainer_, Result_>
BiConstraintStream<GroupKey_,Result_> BiConstraintStream.groupBy
(BiFunction<A, B, GroupKey_> groupKeyMapping, BiConstraintCollector<A, B, ResultContainer_, Result_> collector) Convert theBiConstraintStream
to a differentBiConstraintStream
, consisting of unique tuples.<GroupKey_,
ResultContainerB_, ResultB_, ResultContainerC_, ResultC_>
TriConstraintStream<GroupKey_,ResultB_, ResultC_> BiConstraintStream.groupBy
(BiFunction<A, B, GroupKey_> groupKeyMapping, BiConstraintCollector<A, B, ResultContainerB_, ResultB_> collectorB, BiConstraintCollector<A, B, ResultContainerC_, ResultC_> collectorC) Convert theBiConstraintStream
to aTriConstraintStream
, consisting of unique tuples with three facts.<GroupKey_,
ResultContainerB_, ResultB_, ResultContainerC_, ResultC_, ResultContainerD_, ResultD_>
QuadConstraintStream<GroupKey_,ResultB_, ResultC_, ResultD_> BiConstraintStream.groupBy
(BiFunction<A, B, GroupKey_> groupKeyMapping, BiConstraintCollector<A, B, ResultContainerB_, ResultB_> collectorB, BiConstraintCollector<A, B, ResultContainerC_, ResultC_> collectorC, BiConstraintCollector<A, B, ResultContainerD_, ResultD_> collectorD) Convert theBiConstraintStream
to aQuadConstraintStream
, consisting of unique tuples with four facts.<GroupKeyA_,
GroupKeyB_, GroupKeyC_, ResultContainerD_, ResultD_>
QuadConstraintStream<GroupKeyA_,GroupKeyB_, GroupKeyC_, ResultD_> BiConstraintStream.groupBy
(BiFunction<A, B, GroupKeyA_> groupKeyAMapping, BiFunction<A, B, GroupKeyB_> groupKeyBMapping, BiFunction<A, B, GroupKeyC_> groupKeyCMapping, BiConstraintCollector<A, B, ResultContainerD_, ResultD_> collectorD) Combines the semantics ofBiConstraintStream.groupBy(BiFunction, BiFunction)
andBiConstraintStream.groupBy(BiConstraintCollector)
.<GroupKeyA_,
GroupKeyB_, ResultContainer_, Result_>
TriConstraintStream<GroupKeyA_,GroupKeyB_, Result_> BiConstraintStream.groupBy
(BiFunction<A, B, GroupKeyA_> groupKeyAMapping, BiFunction<A, B, GroupKeyB_> groupKeyBMapping, BiConstraintCollector<A, B, ResultContainer_, Result_> collector) Combines the semantics ofBiConstraintStream.groupBy(BiFunction, BiFunction)
andBiConstraintStream.groupBy(BiConstraintCollector)
.<GroupKeyA_,
GroupKeyB_, ResultContainerC_, ResultC_, ResultContainerD_, ResultD_>
QuadConstraintStream<GroupKeyA_,GroupKeyB_, ResultC_, ResultD_> BiConstraintStream.groupBy
(BiFunction<A, B, GroupKeyA_> groupKeyAMapping, BiFunction<A, B, GroupKeyB_> groupKeyBMapping, BiConstraintCollector<A, B, ResultContainerC_, ResultC_> collectorC, BiConstraintCollector<A, B, ResultContainerD_, ResultD_> collectorD) Combines the semantics ofBiConstraintStream.groupBy(BiFunction, BiFunction)
andBiConstraintStream.groupBy(BiConstraintCollector)
.<ResultContainer_,
Result_>
UniConstraintStream<Result_>BiConstraintStream.groupBy
(BiConstraintCollector<A, B, ResultContainer_, Result_> collector) Runs all tuples of the stream through a given @BiConstraintCollector
and converts them into a newUniConstraintStream
which only has a single tuple, the result of applyingBiConstraintCollector
.<ResultContainerA_,
ResultA_, ResultContainerB_, ResultB_>
BiConstraintStream<ResultA_,ResultB_> BiConstraintStream.groupBy
(BiConstraintCollector<A, B, ResultContainerA_, ResultA_> collectorA, BiConstraintCollector<A, B, ResultContainerB_, ResultB_> collectorB) Convert theBiConstraintStream
to aBiConstraintStream
, containing only a single tuple, the result of applying twoBiConstraintCollector
s.<ResultContainerA_,
ResultA_, ResultContainerB_, ResultB_, ResultContainerC_, ResultC_>
TriConstraintStream<ResultA_,ResultB_, ResultC_> BiConstraintStream.groupBy
(BiConstraintCollector<A, B, ResultContainerA_, ResultA_> collectorA, BiConstraintCollector<A, B, ResultContainerB_, ResultB_> collectorB, BiConstraintCollector<A, B, ResultContainerC_, ResultC_> collectorC) Convert theBiConstraintStream
to aTriConstraintStream
, containing only a single tuple, the result of applying threeBiConstraintCollector
s.<ResultContainerA_,
ResultA_, ResultContainerB_, ResultB_, ResultContainerC_, ResultC_, ResultContainerD_, ResultD_>
QuadConstraintStream<ResultA_,ResultB_, ResultC_, ResultD_> BiConstraintStream.groupBy
(BiConstraintCollector<A, B, ResultContainerA_, ResultA_> collectorA, BiConstraintCollector<A, B, ResultContainerB_, ResultB_> collectorB, BiConstraintCollector<A, B, ResultContainerC_, ResultC_> collectorC, BiConstraintCollector<A, B, ResultContainerD_, ResultD_> collectorD) Convert theBiConstraintStream
to aQuadConstraintStream
, containing only a single tuple, the result of applying fourBiConstraintCollector
s.
ConstraintCollectors.toList(BiFunction)
,ConstraintCollectors.toSet(BiFunction)
orConstraintCollectors.toSortedSet(BiFunction)