Interface QuadConstraintStream<A,B,C,D>
- Type Parameters:
A- the type of the first matched fact (either a problem fact or aplanning entity)B- the type of the second matched fact (either a problem fact or aplanning entity)C- the type of the third matched fact (either a problem fact or aplanning entity)D- the type of the fourth matched fact (either a problem fact or aplanning entity)
- All Superinterfaces:
ConstraintStream
- All Known Subinterfaces:
InnerQuadConstraintStream<A,B, C, D>
- All Known Implementing Classes:
BavetAbstractQuadConstraintStream,BavetAftBridgeQuadConstraintStream,BavetBiConcatQuadConstraintStream,BavetForeBridgeQuadConstraintStream,BavetJoinQuadConstraintStream,BavetQuadConcatQuadConstraintStream,BavetTriConcatQuadConstraintStream,BavetUniConcatQuadConstraintStream
ConstraintStream that matches four facts.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault QuadConstraintStream<A,B, C, D> complement(Class<A> otherClass) As defined bycomplement(Class, Function, Function, Function), where the padding function pads with null.default QuadConstraintStream<A,B, C, D> complement(Class<A> otherClass, Function<A, B> paddingFunctionB, Function<A, C> paddingFunctionC, Function<A, D> paddingFunctionD) Adds to the stream all instances of a given class which are not yet present in it.default QuadConstraintStream<A,B, C, D> concat(BiConstraintStream<A, B> otherStream) Returns a newQuadConstraintStreamcontaining all the tuples of both thisQuadConstraintStreamand the providedBiConstraintStream.concat(BiConstraintStream<A, B> otherStream, BiFunction<A, B, C> paddingFunctionC, BiFunction<A, B, D> paddingFunctionD) Returns a newQuadConstraintStreamcontaining all the tuples of both thisQuadConstraintStreamand the providedBiConstraintStream.Returns a newQuadConstraintStreamcontaining all the tuples of both thisQuadConstraintStreamand the providedQuadConstraintStream.default QuadConstraintStream<A,B, C, D> concat(TriConstraintStream<A, B, C> otherStream) Returns a newQuadConstraintStreamcontaining all the tuples of both thisQuadConstraintStreamand the providedTriConstraintStream.concat(TriConstraintStream<A, B, C> otherStream, TriFunction<A, B, C, D> paddingFunction) Returns a newQuadConstraintStreamcontaining all the tuples of both thisQuadConstraintStreamand the providedTriConstraintStream.default QuadConstraintStream<A,B, C, D> concat(UniConstraintStream<A> otherStream) Returns a newQuadConstraintStreamcontaining all the tuples of both thisQuadConstraintStreamand the providedUniConstraintStream.concat(UniConstraintStream<A> otherStream, Function<A, B> paddingFunctionB, Function<A, C> paddingFunctionC, Function<A, D> paddingFunctionD) Returns a newQuadConstraintStreamcontaining all the tuples of both thisQuadConstraintStreamand the providedUniConstraintStream.distinct()Transforms the stream in such a way that all the tuples going through it are distinct.Exhaustively test each tuple of facts against theQuadPredicateand match ifQuadPredicate.test(Object, Object, Object, Object)returns true.<ResultD_> QuadConstraintStream<A,B, C, ResultD_> flattenLast(Function<D, Iterable<ResultD_>> mapping) As defined byBiConstraintStream.flattenLast(Function).<GroupKey_>
UniConstraintStream<GroupKey_>Convert theQuadConstraintStreamto aUniConstraintStream, containing the set of tuples resulting from applying the group key mapping function on all tuples of the original stream.<GroupKey_,ResultContainer_, Result_>
BiConstraintStream<GroupKey_,Result_> groupBy(QuadFunction<A, B, C, D, GroupKey_> groupKeyMapping, QuadConstraintCollector<A, B, C, D, ResultContainer_, Result_> collector) Convert theQuadConstraintStreamto aBiConstraintStream, consisting of unique tuples.<GroupKey_,ResultContainerB_, ResultB_, ResultContainerC_, ResultC_>
TriConstraintStream<GroupKey_,ResultB_, ResultC_> groupBy(QuadFunction<A, B, C, D, GroupKey_> groupKeyMapping, QuadConstraintCollector<A, B, C, D, ResultContainerB_, ResultB_> collectorB, QuadConstraintCollector<A, B, C, D, ResultContainerC_, ResultC_> collectorC) Convert theQuadConstraintStreamto aTriConstraintStream, consisting of unique tuples with three facts.<GroupKey_,ResultContainerB_, ResultB_, ResultContainerC_, ResultC_, ResultContainerD_, ResultD_>
QuadConstraintStream<GroupKey_,ResultB_, ResultC_, ResultD_> groupBy(QuadFunction<A, B, C, D, GroupKey_> groupKeyMapping, QuadConstraintCollector<A, B, C, D, ResultContainerB_, ResultB_> collectorB, QuadConstraintCollector<A, B, C, D, ResultContainerC_, ResultC_> collectorC, QuadConstraintCollector<A, B, C, D, ResultContainerD_, ResultD_> collectorD) Convert theQuadConstraintStreamto aQuadConstraintStream, consisting of unique tuples with four facts.<GroupKeyA_,GroupKeyB_>
BiConstraintStream<GroupKeyA_,GroupKeyB_> groupBy(QuadFunction<A, B, C, D, GroupKeyA_> groupKeyAMapping, QuadFunction<A, B, C, D, GroupKeyB_> groupKeyBMapping) Convert theQuadConstraintStreamto aBiConstraintStream, consisting of unique tuples.<GroupKeyA_,GroupKeyB_, GroupKeyC_>
TriConstraintStream<GroupKeyA_,GroupKeyB_, GroupKeyC_> groupBy(QuadFunction<A, B, C, D, GroupKeyA_> groupKeyAMapping, QuadFunction<A, B, C, D, GroupKeyB_> groupKeyBMapping, QuadFunction<A, B, C, D, GroupKeyC_> groupKeyCMapping) Convert theQuadConstraintStreamto aTriConstraintStream, consisting of unique tuples with three facts.<GroupKeyA_,GroupKeyB_, GroupKeyC_, GroupKeyD_>
QuadConstraintStream<GroupKeyA_,GroupKeyB_, GroupKeyC_, GroupKeyD_> groupBy(QuadFunction<A, B, C, D, GroupKeyA_> groupKeyAMapping, QuadFunction<A, B, C, D, GroupKeyB_> groupKeyBMapping, QuadFunction<A, B, C, D, GroupKeyC_> groupKeyCMapping, QuadFunction<A, B, C, D, GroupKeyD_> groupKeyDMapping) Convert theTriConstraintStreamto aQuadConstraintStream, consisting of unique tuples with four facts.<GroupKeyA_,GroupKeyB_, GroupKeyC_, ResultContainerD_, ResultD_>
QuadConstraintStream<GroupKeyA_,GroupKeyB_, GroupKeyC_, ResultD_> groupBy(QuadFunction<A, B, C, D, GroupKeyA_> groupKeyAMapping, QuadFunction<A, B, C, D, GroupKeyB_> groupKeyBMapping, QuadFunction<A, B, C, D, GroupKeyC_> groupKeyCMapping, QuadConstraintCollector<A, B, C, D, ResultContainerD_, ResultD_> collectorD) Combines the semantics ofgroupBy(QuadFunction, QuadFunction)andgroupBy(QuadConstraintCollector).<GroupKeyA_,GroupKeyB_, ResultContainer_, Result_>
TriConstraintStream<GroupKeyA_,GroupKeyB_, Result_> groupBy(QuadFunction<A, B, C, D, GroupKeyA_> groupKeyAMapping, QuadFunction<A, B, C, D, GroupKeyB_> groupKeyBMapping, QuadConstraintCollector<A, B, C, D, ResultContainer_, Result_> collector) Combines the semantics ofgroupBy(QuadFunction, QuadFunction)andgroupBy(QuadConstraintCollector).<GroupKeyA_,GroupKeyB_, ResultContainerC_, ResultC_, ResultContainerD_, ResultD_>
QuadConstraintStream<GroupKeyA_,GroupKeyB_, ResultC_, ResultD_> groupBy(QuadFunction<A, B, C, D, GroupKeyA_> groupKeyAMapping, QuadFunction<A, B, C, D, GroupKeyB_> groupKeyBMapping, QuadConstraintCollector<A, B, C, D, ResultContainerC_, ResultC_> collectorC, QuadConstraintCollector<A, B, C, D, ResultContainerD_, ResultD_> collectorD) Combines the semantics ofgroupBy(QuadFunction, QuadFunction)andgroupBy(QuadConstraintCollector).<ResultContainer_,Result_>
UniConstraintStream<Result_>Convert theQuadConstraintStreamto aUniConstraintStream, containing only a single tuple, the result of applyingQuadConstraintCollector.<ResultContainerA_,ResultA_, ResultContainerB_, ResultB_>
BiConstraintStream<ResultA_,ResultB_> groupBy(QuadConstraintCollector<A, B, C, D, ResultContainerA_, ResultA_> collectorA, QuadConstraintCollector<A, B, C, D, ResultContainerB_, ResultB_> collectorB) Convert theQuadConstraintStreamto aBiConstraintStream, containing only a single tuple, the result of applying twoQuadConstraintCollectors.<ResultContainerA_,ResultA_, ResultContainerB_, ResultB_, ResultContainerC_, ResultC_>
TriConstraintStream<ResultA_,ResultB_, ResultC_> groupBy(QuadConstraintCollector<A, B, C, D, ResultContainerA_, ResultA_> collectorA, QuadConstraintCollector<A, B, C, D, ResultContainerB_, ResultB_> collectorB, QuadConstraintCollector<A, B, C, D, ResultContainerC_, ResultC_> collectorC) Convert theQuadConstraintStreamto aTriConstraintStream, containing only a single tuple, the result of applying threeQuadConstraintCollectors.<ResultContainerA_,ResultA_, ResultContainerB_, ResultB_, ResultContainerC_, ResultC_, ResultContainerD_, ResultD_>
QuadConstraintStream<ResultA_,ResultB_, ResultC_, ResultD_> groupBy(QuadConstraintCollector<A, B, C, D, ResultContainerA_, ResultA_> collectorA, QuadConstraintCollector<A, B, C, D, ResultContainerB_, ResultB_> collectorB, QuadConstraintCollector<A, B, C, D, ResultContainerC_, ResultC_> collectorC, QuadConstraintCollector<A, B, C, D, ResultContainerD_, ResultD_> collectorD) Convert theQuadConstraintStreamto aQuadConstraintStream, containing only a single tuple, the result of applying fourQuadConstraintCollectors.default <E> QuadConstraintStream<A,B, C, D> ifExists(UniConstraintStream<E> otherStream, PentaJoiner<A, B, C, D, E> joiner) Create a newQuadConstraintStreamfor every tuple of A, B, C and D where E exists for which thePentaJoineris true (for the properties it extracts from the facts).<E> QuadConstraintStream<A,B, C, D> ifExists(UniConstraintStream<E> otherStream, PentaJoiner<A, B, C, D, E>... joiners) As defined byifExists(UniConstraintStream, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> ifExists(UniConstraintStream<E> otherStream, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2) As defined byifExists(UniConstraintStream, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> ifExists(UniConstraintStream<E> otherStream, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3) As defined byifExists(UniConstraintStream, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> ifExists(UniConstraintStream<E> otherStream, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3, PentaJoiner<A, B, C, D, E> joiner4) As defined byifExists(UniConstraintStream, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> Create a newQuadConstraintStreamfor every tuple of A, B, C and D where E exists for which thePentaJoineris true (for the properties it extracts from the facts).<E> QuadConstraintStream<A,B, C, D> As defined byifExists(Class, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> As defined byifExists(Class, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> ifExists(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3) As defined byifExists(Class, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> ifExists(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3, PentaJoiner<A, B, C, D, E> joiner4) As defined byifExists(Class, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> ifExistsIncludingNullVars(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner) Deprecated, for removal: This API element is subject to removal in a future version.default <E> QuadConstraintStream<A,B, C, D> ifExistsIncludingNullVars(Class<E> otherClass, PentaJoiner<A, B, C, D, E>... joiners) Deprecated, for removal: This API element is subject to removal in a future version.default <E> QuadConstraintStream<A,B, C, D> ifExistsIncludingNullVars(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2) Deprecated, for removal: This API element is subject to removal in a future version.default <E> QuadConstraintStream<A,B, C, D> ifExistsIncludingNullVars(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3) Deprecated, for removal: This API element is subject to removal in a future version.default <E> QuadConstraintStream<A,B, C, D> ifExistsIncludingNullVars(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3, PentaJoiner<A, B, C, D, E> joiner4) Deprecated, for removal: This API element is subject to removal in a future version.default <E> QuadConstraintStream<A,B, C, D> ifExistsIncludingUnassigned(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner) Create a newQuadConstraintStreamfor every tuple of A, B, C and D where E exists for which thePentaJoineris true (for the properties it extracts from the facts).<E> QuadConstraintStream<A,B, C, D> ifExistsIncludingUnassigned(Class<E> otherClass, PentaJoiner<A, B, C, D, E>... joiners) As defined byifExistsIncludingNullVars(Class, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> ifExistsIncludingUnassigned(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2) As defined byifExistsIncludingUnassigned(Class, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> ifExistsIncludingUnassigned(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3) As defined byifExistsIncludingUnassigned(Class, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> ifExistsIncludingUnassigned(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3, PentaJoiner<A, B, C, D, E> joiner4) As defined byifExistsIncludingUnassigned(Class, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> ifNotExists(UniConstraintStream<E> otherStream, PentaJoiner<A, B, C, D, E> joiner) Create a newQuadConstraintStreamfor every tuple of A, B, C and D where E does not exist for which thePentaJoineris true (for the properties it extracts from the facts).<E> QuadConstraintStream<A,B, C, D> ifNotExists(UniConstraintStream<E> otherStream, PentaJoiner<A, B, C, D, E>... joiners) As defined byifNotExists(UniConstraintStream, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> ifNotExists(UniConstraintStream<E> otherStream, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2) As defined byifNotExists(UniConstraintStream, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> ifNotExists(UniConstraintStream<E> otherStream, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3) As defined byifNotExists(UniConstraintStream, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> ifNotExists(UniConstraintStream<E> otherStream, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3, PentaJoiner<A, B, C, D, E> joiner4) As defined byifNotExists(UniConstraintStream, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> ifNotExists(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner) Create a newQuadConstraintStreamfor every tuple of A, B, C and D where E does not exist for which thePentaJoineris true (for the properties it extracts from the facts).<E> QuadConstraintStream<A,B, C, D> ifNotExists(Class<E> otherClass, PentaJoiner<A, B, C, D, E>... joiners) As defined byifNotExists(Class, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> ifNotExists(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2) As defined byifNotExists(Class, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> ifNotExists(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3) As defined byifNotExists(Class, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> ifNotExists(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3, PentaJoiner<A, B, C, D, E> joiner4) As defined byifNotExists(Class, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> ifNotExistsIncludingNullVars(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner) Deprecated, for removal: This API element is subject to removal in a future version.default <E> QuadConstraintStream<A,B, C, D> ifNotExistsIncludingNullVars(Class<E> otherClass, PentaJoiner<A, B, C, D, E>... joiners) Deprecated, for removal: This API element is subject to removal in a future version.default <E> QuadConstraintStream<A,B, C, D> ifNotExistsIncludingNullVars(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2) Deprecated, for removal: This API element is subject to removal in a future version.default <E> QuadConstraintStream<A,B, C, D> ifNotExistsIncludingNullVars(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3) Deprecated, for removal: This API element is subject to removal in a future version.default <E> QuadConstraintStream<A,B, C, D> ifNotExistsIncludingNullVars(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3, PentaJoiner<A, B, C, D, E> joiner4) Deprecated, for removal: This API element is subject to removal in a future version.default <E> QuadConstraintStream<A,B, C, D> ifNotExistsIncludingUnassigned(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner) Create a newQuadConstraintStreamfor every tuple of A, B, C and D where E does not exist for which thePentaJoineris true (for the properties it extracts from the facts).<E> QuadConstraintStream<A,B, C, D> ifNotExistsIncludingUnassigned(Class<E> otherClass, PentaJoiner<A, B, C, D, E>... joiners) As defined byifNotExistsIncludingUnassigned(Class, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> ifNotExistsIncludingUnassigned(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2) As defined byifNotExistsIncludingUnassigned(Class, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> ifNotExistsIncludingUnassigned(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3) As defined byifNotExistsIncludingUnassigned(Class, PentaJoiner).default <E> QuadConstraintStream<A,B, C, D> ifNotExistsIncludingUnassigned(Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3, PentaJoiner<A, B, C, D, E> joiner4) As defined byifNotExistsIncludingUnassigned(Class, PentaJoiner).default ConstraintDeprecated, for removal: This API element is subject to removal in a future version.Preferimpact(Score, ToIntQuadFunction).default Constraintimpact(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Preferimpact(Score, ToIntQuadFunction).impact(Score_ constraintWeight) Positively or negatively impacts theScoreby the constraintWeight for each match and returns a builder to apply optional constraint properties.Positively or negatively impacts theScoreby constraintWeight multiplied by matchWeight for each match and returns a builder to apply optional constraint properties.default ConstraintimpactBigDecimal(String constraintName, Score<?> constraintWeight, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintimpactBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.impactBigDecimal(Score_ constraintWeight, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) As defined byimpact(Score, ToIntQuadFunction), with an impact of typeBigDecimal.default QuadConstraintBuilder<A,B, C, D, ?> Deprecated, for removal: This API element is subject to removal in a future version.Preferimpact(Score)andConstraintWeightOverrides.QuadConstraintBuilder<A,B, C, D, ?> impactConfigurable(ToIntQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintimpactConfigurable(String constraintName, ToIntQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintimpactConfigurable(String constraintPackage, String constraintName, ToIntQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.QuadConstraintBuilder<A,B, C, D, ?> impactConfigurableBigDecimal(QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintimpactConfigurableBigDecimal(String constraintName, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintimpactConfigurableBigDecimal(String constraintPackage, String constraintName, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.QuadConstraintBuilder<A,B, C, D, ?> impactConfigurableLong(ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintimpactConfigurableLong(String constraintName, ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintimpactConfigurableLong(String constraintPackage, String constraintName, ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintimpactLong(String constraintName, Score<?> constraintWeight, ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintimpactLong(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.impactLong(Score_ constraintWeight, ToLongQuadFunction<A, B, C, D> matchWeigher) As defined byimpact(Score, ToIntQuadFunction), with an impact of type long.<ResultA_> UniConstraintStream<ResultA_>As defined byUniConstraintStream.map(Function).<ResultA_,ResultB_>
BiConstraintStream<ResultA_,ResultB_> As defined bymap(QuadFunction), only resulting inBiConstraintStream.<ResultA_,ResultB_, ResultC_>
TriConstraintStream<ResultA_,ResultB_, ResultC_> map(QuadFunction<A, B, C, D, ResultA_> mappingA, QuadFunction<A, B, C, D, ResultB_> mappingB, QuadFunction<A, B, C, D, ResultC_> mappingC) As defined bymap(QuadFunction), only resulting inTriConstraintStream.<ResultA_,ResultB_, ResultC_, ResultD_>
QuadConstraintStream<ResultA_,ResultB_, ResultC_, ResultD_> map(QuadFunction<A, B, C, D, ResultA_> mappingA, QuadFunction<A, B, C, D, ResultB_> mappingB, QuadFunction<A, B, C, D, ResultC_> mappingC, QuadFunction<A, B, C, D, ResultD_> mappingD) As defined bymap(QuadFunction), only resulting inQuadConstraintStream.default ConstraintDeprecated, for removal: This API element is subject to removal in a future version.default Constraintpenalize(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.penalize(Score_ constraintWeight) As defined bypenalize(Score, ToIntQuadFunction), where the match weight is one (1).Applies a negativeScoreimpact, subtracting the constraintWeight multiplied by the match weight, and returns a builder to apply optional constraint properties.default ConstraintpenalizeBigDecimal(String constraintName, Score<?> constraintWeight, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintpenalizeBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.penalizeBigDecimal(Score_ constraintWeight) As defined bypenalizeBigDecimal(Score, QuadFunction), where the match weight is one (1).penalizeBigDecimal(Score_ constraintWeight, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) As defined bypenalize(Score, ToIntQuadFunction), with a penalty of typeBigDecimal.default QuadConstraintBuilder<A,B, C, D, ?> Deprecated, for removal: This API element is subject to removal in a future version.Preferpenalize(Score)andConstraintWeightOverrides.QuadConstraintBuilder<A,B, C, D, ?> penalizeConfigurable(ToIntQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintpenalizeConfigurable(String constraintName, ToIntQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintpenalizeConfigurable(String constraintPackage, String constraintName, ToIntQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.QuadConstraintBuilder<A,B, C, D, ?> penalizeConfigurableBigDecimal(QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintpenalizeConfigurableBigDecimal(String constraintName, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintpenalizeConfigurableBigDecimal(String constraintPackage, String constraintName, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.QuadConstraintBuilder<A,B, C, D, ?> penalizeConfigurableLong(ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintpenalizeConfigurableLong(String constraintName, ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintpenalizeConfigurableLong(String constraintPackage, String constraintName, ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintpenalizeLong(String constraintName, Score<?> constraintWeight, ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintpenalizeLong(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.penalizeLong(Score_ constraintWeight) As defined bypenalizeLong(Score, ToLongQuadFunction), where the match weight is one (1).penalizeLong(Score_ constraintWeight, ToLongQuadFunction<A, B, C, D> matchWeigher) As defined bypenalize(Score, ToIntQuadFunction), with a penalty of type long.default ConstraintDeprecated, for removal: This API element is subject to removal in a future version.Preferreward(Score, ToIntQuadFunction).default Constraintreward(String constraintPackage, String constraintName, Score<?> constraintWeight, ToIntQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Preferreward(Score, ToIntQuadFunction).reward(Score_ constraintWeight) As defined byreward(Score, ToIntQuadFunction), where the match weight is one (1).Applies a positiveScoreimpact, adding the constraintWeight multiplied by the match weight, and returns a builder to apply optional constraint properties.default ConstraintrewardBigDecimal(String constraintName, Score<?> constraintWeight, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintrewardBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.rewardBigDecimal(Score_ constraintWeight, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) As defined byreward(Score, ToIntQuadFunction), with a penalty of typeBigDecimal.default QuadConstraintBuilder<A,B, C, D, ?> Deprecated, for removal: This API element is subject to removal in a future version.Preferreward(Score)andConstraintWeightOverrides.QuadConstraintBuilder<A,B, C, D, ?> rewardConfigurable(ToIntQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintrewardConfigurable(String constraintName, ToIntQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintrewardConfigurable(String constraintPackage, String constraintName, ToIntQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.QuadConstraintBuilder<A,B, C, D, ?> rewardConfigurableBigDecimal(QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintrewardConfigurableBigDecimal(String constraintName, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintrewardConfigurableBigDecimal(String constraintPackage, String constraintName, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.QuadConstraintBuilder<A,B, C, D, ?> rewardConfigurableLong(ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintrewardConfigurableLong(String constraintName, ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintrewardConfigurableLong(String constraintPackage, String constraintName, ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintrewardLong(String constraintName, Score<?> constraintWeight, ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.default ConstraintrewardLong(String constraintPackage, String constraintName, Score<?> constraintWeight, ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.rewardLong(Score_ constraintWeight, ToLongQuadFunction<A, B, C, D> matchWeigher) As defined byreward(Score, ToIntQuadFunction), with a penalty of type long.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 theQuadPredicateand match ifQuadPredicate.test(Object, Object, Object, Object)returns true.Important: This is slower and less scalable than
TriConstraintStream.join(UniConstraintStream, QuadJoiner)with a properQuadJoinerpredicate (such asJoiners.equal(TriFunction, Function), because the latter applies hashing and/or indexing, so it doesn't create every combination just to filter it out.- Parameters:
predicate- never null- Returns:
- never null
-
ifExists
default <E> QuadConstraintStream<A,B, ifExistsC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner) Create a newQuadConstraintStreamfor every tuple of A, B, C and D where E exists for which thePentaJoineris true (for the properties it extracts from the facts).This method has overloaded methods with multiple
PentaJoinerparameters.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:
E- the type of the fifth matched fact- Parameters:
otherClass- never nulljoiner- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E exists for which the
PentaJoineris true
-
ifExists
default <E> QuadConstraintStream<A,B, ifExistsC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2) As defined byifExists(Class, PentaJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherClass- never nulljoiner1- never nulljoiner2- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E exists for which the
PentaJoiners are true
-
ifExists
default <E> QuadConstraintStream<A,B, ifExistsC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3) As defined byifExists(Class, PentaJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherClass- never nulljoiner1- never nulljoiner2- never nulljoiner3- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E exists for which the
PentaJoiners are true
-
ifExists
default <E> QuadConstraintStream<A,B, ifExistsC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3, PentaJoiner<A, B, C, D, E> joiner4) As defined byifExists(Class, PentaJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherClass- never nulljoiner1- never nulljoiner2- never nulljoiner3- never nulljoiner4- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E exists for which the
PentaJoiners are true
-
ifExists
As defined byifExists(Class, PentaJoiner). 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 4PentaJoinerparameters.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherClass- never nulljoiners- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E exists for which the
PentaJoiners are true
-
ifExists
default <E> QuadConstraintStream<A,B, ifExistsC, D> (UniConstraintStream<E> otherStream, PentaJoiner<A, B, C, D, E> joiner) Create a newQuadConstraintStreamfor every tuple of A, B, C and D where E exists for which thePentaJoineris true (for the properties it extracts from the facts).This method has overloaded methods with multiple
PentaJoinerparameters.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherStream- never nulljoiner- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E exists for which the
PentaJoineris true
-
ifExists
default <E> QuadConstraintStream<A,B, ifExistsC, D> (UniConstraintStream<E> otherStream, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2) As defined byifExists(UniConstraintStream, PentaJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherStream- never nulljoiner1- never nulljoiner2- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E exists for which the
PentaJoiners are true
-
ifExists
default <E> QuadConstraintStream<A,B, ifExistsC, D> (UniConstraintStream<E> otherStream, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3) As defined byifExists(UniConstraintStream, PentaJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherStream- never nulljoiner1- never nulljoiner2- never nulljoiner3- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E exists for which the
PentaJoiners are true
-
ifExists
default <E> QuadConstraintStream<A,B, ifExistsC, D> (UniConstraintStream<E> otherStream, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3, PentaJoiner<A, B, C, D, E> joiner4) As defined byifExists(UniConstraintStream, PentaJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherStream- never nulljoiner1- never nulljoiner2- never nulljoiner3- never nulljoiner4- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E exists for which the
PentaJoiners are true
-
ifExists
<E> QuadConstraintStream<A,B, ifExistsC, D> (UniConstraintStream<E> otherStream, PentaJoiner<A, B, C, D, E>... joiners) As defined byifExists(UniConstraintStream, PentaJoiner). 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 4PentaJoinerparameters.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherStream- never nulljoiners- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E exists for which the
PentaJoiners are true
-
ifExistsIncludingUnassigned
default <E> QuadConstraintStream<A,B, ifExistsIncludingUnassignedC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner) Create a newQuadConstraintStreamfor every tuple of A, B, C and D where E exists for which thePentaJoineris 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
PentaJoinerparameters.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherClass- never nulljoiner- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E exists for which the
PentaJoineris true
-
ifExistsIncludingUnassigned
default <E> QuadConstraintStream<A,B, ifExistsIncludingUnassignedC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2) As defined byifExistsIncludingUnassigned(Class, PentaJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherClass- never nulljoiner1- never nulljoiner2- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E exists for which the
PentaJoiners are true
-
ifExistsIncludingUnassigned
default <E> QuadConstraintStream<A,B, ifExistsIncludingUnassignedC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3) As defined byifExistsIncludingUnassigned(Class, PentaJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherClass- never nulljoiner1- never nulljoiner2- never nulljoiner3- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E exists for which the
PentaJoiners are true
-
ifExistsIncludingUnassigned
default <E> QuadConstraintStream<A,B, ifExistsIncludingUnassignedC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3, PentaJoiner<A, B, C, D, E> joiner4) As defined byifExistsIncludingUnassigned(Class, PentaJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherClass- never nulljoiner1- never nulljoiner2- never nulljoiner3- never nulljoiner4- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E exists for which the
PentaJoiners are true
-
ifExistsIncludingUnassigned
<E> QuadConstraintStream<A,B, ifExistsIncludingUnassignedC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E>... joiners) As defined byifExistsIncludingNullVars(Class, PentaJoiner). 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 4PentaJoinerparameters.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherClass- never nulljoiners- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E exists for which the
PentaJoiners are true
-
ifNotExists
default <E> QuadConstraintStream<A,B, ifNotExistsC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner) Create a newQuadConstraintStreamfor every tuple of A, B, C and D where E does not exist for which thePentaJoineris true (for the properties it extracts from the facts).This method has overloaded methods with multiple
PentaJoinerparameters.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:
E- the type of the fifth matched fact- Parameters:
otherClass- never nulljoiner- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E does not exist for which the
PentaJoineris true
-
ifNotExists
default <E> QuadConstraintStream<A,B, ifNotExistsC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2) As defined byifNotExists(Class, PentaJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherClass- never nulljoiner1- never nulljoiner2- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E does not exist for which the
PentaJoiners are true
-
ifNotExists
default <E> QuadConstraintStream<A,B, ifNotExistsC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3) As defined byifNotExists(Class, PentaJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherClass- never nulljoiner1- never nulljoiner2- never nulljoiner3- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E does not exist for which the
PentaJoiners are true
-
ifNotExists
default <E> QuadConstraintStream<A,B, ifNotExistsC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3, PentaJoiner<A, B, C, D, E> joiner4) As defined byifNotExists(Class, PentaJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherClass- never nulljoiner1- never nulljoiner2- never nulljoiner3- never nulljoiner4- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E does not exist for which the
PentaJoiners are true
-
ifNotExists
<E> QuadConstraintStream<A,B, ifNotExistsC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E>... joiners) As defined byifNotExists(Class, PentaJoiner). 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 4PentaJoinerparameters.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherClass- never nulljoiners- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E does not exist for which the
PentaJoiners are true
-
ifNotExists
default <E> QuadConstraintStream<A,B, ifNotExistsC, D> (UniConstraintStream<E> otherStream, PentaJoiner<A, B, C, D, E> joiner) Create a newQuadConstraintStreamfor every tuple of A, B, C and D where E does not exist for which thePentaJoineris true (for the properties it extracts from the facts).This method has overloaded methods with multiple
PentaJoinerparameters.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherStream- never nulljoiner- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E does not exist for which the
PentaJoineris true
-
ifNotExists
default <E> QuadConstraintStream<A,B, ifNotExistsC, D> (UniConstraintStream<E> otherStream, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2) As defined byifNotExists(UniConstraintStream, PentaJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherStream- never nulljoiner1- never nulljoiner2- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E does not exist for which the
PentaJoiners are true
-
ifNotExists
default <E> QuadConstraintStream<A,B, ifNotExistsC, D> (UniConstraintStream<E> otherStream, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3) As defined byifNotExists(UniConstraintStream, PentaJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherStream- never nulljoiner1- never nulljoiner2- never nulljoiner3- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E does not exist for which the
PentaJoiners are true
-
ifNotExists
default <E> QuadConstraintStream<A,B, ifNotExistsC, D> (UniConstraintStream<E> otherStream, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3, PentaJoiner<A, B, C, D, E> joiner4) As defined byifNotExists(UniConstraintStream, PentaJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherStream- never nulljoiner1- never nulljoiner2- never nulljoiner3- never nulljoiner4- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E does not exist for which the
PentaJoiners are true
-
ifNotExists
<E> QuadConstraintStream<A,B, ifNotExistsC, D> (UniConstraintStream<E> otherStream, PentaJoiner<A, B, C, D, E>... joiners) As defined byifNotExists(UniConstraintStream, PentaJoiner). 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 4PentaJoinerparameters.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherStream- never nulljoiners- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E does not exist for which the
PentaJoiners are true
-
ifNotExistsIncludingUnassigned
default <E> QuadConstraintStream<A,B, ifNotExistsIncludingUnassignedC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner) Create a newQuadConstraintStreamfor every tuple of A, B, C and D where E does not exist for which thePentaJoineris 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
PentaJoinerparameters.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherClass- never nulljoiner- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E does not exist for which the
PentaJoineris true
-
ifNotExistsIncludingUnassigned
default <E> QuadConstraintStream<A,B, ifNotExistsIncludingUnassignedC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2) As defined byifNotExistsIncludingUnassigned(Class, PentaJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherClass- never nulljoiner1- never nulljoiner2- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E does not exist for which the
PentaJoiners are true
-
ifNotExistsIncludingUnassigned
default <E> QuadConstraintStream<A,B, ifNotExistsIncludingUnassignedC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3) As defined byifNotExistsIncludingUnassigned(Class, PentaJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherClass- never nulljoiner1- never nulljoiner2- never nulljoiner3- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E does not exist for which the
PentaJoiners are true
-
ifNotExistsIncludingUnassigned
default <E> QuadConstraintStream<A,B, ifNotExistsIncludingUnassignedC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3, PentaJoiner<A, B, C, D, E> joiner4) As defined byifNotExistsIncludingUnassigned(Class, PentaJoiner). For performance reasons, indexing joiners must be placed before filtering joiners.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherClass- never nulljoiner1- never nulljoiner2- never nulljoiner3- never nulljoiner4- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E does not exist for which the
PentaJoiners are true
-
ifNotExistsIncludingUnassigned
<E> QuadConstraintStream<A,B, ifNotExistsIncludingUnassignedC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E>... joiners) As defined byifNotExistsIncludingUnassigned(Class, PentaJoiner). 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 4PentaJoinerparameters.- Type Parameters:
E- the type of the fifth matched fact- Parameters:
otherClass- never nulljoiners- never null- Returns:
- never null, a stream that matches every tuple of A, B, C and D where E does not exist for which the
PentaJoiners are true
-
groupBy
<ResultContainer_,Result_> UniConstraintStream<Result_> groupBy(QuadConstraintCollector<A, B, C, D, ResultContainer_, Result_> collector) Convert theQuadConstraintStreamto aUniConstraintStream, containing only a single tuple, the result of applyingQuadConstraintCollector.UniConstraintStreamwhich only has a single tuple, the result of applyingQuadConstraintCollector.- 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- never null, the collector to perform the grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.- Returns:
- never null
-
groupBy
<ResultContainerA_,ResultA_, BiConstraintStream<ResultA_,ResultContainerB_, ResultB_> ResultB_> groupBy(QuadConstraintCollector<A, B, C, D, ResultContainerA_, ResultA_> collectorA, QuadConstraintCollector<A, B, C, D, ResultContainerB_, ResultB_> collectorB) Convert theQuadConstraintStreamto aBiConstraintStream, containing only a single tuple, the result of applying twoQuadConstraintCollectors.- 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- never null, the collector to perform the first grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.collectorB- never null, the collector to perform the second grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.- Returns:
- never null
-
groupBy
<ResultContainerA_,ResultA_, TriConstraintStream<ResultA_,ResultContainerB_, ResultB_, ResultContainerC_, ResultC_> ResultB_, groupByResultC_> (QuadConstraintCollector<A, B, C, D, ResultContainerA_, ResultA_> collectorA, QuadConstraintCollector<A, B, C, D, ResultContainerB_, ResultB_> collectorB, QuadConstraintCollector<A, B, C, D, ResultContainerC_, ResultC_> collectorC) Convert theQuadConstraintStreamto aTriConstraintStream, containing only a single tuple, the result of applying threeQuadConstraintCollectors.- 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- never null, the collector to perform the first grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.collectorB- never null, the collector to perform the second grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.collectorC- never null, the collector to perform the third grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.- Returns:
- never null
-
groupBy
<ResultContainerA_,ResultA_, QuadConstraintStream<ResultA_,ResultContainerB_, ResultB_, ResultContainerC_, ResultC_, ResultContainerD_, ResultD_> ResultB_, groupByResultC_, ResultD_> (QuadConstraintCollector<A, B, C, D, ResultContainerA_, ResultA_> collectorA, QuadConstraintCollector<A, B, C, D, ResultContainerB_, ResultB_> collectorB, QuadConstraintCollector<A, B, C, D, ResultContainerC_, ResultC_> collectorC, QuadConstraintCollector<A, B, C, D, ResultContainerD_, ResultD_> collectorD) Convert theQuadConstraintStreamto aQuadConstraintStream, containing only a single tuple, the result of applying fourQuadConstraintCollectors.- 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- never null, the collector to perform the first grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.collectorB- never null, the collector to perform the second grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.collectorC- never null, the collector to perform the third grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.collectorD- never null, the collector to perform the fourth grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.- Returns:
- never null
-
groupBy
Convert theQuadConstraintStreamto 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- never null, mapping function to convert each element in the stream to a different element- Returns:
- never null
-
groupBy
<GroupKey_,ResultContainer_, BiConstraintStream<GroupKey_,Result_> Result_> groupBy(QuadFunction<A, B, C, D, GroupKey_> groupKeyMapping, QuadConstraintCollector<A, B, C, D, ResultContainer_, Result_> collector) Convert theQuadConstraintStreamto 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
QuadConstraintCollectorapplied 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- never null, function to convert the fact in the original tuple to a different factcollector- never null, the collector to perform the grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.- Returns:
- never null
-
groupBy
<GroupKey_,ResultContainerB_, TriConstraintStream<GroupKey_,ResultB_, ResultContainerC_, ResultC_> ResultB_, groupByResultC_> (QuadFunction<A, B, C, D, GroupKey_> groupKeyMapping, QuadConstraintCollector<A, B, C, D, ResultContainerB_, ResultB_> collectorB, QuadConstraintCollector<A, B, C, D, ResultContainerC_, ResultC_> collectorC) Convert theQuadConstraintStreamto 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
QuadConstraintCollectorapplied 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- never null, function to convert the fact in the original tuple to a different factcollectorB- never null, the collector to perform the first grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.collectorC- never null, the collector to perform the second grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.- Returns:
- never null
-
groupBy
<GroupKey_,ResultContainerB_, QuadConstraintStream<GroupKey_,ResultB_, ResultContainerC_, ResultC_, ResultContainerD_, ResultD_> ResultB_, groupByResultC_, ResultD_> (QuadFunction<A, B, C, D, GroupKey_> groupKeyMapping, QuadConstraintCollector<A, B, C, D, ResultContainerB_, ResultB_> collectorB, QuadConstraintCollector<A, B, C, D, ResultContainerC_, ResultC_> collectorC, QuadConstraintCollector<A, B, C, D, ResultContainerD_, ResultD_> collectorD) Convert theQuadConstraintStreamto 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
QuadConstraintCollectorapplied 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- never null, function to convert the fact in the original tuple to a different factcollectorB- never null, the collector to perform the first grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.collectorC- never null, the collector to perform the second grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.collectorD- never null, the collector to perform the third grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.- Returns:
- never null
-
groupBy
<GroupKeyA_,GroupKeyB_> BiConstraintStream<GroupKeyA_,GroupKeyB_> groupBy(QuadFunction<A, B, C, D, GroupKeyA_> groupKeyAMapping, QuadFunction<A, B, C, D, GroupKeyB_> groupKeyBMapping) Convert theQuadConstraintStreamto 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- never null, function to convert the facts in the original tuple to a new factgroupKeyBMapping- never null, function to convert the facts in the original tuple to another new fact- Returns:
- never null
-
groupBy
<GroupKeyA_,GroupKeyB_, TriConstraintStream<GroupKeyA_,ResultContainer_, Result_> GroupKeyB_, groupByResult_> (QuadFunction<A, B, C, D, GroupKeyA_> groupKeyAMapping, QuadFunction<A, B, C, D, GroupKeyB_> groupKeyBMapping, QuadConstraintCollector<A, B, C, D, ResultContainer_, Result_> collector) Combines the semantics ofgroupBy(QuadFunction, QuadFunction)andgroupBy(QuadConstraintCollector). That is, the first and second facts in the tuple follow thegroupBy(QuadFunction, QuadFunction)semantics, and the third fact is the result of applyingQuadConstraintCollector.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- never null, function to convert the original tuple into a first factgroupKeyBMapping- never null, function to convert the original tuple into a second factcollector- never null, the collector to perform the grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.- Returns:
- never null
-
groupBy
<GroupKeyA_,GroupKeyB_, QuadConstraintStream<GroupKeyA_,ResultContainerC_, ResultC_, ResultContainerD_, ResultD_> GroupKeyB_, groupByResultC_, ResultD_> (QuadFunction<A, B, C, D, GroupKeyA_> groupKeyAMapping, QuadFunction<A, B, C, D, GroupKeyB_> groupKeyBMapping, QuadConstraintCollector<A, B, C, D, ResultContainerC_, ResultC_> collectorC, QuadConstraintCollector<A, B, C, D, ResultContainerD_, ResultD_> collectorD) Combines the semantics ofgroupBy(QuadFunction, QuadFunction)andgroupBy(QuadConstraintCollector). That is, the first and second facts in the tuple follow thegroupBy(QuadFunction, QuadFunction)semantics. The third fact is the result of applying the firstQuadConstraintCollector.finisher()on all the tuples of the originalQuadConstraintStreamthat belong to the group. The fourth fact is the result of applying the secondQuadConstraintCollector.finisher()on all the tuples of the originalQuadConstraintStreamthat 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- never null, function to convert the original tuple into a first factgroupKeyBMapping- never null, function to convert the original tuple into a second factcollectorC- never null, the collector to perform the first grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.collectorD- never null, the collector to perform the second grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.- Returns:
- never null
-
groupBy
<GroupKeyA_,GroupKeyB_, TriConstraintStream<GroupKeyA_,GroupKeyC_> GroupKeyB_, groupByGroupKeyC_> (QuadFunction<A, B, C, D, GroupKeyA_> groupKeyAMapping, QuadFunction<A, B, C, D, GroupKeyB_> groupKeyBMapping, QuadFunction<A, B, C, D, GroupKeyC_> groupKeyCMapping) Convert theQuadConstraintStreamto 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- never null, function to convert the original tuple into a first factgroupKeyBMapping- never null, function to convert the original tuple into a second factgroupKeyCMapping- never null, function to convert the original tuple into a third fact- Returns:
- never null
-
groupBy
<GroupKeyA_,GroupKeyB_, QuadConstraintStream<GroupKeyA_,GroupKeyC_, ResultContainerD_, ResultD_> GroupKeyB_, groupByGroupKeyC_, ResultD_> (QuadFunction<A, B, C, D, GroupKeyA_> groupKeyAMapping, QuadFunction<A, B, C, D, GroupKeyB_> groupKeyBMapping, QuadFunction<A, B, C, D, GroupKeyC_> groupKeyCMapping, QuadConstraintCollector<A, B, C, D, ResultContainerD_, ResultD_> collectorD) Combines the semantics ofgroupBy(QuadFunction, QuadFunction)andgroupBy(QuadConstraintCollector). That is, the first three facts in the tuple follow thegroupBy(QuadFunction, QuadFunction)semantics. The final fact is the result of applying the firstQuadConstraintCollector.finisher()on all the tuples of the originalQuadConstraintStreamthat 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- never null, function to convert the original tuple into a first factgroupKeyBMapping- never null, function to convert the original tuple into a second factgroupKeyCMapping- never null, function to convert the original tuple into a third factcollectorD- never null, the collector to perform the grouping operation with SeeConstraintCollectorsfor common operations, such ascount(),sum()and others.- Returns:
- never null
-
groupBy
<GroupKeyA_,GroupKeyB_, QuadConstraintStream<GroupKeyA_,GroupKeyC_, GroupKeyD_> GroupKeyB_, groupByGroupKeyC_, GroupKeyD_> (QuadFunction<A, B, C, D, GroupKeyA_> groupKeyAMapping, QuadFunction<A, B, C, D, GroupKeyB_> groupKeyBMapping, QuadFunction<A, B, C, D, GroupKeyC_> groupKeyCMapping, QuadFunction<A, B, C, D, 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- never null, function to convert the original tuple into a first factgroupKeyBMapping- never null, function to convert the original tuple into a second factgroupKeyCMapping- never null, function to convert the original tuple into a third factgroupKeyDMapping- never null, function to convert the original tuple into a fourth fact- Returns:
- never null
-
map
As defined byUniConstraintStream.map(Function).- Type Parameters:
ResultA_- the type of the only fact in the resultingUniConstraintStream's tuple- Parameters:
mapping- never null, function to convert the original tuple into the new tuple- Returns:
- never null
-
map
<ResultA_,ResultB_> BiConstraintStream<ResultA_,ResultB_> map(QuadFunction<A, B, C, D, ResultA_> mappingA, QuadFunction<A, B, C, D, ResultB_> mappingB) As defined bymap(QuadFunction), 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- never null, function to convert the original tuple into the first fact of a new tuplemappingB- never null, function to convert the original tuple into the second fact of a new tuple- Returns:
- never null
-
map
<ResultA_,ResultB_, TriConstraintStream<ResultA_,ResultC_> ResultB_, mapResultC_> (QuadFunction<A, B, C, D, ResultA_> mappingA, QuadFunction<A, B, C, D, ResultB_> mappingB, QuadFunction<A, B, C, D, ResultC_> mappingC) As defined bymap(QuadFunction), 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- never null, function to convert the original tuple into the first fact of a new tuplemappingB- never null, function to convert the original tuple into the second fact of a new tuplemappingC- never null, function to convert the original tuple into the third fact of a new tuple- Returns:
- never null
-
map
<ResultA_,ResultB_, QuadConstraintStream<ResultA_,ResultC_, ResultD_> ResultB_, mapResultC_, ResultD_> (QuadFunction<A, B, C, D, ResultA_> mappingA, QuadFunction<A, B, C, D, ResultB_> mappingB, QuadFunction<A, B, C, D, ResultC_> mappingC, QuadFunction<A, B, C, D, ResultD_> mappingD) As defined bymap(QuadFunction), 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- never null, function to convert the original tuple into the first fact of a new tuplemappingB- never null, function to convert the original tuple into the second fact of a new tuplemappingC- never null, function to convert the original tuple into the third fact of a new tuplemappingD- never null, function to convert the original tuple into the fourth fact of a new tuple- Returns:
- never null
-
flattenLast
As defined byBiConstraintStream.flattenLast(Function).- Type Parameters:
ResultD_- 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- never null, function to convert the last fact in the original tuple intoIterable. For performance, returning an implementation ofCollectionis preferred.- Returns:
- never null
-
distinct
QuadConstraintStream<A,B, distinct()C, D> Transforms the stream in such a way that all the tuples going through it are distinct. (No two tuples willequal.)By default, tuples going through a constraint stream are distinct. However, operations such as
map(QuadFunction)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.- Returns:
- never null
-
concat
Returns a newQuadConstraintStreamcontaining all the tuples of both thisQuadConstraintStreamand the providedUniConstraintStream. TheUniConstraintStreamtuples will be padded from the right by null.For instance, if this stream consists of
[(A1, A2, A3, A4), (B1, B2, B3, B4), (C1, C2, C3, C4)]and the other stream consists of[C, D, E],this.concat(other)will consist of[(A1, A2, A3, A4), (B1, B2, B3, B4), (C1, C2, C3, C4), (C, null, null, null), (D, null, null, null), (E, null, null, null)].This operation can be thought of as an or between streams.
- Parameters:
otherStream- never null- Returns:
- never null
-
concat
QuadConstraintStream<A,B, concatC, D> (UniConstraintStream<A> otherStream, Function<A, B> paddingFunctionB, Function<A, C> paddingFunctionC, Function<A, D> paddingFunctionD) Returns a newQuadConstraintStreamcontaining all the tuples of both thisQuadConstraintStreamand 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, A4), (B1, B2, B3, B4), (C1, C2, C3, C4)]and the other stream consists of[C, D, E],this.concat(other, a -> null, a -> null, a -> null)will consist of[(A1, A2, A3, A4), (B1, B2, B3, B4), (C1, C2, C3, C4), (C, null, null, null), (D, null, null, null), (E, null, null, null)].This operation can be thought of as an or between streams.
- Parameters:
otherStream- never nullpaddingFunctionB- never null, function to find the padding for the second factpaddingFunctionC- never null, function to find the padding for the third factpaddingFunctionD- never null, function to find the padding for the fourth fact- Returns:
- never null
-
concat
Returns a newQuadConstraintStreamcontaining all the tuples of both thisQuadConstraintStreamand the providedBiConstraintStream. TheBiConstraintStreamtuples will be padded from the right by null.For instance, if this stream consists of
[(A1, A2, A3, A4), (B1, B2, B3, B4), (C1, C2, C3, C4)]and the other stream consists of[(C1, C2), (D1, D2), (E1, E2)],this.concat(other)will consist of[(A1, A2, A3, A4), (B1, B2, B3, B4), (C1, C2, C3, C4), (C1, C2, null, null), (D1, D2, null, null), (E1, E2, null, null)].This operation can be thought of as an or between streams.
- Parameters:
otherStream- never null- Returns:
- never null
-
concat
QuadConstraintStream<A,B, concatC, D> (BiConstraintStream<A, B> otherStream, BiFunction<A, B, C> paddingFunctionC, BiFunction<A, B, D> paddingFunctionD) Returns a newQuadConstraintStreamcontaining all the tuples of both thisQuadConstraintStreamand the providedBiConstraintStream. TheBiConstraintStreamtuples will be padded from the right by the results of the padding functions.For instance, if this stream consists of
[(A1, A2, A3, A4), (B1, B2, B3, B4), (C1, C2, C3, C4)]and the other stream consists of[(C1, C2), (D1, D2), (E1, E2)],this.concat(other, (a, b) -> null, (a, b) -> null)will consist of[(A1, A2, A3, A4), (B1, B2, B3, B4), (C1, C2, C3, C4), (C1, C2, null, null), (D1, D2, null, null), (E1, E2, null, null)].This operation can be thought of as an or between streams.
- Parameters:
otherStream- never nullpaddingFunctionC- never null, function to find the padding for the third factpaddingFunctionD- never null, function to find the padding for the fourth fact- Returns:
- never null
-
concat
Returns a newQuadConstraintStreamcontaining all the tuples of both thisQuadConstraintStreamand the providedTriConstraintStream. TheTriConstraintStreamtuples will be padded from the right by null.For instance, if this stream consists of
[(A1, A2, A3, A4), (B1, B2, B3, B4), (C1, C2, C3, C4)]and the other stream consists of[(C1, C2, C3), (D1, D2, D3), (E1, E2, E3)],this.concat(other)will consist of[(A1, A2, A3, A4), (B1, B2, B3, B4), (C1, C2, C3, C4), (C1, C2, C3, null), (D1, D2, D3, null), (E1, E2, E3, null)].This operation can be thought of as an or between streams.
- Parameters:
otherStream- never null- Returns:
- never null
-
concat
QuadConstraintStream<A,B, concatC, D> (TriConstraintStream<A, B, C> otherStream, TriFunction<A, B, C, D> paddingFunction) Returns a newQuadConstraintStreamcontaining all the tuples of both thisQuadConstraintStreamand the providedTriConstraintStream. TheTriConstraintStreamtuples will be padded from the right by the result of the padding function.For instance, if this stream consists of
[(A1, A2, A3, A4), (B1, B2, B3, B4), (C1, C2, C3, C4)]and the other stream consists of[(C1, C2, C3), (D1, D2, D3), (E1, E2, E3)],this.concat(other, (a, b, c) -> null)will consist of[(A1, A2, A3, A4), (B1, B2, B3, B4), (C1, C2, C3, C4), (C1, C2, C3, null), (D1, D2, D3, null), (E1, E2, E3, null)].This operation can be thought of as an or between streams.
- Parameters:
otherStream- never nullpaddingFunction- never null, function to find the padding for the fourth fact- Returns:
- never null
-
concat
Returns a newQuadConstraintStreamcontaining all the tuples of both thisQuadConstraintStreamand the providedQuadConstraintStream. Tuples in both thisQuadConstraintStreamand the providedQuadConstraintStreamwill appear at least twice.For instance, if this stream consists of
[(A, 1, -1, a), (B, 2, -2, b), (C, 3, -3, c)]and the other stream consists of[(C, 3, -3, c), (D, 4, -4, d), (E, 5, -5, e)],this.concat(other)will consist of[(A, 1, -1, a), (B, 2, -2, b), (C, 3, -3, c), (C, 3, -3, c), (D, 4, -4, d), (E, 5, -5,e)].This operation can be thought of as an or between streams.
- Parameters:
otherStream- never null- Returns:
- never null
-
complement
As defined bycomplement(Class, Function, Function, Function), where the padding function pads with null. -
complement
default QuadConstraintStream<A,B, complementC, D> (Class<A> otherClass, Function<A, B> paddingFunctionB, Function<A, C> paddingFunctionC, Function<A, D> paddingFunctionD) 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:
otherClass- never nullpaddingFunctionB- never null, function to find the padding for the second factpaddingFunctionC- never null, function to find the padding for the third factpaddingFunctionD- never null, function to find the padding for the fourth fact- Returns:
- never null
-
penalize
default <Score_ extends Score<Score_>> QuadConstraintBuilder<A,B, penalizeC, D, Score_> (Score_ constraintWeight) As defined bypenalize(Score, ToIntQuadFunction), where the match weight is one (1).- Returns:
- never null
-
penalizeLong
default <Score_ extends Score<Score_>> QuadConstraintBuilder<A,B, penalizeLongC, D, Score_> (Score_ constraintWeight) As defined bypenalizeLong(Score, ToLongQuadFunction), where the match weight is one (1).- Returns:
- never null
-
penalizeBigDecimal
default <Score_ extends Score<Score_>> QuadConstraintBuilder<A,B, penalizeBigDecimalC, D, Score_> (Score_ constraintWeight) As defined bypenalizeBigDecimal(Score, QuadFunction), where the match weight is one (1).- Returns:
- never null
-
penalize
<Score_ extends Score<Score_>> QuadConstraintBuilder<A,B, penalizeC, D, Score_> (Score_ constraintWeight, ToIntQuadFunction<A, B, C, D> 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, ToLongQuadFunction)orpenalizeBigDecimal(Score, QuadFunction)instead.- Parameters:
constraintWeight- never nullmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
penalizeLong
<Score_ extends Score<Score_>> QuadConstraintBuilder<A,B, penalizeLongC, D, Score_> (Score_ constraintWeight, ToLongQuadFunction<A, B, C, D> matchWeigher) As defined bypenalize(Score, ToIntQuadFunction), with a penalty of type long. -
penalizeBigDecimal
<Score_ extends Score<Score_>> QuadConstraintBuilder<A,B, penalizeBigDecimalC, D, Score_> (Score_ constraintWeight, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) As defined bypenalize(Score, ToIntQuadFunction), with a penalty of typeBigDecimal. -
penalizeConfigurable
@Deprecated(forRemoval=true, since="1.13.0") default QuadConstraintBuilder<A,B, penalizeConfigurable()C, D, ?> 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") QuadConstraintBuilder<A,B, penalizeConfigurableC, D, ?> (ToIntQuadFunction<A, B, C, D> 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") QuadConstraintBuilder<A,B, penalizeConfigurableLongC, D, ?> (ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalizeConfigurable(ToIntQuadFunction), with a penalty of type long. -
penalizeConfigurableBigDecimal
@Deprecated(forRemoval=true, since="1.13.0") QuadConstraintBuilder<A,B, penalizeConfigurableBigDecimalC, D, ?> (QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalizeConfigurable(ToIntQuadFunction), with a penalty of typeBigDecimal. -
reward
default <Score_ extends Score<Score_>> QuadConstraintBuilder<A,B, rewardC, D, Score_> (Score_ constraintWeight) As defined byreward(Score, ToIntQuadFunction), where the match weight is one (1).- Returns:
- never null
-
reward
<Score_ extends Score<Score_>> QuadConstraintBuilder<A,B, rewardC, D, Score_> (Score_ constraintWeight, ToIntQuadFunction<A, B, C, D> 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, ToLongQuadFunction)orrewardBigDecimal(Score, QuadFunction)instead.- Parameters:
constraintWeight- never nullmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
rewardLong
<Score_ extends Score<Score_>> QuadConstraintBuilder<A,B, rewardLongC, D, Score_> (Score_ constraintWeight, ToLongQuadFunction<A, B, C, D> matchWeigher) As defined byreward(Score, ToIntQuadFunction), with a penalty of type long. -
rewardBigDecimal
<Score_ extends Score<Score_>> QuadConstraintBuilder<A,B, rewardBigDecimalC, D, Score_> (Score_ constraintWeight, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) As defined byreward(Score, ToIntQuadFunction), with a penalty of typeBigDecimal. -
rewardConfigurable
@Deprecated(forRemoval=true, since="1.13.0") default QuadConstraintBuilder<A,B, rewardConfigurable()C, D, ?> 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") QuadConstraintBuilder<A,B, rewardConfigurableC, D, ?> (ToIntQuadFunction<A, B, C, D> 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") QuadConstraintBuilder<A,B, rewardConfigurableLongC, D, ?> (ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byrewardConfigurable(ToIntQuadFunction), with a penalty of type long. -
rewardConfigurableBigDecimal
@Deprecated(forRemoval=true, since="1.13.0") QuadConstraintBuilder<A,B, rewardConfigurableBigDecimalC, D, ?> (QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byrewardConfigurable(ToIntQuadFunction), with a penalty of typeBigDecimal. -
impact
default <Score_ extends Score<Score_>> QuadConstraintBuilder<A,B, impactC, D, Score_> (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.- Parameters:
constraintWeight- never null- Returns:
- never null
-
impact
<Score_ extends Score<Score_>> QuadConstraintBuilder<A,B, impactC, D, Score_> (Score_ constraintWeight, ToIntQuadFunction<A, B, C, D> 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:
constraintWeight- never nullmatchWeigher- never null, the result of this function (matchWeight) is multiplied by the constraintWeight- Returns:
- never null
-
impactLong
<Score_ extends Score<Score_>> QuadConstraintBuilder<A,B, impactLongC, D, Score_> (Score_ constraintWeight, ToLongQuadFunction<A, B, C, D> matchWeigher) As defined byimpact(Score, ToIntQuadFunction), with an impact of type long. -
impactBigDecimal
<Score_ extends Score<Score_>> QuadConstraintBuilder<A,B, impactBigDecimalC, D, Score_> (Score_ constraintWeight, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) As defined byimpact(Score, ToIntQuadFunction), with an impact of typeBigDecimal. -
impactConfigurable
@Deprecated(forRemoval=true, since="1.13.0") default QuadConstraintBuilder<A,B, impactConfigurable()C, D, ?> 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") QuadConstraintBuilder<A,B, impactConfigurableC, D, ?> (ToIntQuadFunction<A, B, C, D> 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") QuadConstraintBuilder<A,B, impactConfigurableLongC, D, ?> (ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byimpactConfigurable(ToIntQuadFunction), with an impact of type long. -
impactConfigurableBigDecimal
@Deprecated(forRemoval=true, since="1.13.0") QuadConstraintBuilder<A,B, impactConfigurableBigDecimalC, D, ?> (QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byimpactConfigurable(ToIntQuadFunction), with an impact of type BigDecimal. -
ifExistsIncludingNullVars
@Deprecated(forRemoval=true, since="1.8.0") default <E> QuadConstraintStream<A,B, ifExistsIncludingNullVarsC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner) Deprecated, for removal: This API element is subject to removal in a future version. -
ifExistsIncludingNullVars
@Deprecated(forRemoval=true, since="1.8.0") default <E> QuadConstraintStream<A,B, ifExistsIncludingNullVarsC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2) Deprecated, for removal: This API element is subject to removal in a future version. -
ifExistsIncludingNullVars
@Deprecated(forRemoval=true, since="1.8.0") default <E> QuadConstraintStream<A,B, ifExistsIncludingNullVarsC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3) Deprecated, for removal: This API element is subject to removal in a future version. -
ifExistsIncludingNullVars
@Deprecated(forRemoval=true, since="1.8.0") default <E> QuadConstraintStream<A,B, ifExistsIncludingNullVarsC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3, PentaJoiner<A, B, C, D, E> joiner4) Deprecated, for removal: This API element is subject to removal in a future version. -
ifExistsIncludingNullVars
@Deprecated(forRemoval=true, since="1.8.0") default <E> QuadConstraintStream<A,B, ifExistsIncludingNullVarsC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E>... joiners) Deprecated, for removal: This API element is subject to removal in a future version. -
ifNotExistsIncludingNullVars
@Deprecated(forRemoval=true, since="1.8.0") default <E> QuadConstraintStream<A,B, ifNotExistsIncludingNullVarsC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner) Deprecated, for removal: This API element is subject to removal in a future version. -
ifNotExistsIncludingNullVars
@Deprecated(forRemoval=true, since="1.8.0") default <E> QuadConstraintStream<A,B, ifNotExistsIncludingNullVarsC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2) Deprecated, for removal: This API element is subject to removal in a future version. -
ifNotExistsIncludingNullVars
@Deprecated(forRemoval=true, since="1.8.0") default <E> QuadConstraintStream<A,B, ifNotExistsIncludingNullVarsC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3) Deprecated, for removal: This API element is subject to removal in a future version. -
ifNotExistsIncludingNullVars
@Deprecated(forRemoval=true, since="1.8.0") default <E> QuadConstraintStream<A,B, ifNotExistsIncludingNullVarsC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E> joiner1, PentaJoiner<A, B, C, D, E> joiner2, PentaJoiner<A, B, C, D, E> joiner3, PentaJoiner<A, B, C, D, E> joiner4) Deprecated, for removal: This API element is subject to removal in a future version. -
ifNotExistsIncludingNullVars
@Deprecated(forRemoval=true, since="1.8.0") default <E> QuadConstraintStream<A,B, ifNotExistsIncludingNullVarsC, D> (Class<E> otherClass, PentaJoiner<A, B, C, D, E>... 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, ToIntQuadFunction<A, B, C, D> 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, ToLongQuadFunction)orpenalizeBigDecimal(String, Score, QuadFunction)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, ToIntQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalize(String, Score, ToIntQuadFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
penalizeLong
@Deprecated(forRemoval=true) default Constraint penalizeLong(String constraintName, Score<?> constraintWeight, ToLongQuadFunction<A, B, C, D> 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, ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalizeLong(String, Score, ToLongQuadFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
penalizeBigDecimal
@Deprecated(forRemoval=true) default Constraint penalizeBigDecimal(String constraintName, Score<?> constraintWeight, QuadFunction<A, B, C, D, 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, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalizeBigDecimal(String, Score, QuadFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
penalizeConfigurable
@Deprecated(forRemoval=true) default Constraint penalizeConfigurable(String constraintName, ToIntQuadFunction<A, B, C, D> 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, ToLongQuadFunction)orpenalizeConfigurableBigDecimal(String, QuadFunction)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, ToIntQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalizeConfigurable(String, ToIntQuadFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
penalizeConfigurableLong
@Deprecated(forRemoval=true) default Constraint penalizeConfigurableLong(String constraintName, ToLongQuadFunction<A, B, C, D> 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, ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalizeConfigurableLong(String, ToLongQuadFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
penalizeConfigurableBigDecimal
@Deprecated(forRemoval=true) default Constraint penalizeConfigurableBigDecimal(String constraintName, QuadFunction<A, B, C, D, 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, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined bypenalizeConfigurableBigDecimal(String, QuadFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
reward
@Deprecated(forRemoval=true) default Constraint reward(String constraintName, Score<?> constraintWeight, ToIntQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Preferreward(Score, ToIntQuadFunction).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, ToLongQuadFunction)orrewardBigDecimal(String, Score, QuadFunction)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, ToIntQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Preferreward(Score, ToIntQuadFunction).As defined byreward(String, Score, ToIntQuadFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
rewardLong
@Deprecated(forRemoval=true) default Constraint rewardLong(String constraintName, Score<?> constraintWeight, ToLongQuadFunction<A, B, C, D> 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, ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byrewardLong(String, Score, ToLongQuadFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
rewardBigDecimal
@Deprecated(forRemoval=true) default Constraint rewardBigDecimal(String constraintName, Score<?> constraintWeight, QuadFunction<A, B, C, D, 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, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byrewardBigDecimal(String, Score, QuadFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
rewardConfigurable
@Deprecated(forRemoval=true) default Constraint rewardConfigurable(String constraintName, ToIntQuadFunction<A, B, C, D> 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, ToLongQuadFunction)orrewardConfigurableBigDecimal(String, QuadFunction)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, ToIntQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byrewardConfigurable(String, ToIntQuadFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
rewardConfigurableLong
@Deprecated(forRemoval=true) default Constraint rewardConfigurableLong(String constraintName, ToLongQuadFunction<A, B, C, D> 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, ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byrewardConfigurableLong(String, ToLongQuadFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
rewardConfigurableBigDecimal
@Deprecated(forRemoval=true) default Constraint rewardConfigurableBigDecimal(String constraintName, QuadFunction<A, B, C, D, 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, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byrewardConfigurableBigDecimal(String, QuadFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
impact
@Deprecated(forRemoval=true) default Constraint impact(String constraintName, Score<?> constraintWeight, ToIntQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Preferimpact(Score, ToIntQuadFunction).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, ToLongQuadFunction)orimpactBigDecimal(String, Score, QuadFunction)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, ToIntQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.Preferimpact(Score, ToIntQuadFunction).As defined byimpact(String, Score, ToIntQuadFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
impactLong
@Deprecated(forRemoval=true) default Constraint impactLong(String constraintName, Score<?> constraintWeight, ToLongQuadFunction<A, B, C, D> 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, ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byimpactLong(String, Score, ToLongQuadFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
impactBigDecimal
@Deprecated(forRemoval=true) default Constraint impactBigDecimal(String constraintName, Score<?> constraintWeight, QuadFunction<A, B, C, D, 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(...)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
-
impactBigDecimal
@Deprecated(forRemoval=true) default Constraint impactBigDecimal(String constraintPackage, String constraintName, Score<?> constraintWeight, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byimpactBigDecimal(String, Score, QuadFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullconstraintWeight- never nullmatchWeigher- never null- Returns:
- never null
-
impactConfigurable
@Deprecated(forRemoval=true) default Constraint impactConfigurable(String constraintName, ToIntQuadFunction<A, B, C, D> 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, ToLongQuadFunction)orimpactConfigurableBigDecimal(String, QuadFunction)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, ToIntQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byimpactConfigurable(String, ToIntQuadFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
impactConfigurableLong
@Deprecated(forRemoval=true) default Constraint impactConfigurableLong(String constraintName, ToLongQuadFunction<A, B, C, D> 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, ToLongQuadFunction<A, B, C, D> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byimpactConfigurableLong(String, ToLongQuadFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
impactConfigurableBigDecimal
@Deprecated(forRemoval=true) default Constraint impactConfigurableBigDecimal(String constraintName, QuadFunction<A, B, C, D, 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(...)orrewardConfigurableBigDecimal(...)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, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) Deprecated, for removal: This API element is subject to removal in a future version.As defined byimpactConfigurableBigDecimal(String, QuadFunction).- Parameters:
constraintPackage- never nullconstraintName- never nullmatchWeigher- never null- Returns:
- never null
-
ifExistsIncludingUnassigned(Class, PentaJoiner).