Interface TriConstraintStream<A,B,C>
- Type Parameters:
A- the type of the first fact in the tuple.B- the type of the second fact in the tuple.C- the type of the third fact in the tuple.
- All Superinterfaces:
ConstraintStream
- All Known Subinterfaces:
InnerTriConstraintStream<A,B, C>
- All Known Implementing Classes:
BavetAbstractTriConstraintStream,BavetAftBridgeTriConstraintStream,BavetBiConcatTriConstraintStream,BavetForeBridgeTriConstraintStream,BavetJoinTriConstraintStream,BavetTriConcatTriConstraintStream,BavetUniConcatTriConstraintStream
ConstraintStream that matches three facts.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NonNull TriConstraintStream<A,B, C> complement(@NonNull Class<A> otherClass) As defined bycomplement(Class, Function, Function), where the padding function pads with null.default @NonNull TriConstraintStream<A,B, C> complement(@NonNull Class<A> otherClass, @NonNull Function<A, B> paddingFunctionB, @NonNull Function<A, C> paddingFunctionC) Adds to the stream all instances of a given class which are not yet present in it.default @NonNull TriConstraintStream<A,B, C> concat(@NonNull BiConstraintStream<A, B> otherStream) Returns a newTriConstraintStreamcontaining all the tuples of both thisTriConstraintStreamand the providedBiConstraintStream.@NonNull TriConstraintStream<A,B, C> concat(@NonNull BiConstraintStream<A, B> otherStream, @NonNull BiFunction<A, B, C> paddingFunctionC) Returns a newTriConstraintStreamcontaining all the tuples of both thisTriConstraintStreamand the providedBiConstraintStream.default <D> @NonNull QuadConstraintStream<A,B, C, D> concat(@NonNull QuadConstraintStream<A, B, C, D> otherStream) Returns a newQuadConstraintStreamcontaining all the tuples of both thisTriConstraintStreamand the providedQuadConstraintStream.<D> @NonNull QuadConstraintStream<A,B, C, D> concat(@NonNull QuadConstraintStream<A, B, C, D> otherStream, @NonNull TriFunction<A, B, C, D> paddingFunction) Returns a newQuadConstraintStreamcontaining all the tuples of both thisTriConstraintStreamand the providedQuadConstraintStream.@NonNull TriConstraintStream<A,B, C> concat(@NonNull TriConstraintStream<A, B, C> otherStream) Returns a newTriConstraintStreamcontaining all the tuples of both thisTriConstraintStreamand the providedTriConstraintStream.default @NonNull TriConstraintStream<A,B, C> concat(@NonNull UniConstraintStream<A> otherStream) Returns a newTriConstraintStreamcontaining all the tuples of both thisTriConstraintStreamand the providedUniConstraintStream.@NonNull TriConstraintStream<A,B, C> concat(@NonNull UniConstraintStream<A> otherStream, @NonNull Function<A, B> paddingFunctionB, @NonNull Function<A, C> paddingFunctionC) Returns a newTriConstraintStreamcontaining all the tuples of both thisTriConstraintStreamand the providedUniConstraintStream.@NonNull TriConstraintStream<A,B, C> distinct()<ResultD_> @NonNull QuadConstraintStream<A,B, C, ResultD_> expand(@NonNull TriFunction<A, B, C, ResultD_> mapping) Adds a fact to the end of the tuple, increasing the cardinality of the stream.@NonNull TriConstraintStream<A,B, C> filter(@NonNull TriPredicate<A, B, C> predicate) Exhaustively test each tuple of facts against theTriPredicateand match ifTriPredicate.test(Object, Object, Object)returns true.<ResultC_> @NonNull TriConstraintStream<A,B, ResultC_> flattenLast(@NonNull Function<C, Iterable<ResultC_>> mapping) As defined byBiConstraintStream.flattenLast(Function).<GroupKey_>
@NonNull UniConstraintStream<GroupKey_>groupBy(@NonNull TriFunction<A, B, C, GroupKey_> groupKeyMapping) Convert theTriConstraintStreamto aUniConstraintStream, containing the set of tuples resulting from applying the group key mapping function on all tuples of the original stream.<GroupKey_,ResultContainer_, Result_>
@NonNull BiConstraintStream<GroupKey_,Result_> groupBy(@NonNull TriFunction<A, B, C, GroupKey_> groupKeyMapping, @NonNull TriConstraintCollector<A, B, C, ResultContainer_, Result_> collector) Convert theTriConstraintStreamto aBiConstraintStream, consisting of unique tuples.<GroupKey_,ResultContainerB_, ResultB_, ResultContainerC_, ResultC_>
@NonNull TriConstraintStream<GroupKey_,ResultB_, ResultC_> groupBy(@NonNull TriFunction<A, B, C, GroupKey_> groupKeyMapping, @NonNull TriConstraintCollector<A, B, C, ResultContainerB_, ResultB_> collectorB, @NonNull TriConstraintCollector<A, B, C, ResultContainerC_, ResultC_> collectorC) Convert theTriConstraintStreamto aTriConstraintStream, consisting of unique tuples with three facts.<GroupKey_,ResultContainerB_, ResultB_, ResultContainerC_, ResultC_, ResultContainerD_, ResultD_>
@NonNull QuadConstraintStream<GroupKey_,ResultB_, ResultC_, ResultD_> groupBy(@NonNull TriFunction<A, B, C, GroupKey_> groupKeyMapping, @NonNull TriConstraintCollector<A, B, C, ResultContainerB_, ResultB_> collectorB, @NonNull TriConstraintCollector<A, B, C, ResultContainerC_, ResultC_> collectorC, @NonNull TriConstraintCollector<A, B, C, ResultContainerD_, ResultD_> collectorD) Convert theTriConstraintStreamto aQuadConstraintStream, consisting of unique tuples with four facts.<GroupKeyA_,GroupKeyB_>
@NonNull BiConstraintStream<GroupKeyA_,GroupKeyB_> groupBy(@NonNull TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, @NonNull TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping) Convert theTriConstraintStreamto aBiConstraintStream, consisting of unique tuples.<GroupKeyA_,GroupKeyB_, GroupKeyC_>
@NonNull TriConstraintStream<GroupKeyA_,GroupKeyB_, GroupKeyC_> groupBy(@NonNull TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, @NonNull TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping, @NonNull TriFunction<A, B, C, GroupKeyC_> groupKeyCMapping) Convert theTriConstraintStreamto aTriConstraintStream, consisting of unique tuples with three facts.<GroupKeyA_,GroupKeyB_, GroupKeyC_, GroupKeyD_>
@NonNull QuadConstraintStream<GroupKeyA_,GroupKeyB_, GroupKeyC_, GroupKeyD_> groupBy(@NonNull TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, @NonNull TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping, @NonNull TriFunction<A, B, C, GroupKeyC_> groupKeyCMapping, @NonNull TriFunction<A, B, C, GroupKeyD_> groupKeyDMapping) Convert theTriConstraintStreamto aQuadConstraintStream, consisting of unique tuples with four facts.<GroupKeyA_,GroupKeyB_, GroupKeyC_, ResultContainerD_, ResultD_>
@NonNull QuadConstraintStream<GroupKeyA_,GroupKeyB_, GroupKeyC_, ResultD_> groupBy(@NonNull TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, @NonNull TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping, @NonNull TriFunction<A, B, C, GroupKeyC_> groupKeyCMapping, @NonNull TriConstraintCollector<A, B, C, ResultContainerD_, ResultD_> collectorD) Combines the semantics ofgroupBy(TriFunction, TriFunction)andgroupBy(TriConstraintCollector).<GroupKeyA_,GroupKeyB_, ResultContainer_, Result_>
@NonNull TriConstraintStream<GroupKeyA_,GroupKeyB_, Result_> groupBy(@NonNull TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, @NonNull TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping, @NonNull TriConstraintCollector<A, B, C, ResultContainer_, Result_> collector) Combines the semantics ofgroupBy(TriFunction, TriFunction)andgroupBy(TriConstraintCollector).<GroupKeyA_,GroupKeyB_, ResultContainerC_, ResultC_, ResultContainerD_, ResultD_>
@NonNull QuadConstraintStream<GroupKeyA_,GroupKeyB_, ResultC_, ResultD_> groupBy(@NonNull TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, @NonNull TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping, @NonNull TriConstraintCollector<A, B, C, ResultContainerC_, ResultC_> collectorC, @NonNull TriConstraintCollector<A, B, C, ResultContainerD_, ResultD_> collectorD) Combines the semantics ofgroupBy(TriFunction, TriFunction)andgroupBy(TriConstraintCollector).<ResultContainer_,Result_>
@NonNull UniConstraintStream<Result_>groupBy(@NonNull TriConstraintCollector<A, B, C, ResultContainer_, Result_> collector) Convert theTriConstraintStreamto aUniConstraintStream, containing only a single tuple, the result of applyingTriConstraintCollector.<ResultContainerA_,ResultA_, ResultContainerB_, ResultB_>
@NonNull BiConstraintStream<ResultA_,ResultB_> groupBy(@NonNull TriConstraintCollector<A, B, C, ResultContainerA_, ResultA_> collectorA, @NonNull TriConstraintCollector<A, B, C, ResultContainerB_, ResultB_> collectorB) Convert theTriConstraintStreamto aBiConstraintStream, containing only a single tuple, the result of applying twoTriConstraintCollectors.<ResultContainerA_,ResultA_, ResultContainerB_, ResultB_, ResultContainerC_, ResultC_>
@NonNull TriConstraintStream<ResultA_,ResultB_, ResultC_> groupBy(@NonNull TriConstraintCollector<A, B, C, ResultContainerA_, ResultA_> collectorA, @NonNull TriConstraintCollector<A, B, C, ResultContainerB_, ResultB_> collectorB, @NonNull TriConstraintCollector<A, B, C, ResultContainerC_, ResultC_> collectorC) Convert theTriConstraintStreamto aTriConstraintStream, containing only a single tuple, the result of applying threeTriConstraintCollectors.<ResultContainerA_,ResultA_, ResultContainerB_, ResultB_, ResultContainerC_, ResultC_, ResultContainerD_, ResultD_>
@NonNull QuadConstraintStream<ResultA_,ResultB_, ResultC_, ResultD_> groupBy(@NonNull TriConstraintCollector<A, B, C, ResultContainerA_, ResultA_> collectorA, @NonNull TriConstraintCollector<A, B, C, ResultContainerB_, ResultB_> collectorB, @NonNull TriConstraintCollector<A, B, C, ResultContainerC_, ResultC_> collectorC, @NonNull TriConstraintCollector<A, B, C, ResultContainerD_, ResultD_> collectorD) Convert theTriConstraintStreamto aQuadConstraintStream, containing only a single tuple, the result of applying fourTriConstraintCollectors.default <D> @NonNull TriConstraintStream<A,B, C> ifExists(@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner) Create a newBiConstraintStreamfor every tuple of A, B and C where D exists for which theQuadJoineris true (for the properties it extracts from the facts).<D> @NonNull TriConstraintStream<A,B, C> ifExists(@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D>... joiners) As defined byifExists(UniConstraintStream, QuadJoiner).default <D> @NonNull TriConstraintStream<A,B, C> ifExists(@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2) As defined byifExists(UniConstraintStream, QuadJoiner).default <D> @NonNull TriConstraintStream<A,B, C> ifExists(@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3) As defined byifExists(UniConstraintStream, QuadJoiner).default <D> @NonNull TriConstraintStream<A,B, C> ifExists(@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3, @NonNull QuadJoiner<A, B, C, D> joiner4) As defined byifExists(UniConstraintStream, QuadJoiner).default <D> @NonNull TriConstraintStream<A,B, C> Create a newBiConstraintStreamfor every tuple of A, B and C where D exists for which theQuadJoineris true (for the properties it extracts from the facts).<D> @NonNull TriConstraintStream<A,B, C> As defined byifExists(Class, QuadJoiner).default <D> @NonNull TriConstraintStream<A,B, C> ifExists(@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2) As defined byifExists(Class, QuadJoiner).default <D> @NonNull TriConstraintStream<A,B, C> ifExists(@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3) As defined byifExists(Class, QuadJoiner).default <D> @NonNull TriConstraintStream<A,B, C> ifExists(@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3, @NonNull QuadJoiner<A, B, C, D> joiner4) As defined byifExists(Class, QuadJoiner).default <D> TriConstraintStream<A,B, C> ifExistsIncludingNullVars(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner) Deprecated, for removal: This API element is subject to removal in a future version.default <D> TriConstraintStream<A,B, C> ifExistsIncludingNullVars(Class<D> otherClass, QuadJoiner<A, B, C, D>... joiners) Deprecated, for removal: This API element is subject to removal in a future version.default <D> TriConstraintStream<A,B, C> ifExistsIncludingNullVars(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2) Deprecated, for removal: This API element is subject to removal in a future version.default <D> TriConstraintStream<A,B, C> ifExistsIncludingNullVars(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3) Deprecated, for removal: This API element is subject to removal in a future version.default <D> TriConstraintStream<A,B, C> ifExistsIncludingNullVars(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3, QuadJoiner<A, B, C, D> joiner4) Deprecated, for removal: This API element is subject to removal in a future version.default <D> @NonNull TriConstraintStream<A,B, C> ifExistsIncludingUnassigned(@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner) Create a newBiConstraintStreamfor every tuple of A, B and C where D exists for which theQuadJoineris true (for the properties it extracts from the facts).<D> @NonNull TriConstraintStream<A,B, C> ifExistsIncludingUnassigned(@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D>... joiners) As defined byifExistsIncludingUnassigned(Class, QuadJoiner).default <D> @NonNull TriConstraintStream<A,B, C> ifExistsIncludingUnassigned(@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2) As defined byifExistsIncludingUnassigned(Class, QuadJoiner).default <D> @NonNull TriConstraintStream<A,B, C> ifExistsIncludingUnassigned(@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3) As defined byifExistsIncludingUnassigned(Class, QuadJoiner).default <D> @NonNull TriConstraintStream<A,B, C> ifExistsIncludingUnassigned(@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3, @NonNull QuadJoiner<A, B, C, D> joiner4) As defined byifExistsIncludingUnassigned(Class, QuadJoiner).default <D> @NonNull TriConstraintStream<A,B, C> ifNotExists(@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner) Create a newBiConstraintStreamfor every tuple of A, B and C where D does not exist for which theQuadJoineris true (for the properties it extracts from the facts).<D> @NonNull TriConstraintStream<A,B, C> ifNotExists(@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D>... joiners) As defined byifNotExists(UniConstraintStream, QuadJoiner).default <D> @NonNull TriConstraintStream<A,B, C> ifNotExists(@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2) As defined byifNotExists(UniConstraintStream, QuadJoiner).default <D> @NonNull TriConstraintStream<A,B, C> ifNotExists(@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3) As defined byifNotExists(UniConstraintStream, QuadJoiner).default <D> @NonNull TriConstraintStream<A,B, C> ifNotExists(@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3, @NonNull QuadJoiner<A, B, C, D> joiner4) As defined byifNotExists(UniConstraintStream, QuadJoiner).default <D> @NonNull TriConstraintStream<A,B, C> ifNotExists(@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner) Create a newBiConstraintStreamfor every tuple of A, B and C where D does not exist for which theQuadJoineris true (for the properties it extracts from the facts).<D> @NonNull TriConstraintStream<A,B, C> ifNotExists(@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D>... joiners) As defined byifNotExists(Class, QuadJoiner).default <D> @NonNull TriConstraintStream<A,B, C> ifNotExists(@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2) As defined byifNotExists(Class, QuadJoiner).default <D> @NonNull TriConstraintStream<A,B, C> ifNotExists(@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3) As defined byifNotExists(Class, QuadJoiner).default <D> @NonNull TriConstraintStream<A,B, C> ifNotExists(@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3, @NonNull QuadJoiner<A, B, C, D> joiner4) As defined byifNotExists(Class, QuadJoiner).default <D> TriConstraintStream<A,B, C> ifNotExistsIncludingNullVars(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner) Deprecated, for removal: This API element is subject to removal in a future version.default <D> TriConstraintStream<A,B, C> ifNotExistsIncludingNullVars(Class<D> otherClass, QuadJoiner<A, B, C, D>... joiners) Deprecated, for removal: This API element is subject to removal in a future version.default <D> TriConstraintStream<A,B, C> ifNotExistsIncludingNullVars(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2) Deprecated, for removal: This API element is subject to removal in a future version.default <D> TriConstraintStream<A,B, C> ifNotExistsIncludingNullVars(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3) Deprecated, for removal: This API element is subject to removal in a future version.default <D> TriConstraintStream<A,B, C> ifNotExistsIncludingNullVars(Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3, QuadJoiner<A, B, C, D> joiner4) Deprecated, for removal: This API element is subject to removal in a future version.default <D> @NonNull TriConstraintStream<A,B, C> ifNotExistsIncludingUnassigned(@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner) Create a newBiConstraintStreamfor every tuple of A, B and C where D does not exist for which theQuadJoineris true (for the properties it extracts from the facts).<D> @NonNull TriConstraintStream<A,B, C> ifNotExistsIncludingUnassigned(@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D>... joiners) As defined byifNotExistsIncludingUnassigned(Class, QuadJoiner).default <D> @NonNull TriConstraintStream<A,B, C> ifNotExistsIncludingUnassigned(@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2) As defined byifNotExistsIncludingUnassigned(Class, QuadJoiner).default <D> @NonNull TriConstraintStream<A,B, C> ifNotExistsIncludingUnassigned(@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3) As defined byifNotExistsIncludingUnassigned(Class, QuadJoiner).default <D> @NonNull TriConstraintStream<A,B, C> ifNotExistsIncludingUnassigned(@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3, @NonNull QuadJoiner<A, B, C, D> joiner4) As defined byifNotExistsIncludingUnassigned(Class, QuadJoiner).default <Score_ extends Score<Score_>>
@NonNull TriConstraintBuilder<A,B, C, Score_> impact(@NonNull Score_ constraintWeight) Positively or negatively impacts theScoreby the constraintWeight for each match and returns a builder to apply optional constraint properties.<Score_ extends Score<Score_>>
@NonNull TriConstraintBuilder<A,B, C, Score_> impact(@NonNull Score_ constraintWeight, @NonNull ToIntTriFunction<A, B, C> matchWeigher) Positively or negatively impacts theScoreby constraintWeight multiplied by matchWeight for each match and returns a builder to apply optional constraint properties.default ConstraintDeprecated, for removal: This API element is subject to removal in a future version.Preferimpact(Score, ToIntTriFunction).default Constraintimpact(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Preferimpact(Score, ToIntTriFunction).<Score_ extends Score<Score_>>
@NonNull TriConstraintBuilder<A,B, C, Score_> impactBigDecimal(@NonNull Score_ constraintWeight, @NonNull TriFunction<A, B, C, BigDecimal> matchWeigher) As defined byimpact(Score, ToIntTriFunction), with an impact of typeBigDecimal.default ConstraintimpactBigDecimal(String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintimpactBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default TriConstraintBuilder<A,B, C, ?> Deprecated, for removal: This API element is subject to removal in a future version.Preferimpact(Score)andConstraintWeightOverrides.TriConstraintBuilder<A,B, C, ?> impactConfigurable(ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintimpactConfigurable(String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintimpactConfigurable(String constraintPackage, String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.TriConstraintBuilder<A,B, C, ?> impactConfigurableBigDecimal(TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintimpactConfigurableBigDecimal(String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintimpactConfigurableBigDecimal(String constraintPackage, String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.TriConstraintBuilder<A,B, C, ?> impactConfigurableLong(ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintimpactConfigurableLong(String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintimpactConfigurableLong(String constraintPackage, String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.<Score_ extends Score<Score_>>
@NonNull TriConstraintBuilder<A,B, C, Score_> impactLong(@NonNull Score_ constraintWeight, @NonNull ToLongTriFunction<A, B, C> matchWeigher) As defined byimpact(Score, ToIntTriFunction), with an impact of type long.default ConstraintimpactLong(String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintimpactLong(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default <D> @NonNull QuadConstraintStream<A,B, C, D> join(@NonNull UniConstraintStream<D> otherStream) Create a newQuadConstraintStreamfor every combination of [A, B, C] and D.default <D> @NonNull QuadConstraintStream<A,B, C, D> join(@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner) Create a newQuadConstraintStreamfor every combination of [A, B] and C for which theQuadJoineris true (for the properties it extracts from all facts).<D> @NonNull QuadConstraintStream<A,B, C, D> join(@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D>... joiners) As defined byjoin(Class, QuadJoiner).default <D> @NonNull QuadConstraintStream<A,B, C, D> join(@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2) As defined byjoin(Class, QuadJoiner).default <D> @NonNull QuadConstraintStream<A,B, C, D> join(@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3) As defined byjoin(Class, QuadJoiner).default <D> @NonNull QuadConstraintStream<A,B, C, D> join(@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3, @NonNull QuadJoiner<A, B, C, D> joiner4) As defined byjoin(Class, QuadJoiner).default <D> @NonNull QuadConstraintStream<A,B, C, D> Create a newQuadConstraintStreamfor every combination of [A, B, C] and D.default <D> @NonNull QuadConstraintStream<A,B, C, D> Create a newQuadConstraintStreamfor every combination of [A, B, C] and D for which theQuadJoineris true (for the properties it extracts from all facts).<D> @NonNull QuadConstraintStream<A,B, C, D> As defined byjoin(Class, QuadJoiner).default <D> @NonNull QuadConstraintStream<A,B, C, D> join(@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2) As defined byjoin(Class, QuadJoiner).default <D> @NonNull QuadConstraintStream<A,B, C, D> join(@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3) As defined byjoin(Class, QuadJoiner).default <D> @NonNull QuadConstraintStream<A,B, C, D> join(@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3, @NonNull QuadJoiner<A, B, C, D> joiner4) As defined byjoin(Class, QuadJoiner).<ResultA_> @NonNull UniConstraintStream<ResultA_>map(@NonNull TriFunction<A, B, C, ResultA_> mapping) As defined byUniConstraintStream.map(Function).<ResultA_,ResultB_>
@NonNull BiConstraintStream<ResultA_,ResultB_> map(@NonNull TriFunction<A, B, C, ResultA_> mappingA, @NonNull TriFunction<A, B, C, ResultB_> mappingB) As defined bymap(TriFunction), only resulting inBiConstraintStream.<ResultA_,ResultB_, ResultC_>
@NonNull TriConstraintStream<ResultA_,ResultB_, ResultC_> map(@NonNull TriFunction<A, B, C, ResultA_> mappingA, @NonNull TriFunction<A, B, C, ResultB_> mappingB, @NonNull TriFunction<A, B, C, ResultC_> mappingC) As defined bymap(TriFunction), only resulting inTriConstraintStream.<ResultA_,ResultB_, ResultC_, ResultD_>
@NonNull QuadConstraintStream<ResultA_,ResultB_, ResultC_, ResultD_> map(@NonNull TriFunction<A, B, C, ResultA_> mappingA, @NonNull TriFunction<A, B, C, ResultB_> mappingB, @NonNull TriFunction<A, B, C, ResultC_> mappingC, @NonNull TriFunction<A, B, C, ResultD_> mappingD) As defined bymap(TriFunction), only resulting inQuadConstraintStream.default <Score_ extends Score<Score_>>
@NonNull TriConstraintBuilder<A,B, C, Score_> penalize(@NonNull Score_ constraintWeight) As defined bypenalize(Score, ToIntTriFunction), where the match weight is one (1).<Score_ extends Score<Score_>>
@NonNull TriConstraintBuilder<A,B, C, Score_> penalize(@NonNull Score_ constraintWeight, @NonNull ToIntTriFunction<A, B, C> matchWeigher) Applies a negativeScoreimpact, subtracting the constraintWeight multiplied by the match weight, and returns a builder to apply optional constraint properties.default ConstraintDeprecated, for removal: This API element is subject to removal in a future version.default Constraintpenalize(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default <Score_ extends Score<Score_>>
@NonNull TriConstraintBuilder<A,B, C, Score_> penalizeBigDecimal(@NonNull Score_ constraintWeight) As defined bypenalizeBigDecimal(Score, TriFunction), where the match weight is one (1).<Score_ extends Score<Score_>>
@NonNull TriConstraintBuilder<A,B, C, Score_> penalizeBigDecimal(@NonNull Score_ constraintWeight, @NonNull TriFunction<A, B, C, BigDecimal> matchWeigher) As defined bypenalize(Score, ToIntTriFunction), with a penalty of typeBigDecimal.default ConstraintpenalizeBigDecimal(String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintpenalizeBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default TriConstraintBuilder<A,B, C, ?> Deprecated, for removal: This API element is subject to removal in a future version.Preferpenalize(Score)andConstraintWeightOverrides.TriConstraintBuilder<A,B, C, ?> penalizeConfigurable(ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintpenalizeConfigurable(String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintpenalizeConfigurable(String constraintPackage, String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.TriConstraintBuilder<A,B, C, ?> penalizeConfigurableBigDecimal(TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintpenalizeConfigurableBigDecimal(String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintpenalizeConfigurableBigDecimal(String constraintPackage, String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.TriConstraintBuilder<A,B, C, ?> penalizeConfigurableLong(ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintpenalizeConfigurableLong(String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintpenalizeConfigurableLong(String constraintPackage, String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default <Score_ extends Score<Score_>>
@NonNull TriConstraintBuilder<A,B, C, Score_> penalizeLong(@NonNull Score_ constraintWeight) As defined bypenalizeLong(Score, ToLongTriFunction), where the match weight is one (1).<Score_ extends Score<Score_>>
@NonNull TriConstraintBuilder<A,B, C, Score_> penalizeLong(@NonNull Score_ constraintWeight, @NonNull ToLongTriFunction<A, B, C> matchWeigher) As defined bypenalize(Score, ToIntTriFunction), with a penalty of type long.default ConstraintpenalizeLong(String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintpenalizeLong(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default <Score_ extends Score<Score_>>
@NonNull TriConstraintBuilder<A,B, C, Score_> reward(@NonNull Score_ constraintWeight) As defined byreward(Score, ToIntTriFunction), where the match weight is one (1).<Score_ extends Score<Score_>>
@NonNull TriConstraintBuilder<A,B, C, Score_> reward(@NonNull Score_ constraintWeight, @NonNull ToIntTriFunction<A, B, C> matchWeigher) Applies a positiveScoreimpact, adding the constraintWeight multiplied by the match weight, and returns a builder to apply optional constraint properties.default ConstraintDeprecated, for removal: This API element is subject to removal in a future version.Preferreward(Score, ToIntTriFunction).default Constraintreward(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Preferreward(Score, ToIntTriFunction).<Score_ extends Score<Score_>>
@NonNull TriConstraintBuilder<A,B, C, Score_> rewardBigDecimal(@NonNull Score_ constraintWeight, @NonNull TriFunction<A, B, C, BigDecimal> matchWeigher) As defined byreward(Score, ToIntTriFunction), with a penalty of typeBigDecimal.default ConstraintrewardBigDecimal(String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintrewardBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default TriConstraintBuilder<A,B, C, ?> Deprecated, for removal: This API element is subject to removal in a future version.Preferreward(Score)andConstraintWeightOverrides.TriConstraintBuilder<A,B, C, ?> rewardConfigurable(ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintrewardConfigurable(String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintrewardConfigurable(String constraintPackage, String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.TriConstraintBuilder<A,B, C, ?> rewardConfigurableBigDecimal(TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintrewardConfigurableBigDecimal(String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintrewardConfigurableBigDecimal(String constraintPackage, String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.TriConstraintBuilder<A,B, C, ?> rewardConfigurableLong(ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintrewardConfigurableLong(String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintrewardConfigurableLong(String constraintPackage, String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.<Score_ extends Score<Score_>>
@NonNull TriConstraintBuilder<A,B, C, Score_> rewardLong(@NonNull Score_ constraintWeight, @NonNull ToLongTriFunction<A, B, C> matchWeigher) As defined byreward(Score, ToIntTriFunction), with a penalty of type long.default ConstraintrewardLong(String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintrewardLong(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from interface ai.timefold.solver.core.api.score.stream.ConstraintStream
getConstraintFactory, impact, impact, penalize, penalize, penalizeConfigurable, penalizeConfigurable, reward, reward, rewardConfigurable, rewardConfigurable
-
Method Details
-
filter
Exhaustively test each tuple of facts against theTriPredicateand match ifTriPredicate.test(Object, Object, Object)returns true.Important: This is slower and less scalable than
BiConstraintStream.join(UniConstraintStream, TriJoiner)with a properTriJoinerpredicate (such asJoiners.equal(BiFunction, Function), because the latter applies hashing and/or indexing, so it doesn't create every combination just to filter it out. -
join
default <D> @NonNull QuadConstraintStream<A,B, joinC, D> (@NonNull UniConstraintStream<D> otherStream) Create a newQuadConstraintStreamfor every combination of [A, B, C] and D.Important:
Filteringthis is slower and less scalable than ajoin(UniConstraintStream, QuadJoiner), because it doesn't apply hashing and/or indexing on the properties, so it creates and checks every combination of [A, B] and C.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every combination of [A, B, C] and D
-
join
default <D> @NonNull QuadConstraintStream<A,B, joinC, D> (@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner) Create a newQuadConstraintStreamfor every combination of [A, B] and C for which theQuadJoineris true (for the properties it extracts from all facts).Important: This is faster and more scalable than a
joinfollowed by afilter, because it applies hashing and/or indexing on the properties, so it doesn't create nor checks every combination of [A, B, C] and D.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every combination of [A, B, C] and D for which the
QuadJoineris true
-
join
default <D> @NonNull QuadConstraintStream<A,B, joinC, D> (@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2) As defined byjoin(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every combination of [A, B, C] and D for which all the
joinersare true
-
join
default <D> @NonNull QuadConstraintStream<A,B, joinC, D> (@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3) As defined byjoin(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every combination of [A, B, C] and D for which all the
joinersare true
-
join
default <D> @NonNull QuadConstraintStream<A,B, joinC, D> (@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3, @NonNull QuadJoiner<A, B, C, D> joiner4) As defined byjoin(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every combination of [A, B, C] and D for which all the
joinersare true
-
join
<D> @NonNull QuadConstraintStream<A,B, joinC, D> (@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D>... joiners) As defined byjoin(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.This method causes Unchecked generics array creation for varargs parameter warnings, but we can't fix it with a
SafeVarargsannotation because it's an interface method. Therefore, there are overloaded methods with up to 4QuadJoinerparameters.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every combination of [A, B, C] and D for which all the
joinersare true
-
join
Create a newQuadConstraintStreamfor every combination of [A, B, C] and D.Important:
QuadConstraintStream.filter(QuadPredicate)Filtering} this is slower and less scalable than ajoin(Class, QuadJoiner), because it doesn't apply hashing and/or indexing on the properties, so it creates and checks every combination of [A, B, C] and D.Note that, if a legacy constraint stream uses
ConstraintFactory.from(Class)as opposed toConstraintFactory.forEach(Class), a different range of D may be selected. (SeeConstraintFactory.from(Class)Javadoc.)This method is syntactic sugar for
join(UniConstraintStream).- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every combination of [A, B, C] and D
-
join
default <D> @NonNull QuadConstraintStream<A,B, joinC, D> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner) Create a newQuadConstraintStreamfor every combination of [A, B, C] and D for which theQuadJoineris true (for the properties it extracts from all facts).Important: This is faster and more scalable than a
joinfollowed by afilter, because it applies hashing and/or indexing on the properties, so it doesn't create nor checks every combination of [A, B, C] and D.Note that, if a legacy constraint stream uses
ConstraintFactory.from(Class)as opposed toConstraintFactory.forEach(Class), a different range of D may be selected. (SeeConstraintFactory.from(Class)Javadoc.)This method is syntactic sugar for
join(UniConstraintStream, QuadJoiner).This method has overloaded methods with multiple
QuadJoinerparameters.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every combination of [A, B, C] and D for which the
QuadJoineris true
-
join
default <D> @NonNull QuadConstraintStream<A,B, joinC, D> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2) As defined byjoin(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every combination of [A, B, C] and D for which all the
joinersare true
-
join
default <D> @NonNull QuadConstraintStream<A,B, joinC, D> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3) As defined byjoin(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every combination of [A, B, C] and D for which all the
joinersare true
-
join
default <D> @NonNull QuadConstraintStream<A,B, joinC, D> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3, @NonNull QuadJoiner<A, B, C, D> joiner4) As defined byjoin(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every combination of [A, B, C] and D for which all the
joinersare true
-
join
<D> @NonNull QuadConstraintStream<A,B, joinC, D> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D>... joiners) As defined byjoin(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.This method causes Unchecked generics array creation for varargs parameter warnings, but we can't fix it with a
SafeVarargsannotation because it's an interface method. Therefore, there are overloaded methods with up to 4QuadJoinerparameters.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every combination of [A, B, C] and D for which all the
joinersare true
-
ifExists
default <D> @NonNull TriConstraintStream<A,B, ifExistsC> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner) Create a newBiConstraintStreamfor every tuple of A, B and C where D exists for which theQuadJoineris true (for the properties it extracts from the facts).This method has overloaded methods with multiple
QuadJoinerparameters.Note that, if a legacy constraint stream uses
ConstraintFactory.from(Class)as opposed toConstraintFactory.forEach(Class), a different definition of exists applies. (SeeConstraintFactory.from(Class)Javadoc.)- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D exists for which the
QuadJoineris true
-
ifExists
default <D> @NonNull TriConstraintStream<A,B, ifExistsC> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2) As defined byifExists(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiners are true
-
ifExists
default <D> @NonNull TriConstraintStream<A,B, ifExistsC> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3) As defined byifExists(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiners are true
-
ifExists
default <D> @NonNull TriConstraintStream<A,B, ifExistsC> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3, @NonNull QuadJoiner<A, B, C, D> joiner4) As defined byifExists(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiners are true
-
ifExists
<D> @NonNull TriConstraintStream<A,B, ifExistsC> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D>... joiners) As defined byifExists(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.This method causes Unchecked generics array creation for varargs parameter warnings, but we can't fix it with a
SafeVarargsannotation because it's an interface method. Therefore, there are overloaded methods with up to 4QuadJoinerparameters.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiners are true
-
ifExists
default <D> @NonNull TriConstraintStream<A,B, ifExistsC> (@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner) Create a newBiConstraintStreamfor every tuple of A, B and C where D exists for which theQuadJoineris true (for the properties it extracts from the facts).This method has overloaded methods with multiple
QuadJoinerparameters.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D exists for which the
QuadJoineris true
-
ifExists
default <D> @NonNull TriConstraintStream<A,B, ifExistsC> (@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2) As defined byifExists(UniConstraintStream, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiners are true
-
ifExists
default <D> @NonNull TriConstraintStream<A,B, ifExistsC> (@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3) As defined byifExists(UniConstraintStream, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiners are true
-
ifExists
default <D> @NonNull TriConstraintStream<A,B, ifExistsC> (@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3, @NonNull QuadJoiner<A, B, C, D> joiner4) As defined byifExists(UniConstraintStream, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiners are true
-
ifExists
<D> @NonNull TriConstraintStream<A,B, ifExistsC> (@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D>... joiners) As defined byifExists(UniConstraintStream, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.This method causes Unchecked generics array creation for varargs parameter warnings, but we can't fix it with a
SafeVarargsannotation because it's an interface method. Therefore, there are overloaded methods with up to 4QuadJoinerparameters.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiners are true
-
ifExistsIncludingUnassigned
default <D> @NonNull TriConstraintStream<A,B, ifExistsIncludingUnassignedC> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner) Create a newBiConstraintStreamfor every tuple of A, B and C where D exists for which theQuadJoineris true (for the properties it extracts from the facts). For classes annotated withPlanningEntity, this method also includes entities with null variables, or entities that are not assigned to any list variable.This method has overloaded methods with multiple
QuadJoinerparameters.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D exists for which the
QuadJoineris true
-
ifExistsIncludingUnassigned
default <D> @NonNull TriConstraintStream<A,B, ifExistsIncludingUnassignedC> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2) As defined byifExistsIncludingUnassigned(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiners are true
-
ifExistsIncludingUnassigned
default <D> @NonNull TriConstraintStream<A,B, ifExistsIncludingUnassignedC> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3) As defined byifExistsIncludingUnassigned(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiners are true
-
ifExistsIncludingUnassigned
default <D> @NonNull TriConstraintStream<A,B, ifExistsIncludingUnassignedC> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3, @NonNull QuadJoiner<A, B, C, D> joiner4) As defined byifExistsIncludingUnassigned(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiners are true
-
ifExistsIncludingUnassigned
<D> @NonNull TriConstraintStream<A,B, ifExistsIncludingUnassignedC> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D>... joiners) As defined byifExistsIncludingUnassigned(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.This method causes Unchecked generics array creation for varargs parameter warnings, but we can't fix it with a
SafeVarargsannotation because it's an interface method. Therefore, there are overloaded methods with up to 4QuadJoinerparameters.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D exists for which the
QuadJoiners are true
-
ifNotExists
default <D> @NonNull TriConstraintStream<A,B, ifNotExistsC> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner) Create a newBiConstraintStreamfor every tuple of A, B and C where D does not exist for which theQuadJoineris true (for the properties it extracts from the facts).This method has overloaded methods with multiple
QuadJoinerparameters.Note that, if a legacy constraint stream uses
ConstraintFactory.from(Class)as opposed toConstraintFactory.forEach(Class), a different definition of exists applies. (SeeConstraintFactory.from(Class)Javadoc.)- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoineris true
-
ifNotExists
default <D> @NonNull TriConstraintStream<A,B, ifNotExistsC> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2) As defined byifNotExists(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiners are true
-
ifNotExists
default <D> @NonNull TriConstraintStream<A,B, ifNotExistsC> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3) As defined byifNotExists(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiners are true
-
ifNotExists
default <D> @NonNull TriConstraintStream<A,B, ifNotExistsC> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3, @NonNull QuadJoiner<A, B, C, D> joiner4) As defined byifNotExists(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiners are true
-
ifNotExists
<D> @NonNull TriConstraintStream<A,B, ifNotExistsC> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D>... joiners) As defined byifNotExists(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.This method causes Unchecked generics array creation for varargs parameter warnings, but we can't fix it with a
SafeVarargsannotation because it's an interface method. Therefore, there are overloaded methods with up to 4QuadJoinerparameters.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiners are true
-
ifNotExists
default <D> @NonNull TriConstraintStream<A,B, ifNotExistsC> (@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner) Create a newBiConstraintStreamfor every tuple of A, B and C where D does not exist for which theQuadJoineris true (for the properties it extracts from the facts).This method has overloaded methods with multiple
QuadJoinerparameters.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoineris true
-
ifNotExists
default <D> @NonNull TriConstraintStream<A,B, ifNotExistsC> (@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2) As defined byifNotExists(UniConstraintStream, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiners are true
-
ifNotExists
default <D> @NonNull TriConstraintStream<A,B, ifNotExistsC> (@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3) As defined byifNotExists(UniConstraintStream, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiners are true
-
ifNotExists
default <D> @NonNull TriConstraintStream<A,B, ifNotExistsC> (@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3, @NonNull QuadJoiner<A, B, C, D> joiner4) As defined byifNotExists(UniConstraintStream, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiners are true
-
ifNotExists
<D> @NonNull TriConstraintStream<A,B, ifNotExistsC> (@NonNull UniConstraintStream<D> otherStream, @NonNull QuadJoiner<A, B, C, D>... joiners) As defined byifNotExists(UniConstraintStream, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.This method causes Unchecked generics array creation for varargs parameter warnings, but we can't fix it with a
SafeVarargsannotation because it's an interface method. Therefore, there are overloaded methods with up to 4QuadJoinerparameters.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiners are true
-
ifNotExistsIncludingUnassigned
default <D> @NonNull TriConstraintStream<A,B, ifNotExistsIncludingUnassignedC> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner) Create a newBiConstraintStreamfor every tuple of A, B and C where D does not exist for which theQuadJoineris true (for the properties it extracts from the facts). For classes annotated withPlanningEntity, this method also includes entities with null variables, or entities that are not assigned to any list variable.This method has overloaded methods with multiple
QuadJoinerparameters.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoineris true
-
ifNotExistsIncludingUnassigned
default <D> @NonNull TriConstraintStream<A,B, ifNotExistsIncludingUnassignedC> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2) As defined byifNotExistsIncludingUnassigned(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiners are true
-
ifNotExistsIncludingUnassigned
default <D> @NonNull TriConstraintStream<A,B, ifNotExistsIncludingUnassignedC> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3) As defined byifNotExistsIncludingUnassigned(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiners are true
-
ifNotExistsIncludingUnassigned
default <D> @NonNull TriConstraintStream<A,B, ifNotExistsIncludingUnassignedC> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D> joiner1, @NonNull QuadJoiner<A, B, C, D> joiner2, @NonNull QuadJoiner<A, B, C, D> joiner3, @NonNull QuadJoiner<A, B, C, D> joiner4) As defined byifNotExistsIncludingUnassigned(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiners are true
-
ifNotExistsIncludingUnassigned
<D> @NonNull TriConstraintStream<A,B, ifNotExistsIncludingUnassignedC> (@NonNull Class<D> otherClass, @NonNull QuadJoiner<A, B, C, D>... joiners) As defined byifNotExistsIncludingUnassigned(Class, QuadJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.This method causes Unchecked generics array creation for varargs parameter warnings, but we can't fix it with a
SafeVarargsannotation because it's an interface method. Therefore, there are overloaded methods with up to 4QuadJoinerparameters.- Type Parameters:
D- the type of the fourth matched fact- Returns:
- a stream that matches every tuple of A, B and C where D does not exist for which the
QuadJoiners are true
-
groupBy
<ResultContainer_,Result_> @NonNull UniConstraintStream<Result_> groupBy(@NonNull TriConstraintCollector<A, B, C, ResultContainer_, Result_> collector) Convert theTriConstraintStreamto aUniConstraintStream, containing only a single tuple, the result of applyingTriConstraintCollector.- Type Parameters:
ResultContainer_- the mutable accumulation type (often hidden as an implementation detail)Result_- the type of a fact in the destinationUniConstraintStream's tuple- Parameters:
collector- the collector to perform the grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.
-
groupBy
<ResultContainerA_,ResultA_, @NonNull BiConstraintStream<ResultA_,ResultContainerB_, ResultB_> ResultB_> groupBy(@NonNull TriConstraintCollector<A, B, C, ResultContainerA_, ResultA_> collectorA, @NonNull TriConstraintCollector<A, B, C, ResultContainerB_, ResultB_> collectorB) Convert theTriConstraintStreamto aBiConstraintStream, containing only a single tuple, the result of applying twoTriConstraintCollectors.- Type Parameters:
ResultContainerA_- the mutable accumulation type (often hidden as an implementation detail)ResultA_- the type of the first fact in the destinationBiConstraintStream's tupleResultContainerB_- the mutable accumulation type (often hidden as an implementation detail)ResultB_- the type of the second fact in the destinationBiConstraintStream's tuple- Parameters:
collectorA- the collector to perform the first grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.collectorB- the collector to perform the second grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.
-
groupBy
<ResultContainerA_,ResultA_, @NonNull TriConstraintStream<ResultA_,ResultContainerB_, ResultB_, ResultContainerC_, ResultC_> ResultB_, groupByResultC_> (@NonNull TriConstraintCollector<A, B, C, ResultContainerA_, ResultA_> collectorA, @NonNull TriConstraintCollector<A, B, C, ResultContainerB_, ResultB_> collectorB, @NonNull TriConstraintCollector<A, B, C, ResultContainerC_, ResultC_> collectorC) Convert theTriConstraintStreamto aTriConstraintStream, containing only a single tuple, the result of applying threeTriConstraintCollectors.- Type Parameters:
ResultContainerA_- the mutable accumulation type (often hidden as an implementation detail)ResultA_- the type of the first fact in the destinationTriConstraintStream's tupleResultContainerB_- the mutable accumulation type (often hidden as an implementation detail)ResultB_- the type of the second fact in the destinationTriConstraintStream's tupleResultContainerC_- the mutable accumulation type (often hidden as an implementation detail)ResultC_- the type of the third fact in the destinationTriConstraintStream's tuple- Parameters:
collectorA- the collector to perform the first grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.collectorB- the collector to perform the second grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.collectorC- the collector to perform the third grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.
-
groupBy
<ResultContainerA_,ResultA_, @NonNull QuadConstraintStream<ResultA_,ResultContainerB_, ResultB_, ResultContainerC_, ResultC_, ResultContainerD_, ResultD_> ResultB_, groupByResultC_, ResultD_> (@NonNull TriConstraintCollector<A, B, C, ResultContainerA_, ResultA_> collectorA, @NonNull TriConstraintCollector<A, B, C, ResultContainerB_, ResultB_> collectorB, @NonNull TriConstraintCollector<A, B, C, ResultContainerC_, ResultC_> collectorC, @NonNull TriConstraintCollector<A, B, C, ResultContainerD_, ResultD_> collectorD) Convert theTriConstraintStreamto aQuadConstraintStream, containing only a single tuple, the result of applying fourTriConstraintCollectors.- Type Parameters:
ResultContainerA_- the mutable accumulation type (often hidden as an implementation detail)ResultA_- the type of the first fact in the destinationQuadConstraintStream's tupleResultContainerB_- the mutable accumulation type (often hidden as an implementation detail)ResultB_- the type of the second fact in the destinationQuadConstraintStream's tupleResultContainerC_- the mutable accumulation type (often hidden as an implementation detail)ResultC_- the type of the third fact in the destinationQuadConstraintStream's tupleResultContainerD_- the mutable accumulation type (often hidden as an implementation detail)ResultD_- the type of the fourth fact in the destinationQuadConstraintStream's tuple- Parameters:
collectorA- the collector to perform the first grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.collectorB- the collector to perform the second grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.collectorC- the collector to perform the third grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.collectorD- the collector to perform the fourth grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.
-
groupBy
<GroupKey_> @NonNull UniConstraintStream<GroupKey_> groupBy(@NonNull TriFunction<A, B, C, GroupKey_> groupKeyMapping) Convert theTriConstraintStreamto aUniConstraintStream, containing the set of tuples resulting from applying the group key mapping function on all tuples of the original stream. Neither tuple of the new streamObjects.equals(Object, Object)any other.- Type Parameters:
GroupKey_- the type of a fact in the destinationUniConstraintStream's tuple; must honorthe general contract of hashCode.- Parameters:
groupKeyMapping- mapping function to convert each element in the stream to a different element
-
groupBy
<GroupKey_,ResultContainer_, @NonNull BiConstraintStream<GroupKey_,Result_> Result_> groupBy(@NonNull TriFunction<A, B, C, GroupKey_> groupKeyMapping, @NonNull TriConstraintCollector<A, B, C, ResultContainer_, Result_> collector) Convert theTriConstraintStreamto aBiConstraintStream, consisting of unique tuples.The first fact is the return value of the group key mapping function, applied on the incoming tuple. The second fact is the return value of a given
TriConstraintCollectorapplied on all incoming tuples with the same first fact.- Type Parameters:
GroupKey_- the type of the first fact in the destinationBiConstraintStream's tuple; must honorthe general contract of hashCode.ResultContainer_- the mutable accumulation type (often hidden as an implementation detail)Result_- the type of the second fact in the destinationBiConstraintStream's tuple- Parameters:
groupKeyMapping- function to convert the fact in the original tuple to a different factcollector- the collector to perform the grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.
-
groupBy
<GroupKey_,ResultContainerB_, @NonNull TriConstraintStream<GroupKey_,ResultB_, ResultContainerC_, ResultC_> ResultB_, groupByResultC_> (@NonNull TriFunction<A, B, C, GroupKey_> groupKeyMapping, @NonNull TriConstraintCollector<A, B, C, ResultContainerB_, ResultB_> collectorB, @NonNull TriConstraintCollector<A, B, C, ResultContainerC_, ResultC_> collectorC) Convert theTriConstraintStreamto aTriConstraintStream, consisting of unique tuples with three facts.The first fact is the return value of the group key mapping function, applied on the incoming tuple. The remaining facts are the return value of the respective
TriConstraintCollectorapplied on all incoming tuples with the same first fact.- Type Parameters:
GroupKey_- the type of the first fact in the destinationTriConstraintStream's tuple; must honorthe general contract of hashCode.ResultContainerB_- the mutable accumulation type (often hidden as an implementation detail)ResultB_- the type of the second fact in the destinationTriConstraintStream's tupleResultContainerC_- the mutable accumulation type (often hidden as an implementation detail)ResultC_- the type of the third fact in the destinationTriConstraintStream's tuple- Parameters:
groupKeyMapping- function to convert the fact in the original tuple to a different factcollectorB- the collector to perform the first grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.collectorC- the collector to perform the second grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.
-
groupBy
<GroupKey_,ResultContainerB_, @NonNull QuadConstraintStream<GroupKey_,ResultB_, ResultContainerC_, ResultC_, ResultContainerD_, ResultD_> ResultB_, groupByResultC_, ResultD_> (@NonNull TriFunction<A, B, C, GroupKey_> groupKeyMapping, @NonNull TriConstraintCollector<A, B, C, ResultContainerB_, ResultB_> collectorB, @NonNull TriConstraintCollector<A, B, C, ResultContainerC_, ResultC_> collectorC, @NonNull TriConstraintCollector<A, B, C, ResultContainerD_, ResultD_> collectorD) Convert theTriConstraintStreamto aQuadConstraintStream, consisting of unique tuples with four facts.The first fact is the return value of the group key mapping function, applied on the incoming tuple. The remaining facts are the return value of the respective
TriConstraintCollectorapplied on all incoming tuples with the same first fact.- Type Parameters:
GroupKey_- the type of the first fact in the destinationQuadConstraintStream's tuple; must honorthe general contract of hashCode.ResultContainerB_- the mutable accumulation type (often hidden as an implementation detail)ResultB_- the type of the second fact in the destinationQuadConstraintStream's tupleResultContainerC_- the mutable accumulation type (often hidden as an implementation detail)ResultC_- the type of the third fact in the destinationQuadConstraintStream's tupleResultContainerD_- the mutable accumulation type (often hidden as an implementation detail)ResultD_- the type of the fourth fact in the destinationQuadConstraintStream's tuple- Parameters:
groupKeyMapping- function to convert the fact in the original tuple to a different factcollectorB- the collector to perform the first grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.collectorC- the collector to perform the second grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.collectorD- the collector to perform the third grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.
-
groupBy
<GroupKeyA_,GroupKeyB_> @NonNull BiConstraintStream<GroupKeyA_,GroupKeyB_> groupBy(@NonNull TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, @NonNull TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping) Convert theTriConstraintStreamto aBiConstraintStream, consisting of unique tuples.The first fact is the return value of the first group key mapping function, applied on the incoming tuple. The second fact is the return value of the second group key mapping function, applied on all incoming tuples with the same first fact.
- Type Parameters:
GroupKeyA_- the type of the first fact in the destinationBiConstraintStream's tuple; must honorthe general contract of hashCode.GroupKeyB_- the type of the second fact in the destinationBiConstraintStream's tuple; must honorthe general contract of hashCode.- Parameters:
groupKeyAMapping- function to convert the facts in the original tuple to a new factgroupKeyBMapping- function to convert the facts in the original tuple to another new fact
-
groupBy
<GroupKeyA_,GroupKeyB_, @NonNull TriConstraintStream<GroupKeyA_,ResultContainer_, Result_> GroupKeyB_, groupByResult_> (@NonNull TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, @NonNull TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping, @NonNull TriConstraintCollector<A, B, C, ResultContainer_, Result_> collector) Combines the semantics ofgroupBy(TriFunction, TriFunction)andgroupBy(TriConstraintCollector). That is, the first and second facts in the tuple follow thegroupBy(TriFunction, TriFunction)semantics, and the third fact is the result of applyingTriConstraintCollector.finisher()on all the tuples of the originalUniConstraintStreamthat belong to the group.- Type Parameters:
GroupKeyA_- the type of the first fact in the destinationTriConstraintStream's tuple; must honorthe general contract of hashCode.GroupKeyB_- the type of the second fact in the destinationTriConstraintStream's tuple; must honorthe general contract of hashCode.ResultContainer_- the mutable accumulation type (often hidden as an implementation detail)Result_- the type of the third fact in the destinationTriConstraintStream's tuple- Parameters:
groupKeyAMapping- function to convert the original tuple into a first factgroupKeyBMapping- function to convert the original tuple into a second factcollector- the collector to perform the grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.
-
groupBy
<GroupKeyA_,GroupKeyB_, @NonNull QuadConstraintStream<GroupKeyA_,ResultContainerC_, ResultC_, ResultContainerD_, ResultD_> GroupKeyB_, groupByResultC_, ResultD_> (@NonNull TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, @NonNull TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping, @NonNull TriConstraintCollector<A, B, C, ResultContainerC_, ResultC_> collectorC, @NonNull TriConstraintCollector<A, B, C, ResultContainerD_, ResultD_> collectorD) Combines the semantics ofgroupBy(TriFunction, TriFunction)andgroupBy(TriConstraintCollector). That is, the first and second facts in the tuple follow thegroupBy(TriFunction, TriFunction)semantics. The third fact is the result of applying the firstTriConstraintCollector.finisher()on all the tuples of the originalTriConstraintStreamthat belong to the group. The fourth fact is the result of applying the secondTriConstraintCollector.finisher()on all the tuples of the originalTriConstraintStreamthat belong to the group- Type Parameters:
GroupKeyA_- the type of the first fact in the destinationQuadConstraintStream's tuple; must honorthe general contract of hashCode.GroupKeyB_- the type of the second fact in the destinationQuadConstraintStream's tuple; must honorthe general contract of hashCode.ResultContainerC_- the mutable accumulation type (often hidden as an implementation detail)ResultC_- the type of the third fact in the destinationQuadConstraintStream's tupleResultContainerD_- the mutable accumulation type (often hidden as an implementation detail)ResultD_- the type of the fourth fact in the destinationQuadConstraintStream's tuple- Parameters:
groupKeyAMapping- function to convert the original tuple into a first factgroupKeyBMapping- function to convert the original tuple into a second factcollectorC- the collector to perform the first grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.collectorD- the collector to perform the second grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.
-
groupBy
<GroupKeyA_,GroupKeyB_, @NonNull TriConstraintStream<GroupKeyA_,GroupKeyC_> GroupKeyB_, groupByGroupKeyC_> (@NonNull TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, @NonNull TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping, @NonNull TriFunction<A, B, C, GroupKeyC_> groupKeyCMapping) Convert theTriConstraintStreamto aTriConstraintStream, consisting of unique tuples with three facts.The first fact is the return value of the first group key mapping function, applied on the incoming tuple. The second fact is the return value of the second group key mapping function, applied on all incoming tuples with the same first fact. The third fact is the return value of the third group key mapping function, applied on all incoming tuples with the same first fact.
- Type Parameters:
GroupKeyA_- the type of the first fact in the destinationTriConstraintStream's tuple; must honorthe general contract of hashCode.GroupKeyB_- the type of the second fact in the destinationTriConstraintStream's tuple; must honorthe general contract of hashCode.GroupKeyC_- the type of the third fact in the destinationTriConstraintStream's tuple; must honorthe general contract of hashCode.- Parameters:
groupKeyAMapping- function to convert the original tuple into a first factgroupKeyBMapping- function to convert the original tuple into a second factgroupKeyCMapping- function to convert the original tuple into a third fact
-
groupBy
<GroupKeyA_,GroupKeyB_, @NonNull QuadConstraintStream<GroupKeyA_,GroupKeyC_, ResultContainerD_, ResultD_> GroupKeyB_, groupByGroupKeyC_, ResultD_> (@NonNull TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, @NonNull TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping, @NonNull TriFunction<A, B, C, GroupKeyC_> groupKeyCMapping, @NonNull TriConstraintCollector<A, B, C, ResultContainerD_, ResultD_> collectorD) Combines the semantics ofgroupBy(TriFunction, TriFunction)andgroupBy(TriConstraintCollector). That is, the first three facts in the tuple follow thegroupBy(TriFunction, TriFunction)semantics. The final fact is the result of applying the firstTriConstraintCollector.finisher()on all the tuples of the originalTriConstraintStreamthat belong to the group.- Type Parameters:
GroupKeyA_- the type of the first fact in the destinationQuadConstraintStream's tuple; must honorthe general contract of hashCode.GroupKeyB_- the type of the second fact in the destinationQuadConstraintStream's tuple; must honorthe general contract of hashCode.GroupKeyC_- the type of the third fact in the destinationQuadConstraintStream's tuple; must honorthe general contract of hashCode.ResultContainerD_- the mutable accumulation type (often hidden as an implementation detail)ResultD_- the type of the fourth fact in the destinationQuadConstraintStream's tuple- Parameters:
groupKeyAMapping- function to convert the original tuple into a first factgroupKeyBMapping- function to convert the original tuple into a second factgroupKeyCMapping- function to convert the original tuple into a third factcollectorD- the collector to perform the grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.
-
groupBy
<GroupKeyA_,GroupKeyB_, @NonNull QuadConstraintStream<GroupKeyA_,GroupKeyC_, GroupKeyD_> GroupKeyB_, groupByGroupKeyC_, GroupKeyD_> (@NonNull TriFunction<A, B, C, GroupKeyA_> groupKeyAMapping, @NonNull TriFunction<A, B, C, GroupKeyB_> groupKeyBMapping, @NonNull TriFunction<A, B, C, GroupKeyC_> groupKeyCMapping, @NonNull TriFunction<A, B, C, GroupKeyD_> groupKeyDMapping) Convert theTriConstraintStreamto aQuadConstraintStream, consisting of unique tuples with four facts.The first fact is the return value of the first group key mapping function, applied on the incoming tuple. The second fact is the return value of the second group key mapping function, applied on all incoming tuples with the same first fact. The third fact is the return value of the third group key mapping function, applied on all incoming tuples with the same first fact. The fourth fact is the return value of the fourth group key mapping function, applied on all incoming tuples with the same first fact.
- Type Parameters:
GroupKeyA_- the type of the first fact in the destinationQuadConstraintStream's tuple; must honorthe general contract of hashCode.GroupKeyB_- the type of the second fact in the destinationQuadConstraintStream's tuple; must honorthe general contract of hashCode.GroupKeyC_- the type of the third fact in the destinationQuadConstraintStream's tuple; must honorthe general contract of hashCode.GroupKeyD_- the type of the fourth fact in the destinationQuadConstraintStream's tuple; must honorthe general contract of hashCode.- Parameters:
groupKeyAMapping- function to convert the original tuple into a first factgroupKeyBMapping- function to convert the original tuple into a second factgroupKeyCMapping- function to convert the original tuple into a third factgroupKeyDMapping- function to convert the original tuple into a fourth fact
-
map
As defined byUniConstraintStream.map(Function).- Type Parameters:
ResultA_- the type of the only fact in the resultingUniConstraintStream's tuple- Parameters:
mapping- function to convert the original tuple into the new tuple
-
map
<ResultA_,ResultB_> @NonNull BiConstraintStream<ResultA_,ResultB_> map(@NonNull TriFunction<A, B, C, ResultA_> mappingA, @NonNull TriFunction<A, B, C, ResultB_> mappingB) As defined bymap(TriFunction), only resulting inBiConstraintStream.- Type Parameters:
ResultA_- the type of the first fact in the resultingBiConstraintStream's tupleResultB_- the type of the first fact in the resultingBiConstraintStream's tuple- Parameters:
mappingA- function to convert the original tuple into the first fact of a new tuplemappingB- function to convert the original tuple into the second fact of a new tuple
-
map
<ResultA_,ResultB_, @NonNull TriConstraintStream<ResultA_,ResultC_> ResultB_, mapResultC_> (@NonNull TriFunction<A, B, C, ResultA_> mappingA, @NonNull TriFunction<A, B, C, ResultB_> mappingB, @NonNull TriFunction<A, B, C, ResultC_> mappingC) As defined bymap(TriFunction), only resulting inTriConstraintStream.- Type Parameters:
ResultA_- the type of the first fact in the resultingTriConstraintStream's tupleResultB_- the type of the first fact in the resultingTriConstraintStream's tupleResultC_- the type of the third fact in the resultingTriConstraintStream's tuple- Parameters:
mappingA- function to convert the original tuple into the first fact of a new tuplemappingB- function to convert the original tuple into the second fact of a new tuplemappingC- function to convert the original tuple into the third fact of a new tuple
-
map
<ResultA_,ResultB_, @NonNull QuadConstraintStream<ResultA_,ResultC_, ResultD_> ResultB_, mapResultC_, ResultD_> (@NonNull TriFunction<A, B, C, ResultA_> mappingA, @NonNull TriFunction<A, B, C, ResultB_> mappingB, @NonNull TriFunction<A, B, C, ResultC_> mappingC, @NonNull TriFunction<A, B, C, ResultD_> mappingD) As defined bymap(TriFunction), only resulting inQuadConstraintStream.- Type Parameters:
ResultA_- the type of the first fact in the resultingQuadConstraintStream's tupleResultB_- the type of the first fact in the resultingQuadConstraintStream's tupleResultC_- the type of the third fact in the resultingQuadConstraintStream's tupleResultD_- the type of the third fact in the resultingQuadConstraintStream's tuple- Parameters:
mappingA- function to convert the original tuple into the first fact of a new tuplemappingB- function to convert the original tuple into the second fact of a new tuplemappingC- function to convert the original tuple into the third fact of a new tuplemappingD- function to convert the original tuple into the fourth fact of a new tuple
-
flattenLast
<ResultC_> @NonNull TriConstraintStream<A,B, flattenLastResultC_> (@NonNull Function<C, Iterable<ResultC_>> mapping) As defined byBiConstraintStream.flattenLast(Function).- Type Parameters:
ResultC_- the type of the last fact in the resulting tuples. It is recommended that this type be deeply immutable. Not following this recommendation may lead to hard-to-debug hashing issues down the stream, especially if this value is ever used as a group key.- Parameters:
mapping- function to convert the last fact in the original tuple intoIterable. For performance, returning an implementation ofCollectionis preferred.
-
distinct
@NonNull TriConstraintStream<A,B, distinct()C> Removes duplicate tuples from the stream, according to the tuple's factsequals/hashCodemethods, such that only distinct tuples remain. (No two tuples willequal.)By default, tuples going through a constraint stream are distinct. However, operations such as
map(TriFunction)may create a stream which breaks that promise. By calling this method on such a stream, duplicate copies of the same tuple will be omitted at a performance cost. -
concat
Returns a newTriConstraintStreamcontaining all the tuples of both thisTriConstraintStreamand the providedUniConstraintStream. TheUniConstraintStreamtuples will be padded from the right by null.For instance, if this stream consists of
[(A1, A2, A3), (B1, B2, B3), (C1, C2, C3)]and the other stream consists of[C, D, E],this.concat(other)will consist of[(A1, A2, A3), (B1, B2, B3), (C1, C2, C3), (C, null), (D, null), (E, null)].This operation can be thought of as an or between streams.
-
concat
@NonNull TriConstraintStream<A,B, concatC> (@NonNull UniConstraintStream<A> otherStream, @NonNull Function<A, B> paddingFunctionB, @NonNull Function<A, C> paddingFunctionC) Returns a newTriConstraintStreamcontaining all the tuples of both thisTriConstraintStreamand the providedUniConstraintStream. TheUniConstraintStreamtuples will be padded from the right by the results of the padding functions.For instance, if this stream consists of
[(A1, A2, A3), (B1, B2, B3), (C1, C2, C3)]and the other stream consists of[C, D, E],this.concat(other, a -> null, a -> null)will consist of[(A1, A2, A3), (B1, B2, B3), (C1, C2, C3), (C, null), (D, null), (E, null)].This operation can be thought of as an or between streams.
- Parameters:
paddingFunctionB- function to find the padding for the second factpaddingFunctionC- function to find the padding for the third fact
-
concat
Returns a newTriConstraintStreamcontaining all the tuples of both thisTriConstraintStreamand the providedBiConstraintStream. TheBiConstraintStreamtuples will be padded from the right by null.For instance, if this stream consists of
[(A1, A2, A3), (B1, B2, B3), (C1, C2, C3)]and the other stream consists of[(C1, C2), (D1, D2), (E1, E2)],this.concat(other)will consist of[(A1, A2, A3), (B1, B2, B3), (C1, C2, C3), (C1, C2, null), (D1, D2, null), (E1, E2, null)].This operation can be thought of as an or between streams.
-
concat
@NonNull TriConstraintStream<A,B, concatC> (@NonNull BiConstraintStream<A, B> otherStream, @NonNull BiFunction<A, B, C> paddingFunctionC) Returns a newTriConstraintStreamcontaining all the tuples of both thisTriConstraintStreamand the providedBiConstraintStream. TheBiConstraintStreamtuples will be padded from the right by the result of the padding function.For instance, if this stream consists of
[(A1, A2, A3), (B1, B2, B3), (C1, C2, C3)]and the other stream consists of[(C1, C2), (D1, D2), (E1, E2)],this.concat(other, (a, b) -> null)will consist of[(A1, A2, A3), (B1, B2, B3), (C1, C2, C3), (C1, C2, null), (D1, D2, null), (E1, E2, null)].This operation can be thought of as an or between streams.
- Parameters:
paddingFunctionC- function to find the padding for the third fact
-
concat
Returns a newTriConstraintStreamcontaining all the tuples of both thisTriConstraintStreamand the providedTriConstraintStream. Tuples in both thisTriConstraintStreamand the providedTriConstraintStreamwill appear at least twice.For instance, if this stream consists of
[(A, 1, -1), (B, 2, -2), (C, 3, -3)]and the other stream consists of[(C, 3, -3), (D, 4, -4), (E, 5, -5)],this.concat(other)will consist of[(A, 1, -1), (B, 2, -2), (C, 3, -3), (C, 3, -3), (D, 4, -4), (E, 5, -5)].This operation can be thought of as an or between streams.
-
concat
default <D> @NonNull QuadConstraintStream<A,B, concatC, D> (@NonNull QuadConstraintStream<A, B, C, D> otherStream) Returns a newQuadConstraintStreamcontaining all the tuples of both thisTriConstraintStreamand the providedQuadConstraintStream. TheTriConstraintStreamtuples will be padded from the right by null.For instance, if this stream consists of
[(A1, A2, A3), (B1, B2, B3), (C1, C2, C3)]and the other stream consists of[(C1, C2, C3, C4), (D1, D2, D3, D4), (E1, E2, E3, E4)],this.concat(other)will consist of[(A1, A2, A3, null), (B1, B2, B3, null), (C1, C2, C3, null), (C1, C2, C3, C4), (D1, D2, D3, D4), (E1, E2, E3, E4)].This operation can be thought of as an or between streams.
-
concat
<D> @NonNull QuadConstraintStream<A,B, concatC, D> (@NonNull QuadConstraintStream<A, B, C, D> otherStream, @NonNull TriFunction<A, B, C, D> paddingFunction) Returns a newQuadConstraintStreamcontaining all the tuples of both thisTriConstraintStreamand the providedQuadConstraintStream. TheTriConstraintStreamtuples will be padded from the right by the result of the padding function.For instance, if this stream consists of
[(A1, A2, A3), (B1, B2, B3), (C1, C2, C3)]and the other stream consists of[(C1, C2, C3, C4), (D1, D2, D3, D4), (E1, E2, E3, E4)],this.concat(other, (a, b, c) -> null)will consist of[(A1, A2, A3, null), (B1, B2, B3, null), (C1, C2, C3, null), (C1, C2, C3, C4), (D1, D2, D3, D4), (E1, E2, E3, E4)]. (Assuming that the padding function returns null for the given inputs.)This operation can be thought of as an or between streams.
- Parameters:
paddingFunction- function to find the padding for the fourth fact
-
expand
<ResultD_> @NonNull QuadConstraintStream<A,B, expandC, ResultD_> (@NonNull TriFunction<A, B, C, ResultD_> mapping) Adds a fact to the end of the tuple, increasing the cardinality of the stream. Useful for storing results of expensive computations on the original tuple.Use with caution, as the benefits of caching computation may be outweighed by increased memory allocation rates coming from tuple creation.
- Type Parameters:
ResultD_- type of the final fact of the new tuple- Parameters:
mapping- function to produce the new fact from the original tuple
-
complement
As defined bycomplement(Class, Function, Function), where the padding function pads with null. -
complement
default @NonNull TriConstraintStream<A,B, complementC> (@NonNull Class<A> otherClass, @NonNull Function<A, B> paddingFunctionB, @NonNull Function<A, C> paddingFunctionC) Adds to the stream all instances of a given class which are not yet present in it. These instances must be present in the solution, which means the class needs to be either a planning entity or a problem fact.The instances will be read from the first element of the input tuple. When an output tuple needs to be created for the newly inserted instances, the first element will be the new instance. The rest of the tuple will be padded with the results of the padding functions, applied on the new instance.
- Parameters:
paddingFunctionB- function to find the padding for the second factpaddingFunctionC- function to find the padding for the third fact
-
penalize
default <Score_ extends Score<Score_>> @NonNull TriConstraintBuilder<A,B, penalizeC, Score_> (@NonNull Score_ constraintWeight) As defined bypenalize(Score, ToIntTriFunction), where the match weight is one (1). -
penalizeLong
default <Score_ extends Score<Score_>> @NonNull TriConstraintBuilder<A,B, penalizeLongC, Score_> (@NonNull Score_ constraintWeight) As defined bypenalizeLong(Score, ToLongTriFunction), where the match weight is one (1). -
penalizeBigDecimal
default <Score_ extends Score<Score_>> @NonNull TriConstraintBuilder<A,B, penalizeBigDecimalC, Score_> (@NonNull Score_ constraintWeight) As defined bypenalizeBigDecimal(Score, TriFunction), where the match weight is one (1). -
penalize
<Score_ extends Score<Score_>> @NonNull TriConstraintBuilder<A,B, penalizeC, Score_> (@NonNull Score_ constraintWeight, @NonNull ToIntTriFunction<A, B, C> matchWeigher) Applies a negativeScoreimpact, subtracting the constraintWeight multiplied by the match weight, and returns a builder to apply optional constraint properties.The constraintWeight specified here can be overridden using
ConstraintWeightOverrideson thePlanningSolution-annotated classFor non-int
Scoretypes usepenalizeLong(Score, ToLongTriFunction)orpenalizeBigDecimal(Score, TriFunction)instead.- Parameters:
matchWeigher- the result of this function (matchWeight) is multiplied by the constraintWeight
-
penalizeLong
<Score_ extends Score<Score_>> @NonNull TriConstraintBuilder<A,B, penalizeLongC, Score_> (@NonNull Score_ constraintWeight, @NonNull ToLongTriFunction<A, B, C> matchWeigher) As defined bypenalize(Score, ToIntTriFunction), with a penalty of type long. -
penalizeBigDecimal
<Score_ extends Score<Score_>> @NonNull TriConstraintBuilder<A,B, penalizeBigDecimalC, Score_> (@NonNull Score_ constraintWeight, @NonNull TriFunction<A, B, C, BigDecimal> matchWeigher) As defined bypenalize(Score, ToIntTriFunction), with a penalty of typeBigDecimal. -
penalizeConfigurable
@Deprecated(forRemoval=true, since="1.13.0") default TriConstraintBuilder<A,B, penalizeConfigurable()C, ?> Deprecated, for removal: This API element is subject to removal in a future version.Preferpenalize(Score)andConstraintWeightOverrides.Negatively impacts theScore, subtracting theConstraintWeightfor each match, and returns a builder to apply optional constraint properties.The constraintWeight comes from an
ConstraintWeightannotated member on theConstraintConfiguration, so end users can change the constraint weights dynamically. This constraint may be deactivated if theConstraintWeightis zero.- Returns:
- never null
-
penalizeConfigurable
@Deprecated(forRemoval=true, since="1.13.0") TriConstraintBuilder<A,B, penalizeConfigurableC, ?> (ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Negatively impacts theScore, subtracting theConstraintWeightmultiplied by match weight for each match, and returns a builder to apply optional constraint properties.The constraintWeight comes from an
ConstraintWeightannotated member on theConstraintConfiguration, so end users can change the constraint weights dynamically. This constraint may be deactivated if theConstraintWeightis zero.- Parameters:
matchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalizeConfigurableLong
@Deprecated(forRemoval=true, since="1.13.0") TriConstraintBuilder<A,B, penalizeConfigurableLongC, ?> (ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalizeConfigurable(ToIntTriFunction), with a penalty of type long. -
penalizeConfigurableBigDecimal
@Deprecated(forRemoval=true, since="1.13.0") TriConstraintBuilder<A,B, penalizeConfigurableBigDecimalC, ?> (TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalizeConfigurable(ToIntTriFunction), with a penalty of typeBigDecimal. -
reward
default <Score_ extends Score<Score_>> @NonNull TriConstraintBuilder<A,B, rewardC, Score_> (@NonNull Score_ constraintWeight) As defined byreward(Score, ToIntTriFunction), where the match weight is one (1). -
reward
<Score_ extends Score<Score_>> @NonNull TriConstraintBuilder<A,B, rewardC, Score_> (@NonNull Score_ constraintWeight, @NonNull ToIntTriFunction<A, B, C> matchWeigher) Applies a positiveScoreimpact, adding the constraintWeight multiplied by the match weight, and returns a builder to apply optional constraint properties.The constraintWeight specified here can be overridden using
ConstraintWeightOverrideson thePlanningSolution-annotated classFor non-int
Scoretypes userewardLong(Score, ToLongTriFunction)orrewardBigDecimal(Score, TriFunction)instead.- Parameters:
matchWeigher- the result of this function (matchWeight) is multiplied by the constraintWeight
-
rewardLong
<Score_ extends Score<Score_>> @NonNull TriConstraintBuilder<A,B, rewardLongC, Score_> (@NonNull Score_ constraintWeight, @NonNull ToLongTriFunction<A, B, C> matchWeigher) As defined byreward(Score, ToIntTriFunction), with a penalty of type long. -
rewardBigDecimal
<Score_ extends Score<Score_>> @NonNull TriConstraintBuilder<A,B, rewardBigDecimalC, Score_> (@NonNull Score_ constraintWeight, @NonNull TriFunction<A, B, C, BigDecimal> matchWeigher) As defined byreward(Score, ToIntTriFunction), with a penalty of typeBigDecimal. -
rewardConfigurable
@Deprecated(forRemoval=true, since="1.13.0") default TriConstraintBuilder<A,B, rewardConfigurable()C, ?> Deprecated, for removal: This API element is subject to removal in a future version.Preferreward(Score)andConstraintWeightOverrides.Positively impacts theScore, adding theConstraintWeightfor each match, and returns a builder to apply optional constraint properties.The constraintWeight comes from an
ConstraintWeightannotated member on theConstraintConfiguration, so end users can change the constraint weights dynamically. This constraint may be deactivated if theConstraintWeightis zero.- Returns:
- never null
-
rewardConfigurable
@Deprecated(forRemoval=true, since="1.13.0") TriConstraintBuilder<A,B, rewardConfigurableC, ?> (ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively impacts theScore, adding theConstraintWeightmultiplied by match weight for each match, and returns a builder to apply optional constraint properties.The constraintWeight comes from an
ConstraintWeightannotated member on theConstraintConfiguration, so end users can change the constraint weights dynamically. This constraint may be deactivated if theConstraintWeightis zero.- Parameters:
matchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
rewardConfigurableLong
@Deprecated(forRemoval=true, since="1.13.0") TriConstraintBuilder<A,B, rewardConfigurableLongC, ?> (ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byrewardConfigurable(ToIntTriFunction), with a penalty of type long. -
rewardConfigurableBigDecimal
@Deprecated(forRemoval=true, since="1.13.0") TriConstraintBuilder<A,B, rewardConfigurableBigDecimalC, ?> (TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byrewardConfigurable(ToIntTriFunction), with a penalty of typeBigDecimal. -
impact
default <Score_ extends Score<Score_>> @NonNull TriConstraintBuilder<A,B, impactC, Score_> (@NonNull Score_ constraintWeight) Positively or negatively impacts theScoreby the constraintWeight for each match and returns a builder to apply optional constraint properties.Use
penalize(...)orreward(...)instead, unless this constraint can both have positive and negative weights. -
impact
<Score_ extends Score<Score_>> @NonNull TriConstraintBuilder<A,B, impactC, Score_> (@NonNull Score_ constraintWeight, @NonNull ToIntTriFunction<A, B, C> matchWeigher) Positively or negatively impacts theScoreby constraintWeight multiplied by matchWeight for each match and returns a builder to apply optional constraint properties.The constraintWeight specified here can be overridden using
ConstraintWeightOverrideson thePlanningSolution-annotated classUse
penalize(...)orreward(...)instead, unless this constraint can both have positive and negative weights.- Parameters:
matchWeigher- the result of this function (matchWeight) is multiplied by the constraintWeight
-
impactLong
<Score_ extends Score<Score_>> @NonNull TriConstraintBuilder<A,B, impactLongC, Score_> (@NonNull Score_ constraintWeight, @NonNull ToLongTriFunction<A, B, C> matchWeigher) As defined byimpact(Score, ToIntTriFunction), with an impact of type long. -
impactBigDecimal
<Score_ extends Score<Score_>> @NonNull TriConstraintBuilder<A,B, impactBigDecimalC, Score_> (@NonNull Score_ constraintWeight, @NonNull TriFunction<A, B, C, BigDecimal> matchWeigher) As defined byimpact(Score, ToIntTriFunction), with an impact of typeBigDecimal. -
impactConfigurable
@Deprecated(forRemoval=true, since="1.13.0") default TriConstraintBuilder<A,B, impactConfigurable()C, ?> Deprecated, for removal: This API element is subject to removal in a future version.Preferimpact(Score)andConstraintWeightOverrides.Positively impacts theScoreby theConstraintWeightfor each match, and returns a builder to apply optional constraint properties.The constraintWeight comes from an
ConstraintWeightannotated member on theConstraintConfiguration, so end users can change the constraint weights dynamically. This constraint may be deactivated if theConstraintWeightis zero.- Returns:
- never null
-
impactConfigurable
@Deprecated(forRemoval=true, since="1.13.0") TriConstraintBuilder<A,B, impactConfigurableC, ?> (ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively impacts theScoreby theConstraintWeightmultiplied by match weight for each match, and returns a builder to apply optional constraint properties.The constraintWeight comes from an
ConstraintWeightannotated member on theConstraintConfiguration, so end users can change the constraint weights dynamically. This constraint may be deactivated if theConstraintWeightis zero.- Returns:
- never null
-
impactConfigurableLong
@Deprecated(forRemoval=true, since="1.13.0") TriConstraintBuilder<A,B, impactConfigurableLongC, ?> (ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byimpactConfigurable(ToIntTriFunction), with an impact of type long. -
impactConfigurableBigDecimal
@Deprecated(forRemoval=true, since="1.13.0") TriConstraintBuilder<A,B, impactConfigurableBigDecimalC, ?> (TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byimpactConfigurable(ToIntTriFunction), with an impact of type BigDecimal. -
ifExistsIncludingNullVars
@Deprecated(forRemoval=true, since="1.8.0") default <D> TriConstraintStream<A,B, ifExistsIncludingNullVarsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner) Deprecated, for removal: This API element is subject to removal in a future version. -
ifExistsIncludingNullVars
@Deprecated(forRemoval=true, since="1.8.0") default <D> TriConstraintStream<A,B, ifExistsIncludingNullVarsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2) Deprecated, for removal: This API element is subject to removal in a future version. -
ifExistsIncludingNullVars
@Deprecated(forRemoval=true, since="1.8.0") default <D> TriConstraintStream<A,B, ifExistsIncludingNullVarsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3) Deprecated, for removal: This API element is subject to removal in a future version. -
ifExistsIncludingNullVars
@Deprecated(forRemoval=true, since="1.8.0") default <D> TriConstraintStream<A,B, ifExistsIncludingNullVarsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3, QuadJoiner<A, B, C, D> joiner4) Deprecated, for removal: This API element is subject to removal in a future version. -
ifExistsIncludingNullVars
@Deprecated(forRemoval=true, since="1.8.0") default <D> TriConstraintStream<A,B, ifExistsIncludingNullVarsC> (Class<D> otherClass, QuadJoiner<A, B, C, D>... joiners) Deprecated, for removal: This API element is subject to removal in a future version. -
ifNotExistsIncludingNullVars
@Deprecated(forRemoval=true, since="1.8.0") default <D> TriConstraintStream<A,B, ifNotExistsIncludingNullVarsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner) Deprecated, for removal: This API element is subject to removal in a future version. -
ifNotExistsIncludingNullVars
@Deprecated(forRemoval=true, since="1.8.0") default <D> TriConstraintStream<A,B, ifNotExistsIncludingNullVarsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2) Deprecated, for removal: This API element is subject to removal in a future version. -
ifNotExistsIncludingNullVars
@Deprecated(forRemoval=true, since="1.8.0") default <D> TriConstraintStream<A,B, ifNotExistsIncludingNullVarsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3) Deprecated, for removal: This API element is subject to removal in a future version. -
ifNotExistsIncludingNullVars
@Deprecated(forRemoval=true, since="1.8.0") default <D> TriConstraintStream<A,B, ifNotExistsIncludingNullVarsC> (Class<D> otherClass, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3, QuadJoiner<A, B, C, D> joiner4) Deprecated, for removal: This API element is subject to removal in a future version. -
ifNotExistsIncludingNullVars
@Deprecated(forRemoval=true, since="1.8.0") default <D> TriConstraintStream<A,B, ifNotExistsIncludingNullVarsC> (Class<D> otherClass, QuadJoiner<A, B, C, D>... joiners) Deprecated, for removal: This API element is subject to removal in a future version. -
penalize
@Deprecated(forRemoval=true) default Constraint penalize(String constraintName, Score<?> constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Negatively impact theScore: subtract the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.penalize(String, Score).For non-int
Scoretypes usepenalizeLong(String, Score, ToLongTriFunction)orpenalizeBigDecimal(String, Score, TriFunction)instead.- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationconstraintWeight- never nullmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalize
@Deprecated(forRemoval=true) default Constraint penalize(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalize(String, Score, ToIntTriFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
penalizeLong
@Deprecated(forRemoval=true) default Constraint penalizeLong(String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Negatively impact theScore: subtract the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.penalize(String, Score).- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationconstraintWeight- never nullmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalizeLong
@Deprecated(forRemoval=true) default Constraint penalizeLong(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalizeLong(String, Score, ToLongTriFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
penalizeBigDecimal
@Deprecated(forRemoval=true) default Constraint penalizeBigDecimal(String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Negatively impact theScore: subtract the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.penalize(String, Score).- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationconstraintWeight- never nullmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalizeBigDecimal
@Deprecated(forRemoval=true) default Constraint penalizeBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalizeBigDecimal(String, Score, TriFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
penalizeConfigurable
@Deprecated(forRemoval=true) default Constraint penalizeConfigurable(String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Negatively impact theScore: subtract theConstraintWeightmultiplied by the match weight. Otherwise as defined byConstraintStream.penalizeConfigurable(String).For non-int
Scoretypes usepenalizeConfigurableLong(String, ToLongTriFunction)orpenalizeConfigurableBigDecimal(String, TriFunction)instead.- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalizeConfigurable
@Deprecated(forRemoval=true) default Constraint penalizeConfigurable(String constraintPackage, String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalizeConfigurable(String, ToIntTriFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
penalizeConfigurableLong
@Deprecated(forRemoval=true) default Constraint penalizeConfigurableLong(String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Negatively impact theScore: subtract theConstraintWeightmultiplied by the match weight. Otherwise as defined byConstraintStream.penalizeConfigurable(String).- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalizeConfigurableLong
@Deprecated(forRemoval=true) default Constraint penalizeConfigurableLong(String constraintPackage, String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalizeConfigurableLong(String, ToLongTriFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
penalizeConfigurableBigDecimal
@Deprecated(forRemoval=true) default Constraint penalizeConfigurableBigDecimal(String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Negatively impact theScore: subtract theConstraintWeightmultiplied by the match weight. Otherwise as defined byConstraintStream.penalizeConfigurable(String).- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalizeConfigurableBigDecimal
@Deprecated(forRemoval=true) default Constraint penalizeConfigurableBigDecimal(String constraintPackage, String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalizeConfigurableBigDecimal(String, TriFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
reward
@Deprecated(forRemoval=true) default Constraint reward(String constraintName, Score<?> constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Preferreward(Score, ToIntTriFunction).Positively impact theScore: add the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.reward(String, Score).For non-int
Scoretypes userewardLong(String, Score, ToLongTriFunction)orrewardBigDecimal(String, Score, TriFunction)instead.- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationconstraintWeight- never nullmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
reward
@Deprecated(forRemoval=true) default Constraint reward(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Preferreward(Score, ToIntTriFunction).As defined byreward(String, Score, ToIntTriFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
rewardLong
@Deprecated(forRemoval=true) default Constraint rewardLong(String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively impact theScore: add the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.reward(String, Score).- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationconstraintWeight- never nullmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
rewardLong
@Deprecated(forRemoval=true) default Constraint rewardLong(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byrewardLong(String, Score, ToLongTriFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
rewardBigDecimal
@Deprecated(forRemoval=true) default Constraint rewardBigDecimal(String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively impact theScore: add the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.reward(String, Score).- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationconstraintWeight- never nullmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
rewardBigDecimal
@Deprecated(forRemoval=true) default Constraint rewardBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byrewardBigDecimal(String, Score, TriFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
rewardConfigurable
@Deprecated(forRemoval=true) default Constraint rewardConfigurable(String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively impact theScore: add theConstraintWeightmultiplied by the match weight. Otherwise as defined byConstraintStream.rewardConfigurable(String).For non-int
Scoretypes userewardConfigurableLong(String, ToLongTriFunction)orrewardConfigurableBigDecimal(String, TriFunction)instead.- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
rewardConfigurable
@Deprecated(forRemoval=true) default Constraint rewardConfigurable(String constraintPackage, String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byrewardConfigurable(String, ToIntTriFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
rewardConfigurableLong
@Deprecated(forRemoval=true) default Constraint rewardConfigurableLong(String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively impact theScore: add theConstraintWeightmultiplied by the match weight. Otherwise as defined byConstraintStream.rewardConfigurable(String).- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
rewardConfigurableLong
@Deprecated(forRemoval=true) default Constraint rewardConfigurableLong(String constraintPackage, String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byrewardConfigurableLong(String, ToLongTriFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
rewardConfigurableBigDecimal
@Deprecated(forRemoval=true) default Constraint rewardConfigurableBigDecimal(String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively impact theScore: add theConstraintWeightmultiplied by the match weight. Otherwise as defined byConstraintStream.rewardConfigurable(String).- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
rewardConfigurableBigDecimal
@Deprecated(forRemoval=true) default Constraint rewardConfigurableBigDecimal(String constraintPackage, String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byrewardConfigurableBigDecimal(String, TriFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
impact
@Deprecated(forRemoval=true) default Constraint impact(String constraintName, Score<?> constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Preferimpact(Score, ToIntTriFunction).Positively or negatively impact theScoreby the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.impact(String, Score).Use
penalize(...)orreward(...)instead, unless this constraint can both have positive and negative weights.For non-int
Scoretypes useimpactLong(String, Score, ToLongTriFunction)orimpactBigDecimal(String, Score, TriFunction)instead.- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationconstraintWeight- never nullmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
impact
@Deprecated(forRemoval=true) default Constraint impact(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Preferimpact(Score, ToIntTriFunction).As defined byimpact(String, Score, ToIntTriFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
impactLong
@Deprecated(forRemoval=true) default Constraint impactLong(String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively or negatively impact theScoreby the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.impact(String, Score).Use
penalizeLong(...)orrewardLong(...)instead, unless this constraint can both have positive and negative weights.- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationconstraintWeight- never nullmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
impactLong
@Deprecated(forRemoval=true) default Constraint impactLong(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byimpactLong(String, Score, ToLongTriFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
impactBigDecimal
@Deprecated(forRemoval=true) default Constraint impactBigDecimal(String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively or negatively impact theScoreby the constraintWeight multiplied by the match weight. Otherwise as defined byConstraintStream.impact(String, Score).Use
penalizeBigDecimal(...)orrewardBigDecimal(...)unless you intend to mix positive and negative weights.- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationconstraintWeight- never nullmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
impactBigDecimal
@Deprecated(forRemoval=true) default Constraint impactBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byimpactBigDecimal(String, Score, TriFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
impactConfigurable
@Deprecated(forRemoval=true) default Constraint impactConfigurable(String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively or negatively impact theScoreby theConstraintWeightfor each match.Use
penalizeConfigurable(...)orrewardConfigurable(...)instead, unless this constraint can both have positive and negative weights.For non-int
Scoretypes useimpactConfigurableLong(String, ToLongTriFunction)orimpactConfigurableBigDecimal(String, TriFunction)instead.The constraintWeight comes from an
ConstraintWeightannotated member on theConstraintConfiguration, so end users can change the constraint weights dynamically. This constraint may be deactivated if theConstraintWeightis zero.The
constraint packagedefaults toConstraintConfiguration.constraintPackage().- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
impactConfigurable
@Deprecated(forRemoval=true) default Constraint impactConfigurable(String constraintPackage, String constraintName, ToIntTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byimpactConfigurable(String, ToIntTriFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
impactConfigurableLong
@Deprecated(forRemoval=true) default Constraint impactConfigurableLong(String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively or negatively impact theScoreby theConstraintWeightfor each match.Use
penalizeConfigurableLong(...)orrewardConfigurableLong(...)instead, unless this constraint can both have positive and negative weights.The constraintWeight comes from an
ConstraintWeightannotated member on theConstraintConfiguration, so end users can change the constraint weights dynamically. This constraint may be deactivated if theConstraintWeightis zero.The
constraint packagedefaults toConstraintConfiguration.constraintPackage().- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
impactConfigurableLong
@Deprecated(forRemoval=true) default Constraint impactConfigurableLong(String constraintPackage, String constraintName, ToLongTriFunction<A, B, C> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byimpactConfigurableLong(String, ToLongTriFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
impactConfigurableBigDecimal
@Deprecated(forRemoval=true) default Constraint impactConfigurableBigDecimal(String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Positively or negatively impact theScoreby theConstraintWeightfor each match.Use
penalizeConfigurableBigDecimal(...)orrewardConfigurableLong(...)instead, unless this constraint can both have positive and negative weights.The constraintWeight comes from an
ConstraintWeightannotated member on theConstraintConfiguration, so end users can change the constraint weights dynamically. This constraint may be deactivated if theConstraintWeightis zero.The
constraint packagedefaults toConstraintConfiguration.constraintPackage().- Parameters:
constraintName- never null, shows up inConstraintMatchTotalduring score justificationmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
impactConfigurableBigDecimal
@Deprecated(forRemoval=true) default Constraint impactConfigurableBigDecimal(String constraintPackage, String constraintName, TriFunction<A, B, C, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byimpactConfigurableBigDecimal(String, TriFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
ifExistsIncludingUnassigned(Class, QuadJoiner).