Package | Description |
---|---|
org.optaplanner.core.api.score.stream |
The
ConstraintStream API:
a way to define constraints for Score calculation. |
org.optaplanner.core.api.score.stream.bi |
The
ConstraintStream API for two matched facts. |
org.optaplanner.core.api.score.stream.uni |
The
ConstraintStream API for one matched fact. |
org.optaplanner.core.impl.score.stream.bavet | |
org.optaplanner.core.impl.score.stream.bavet.bi | |
org.optaplanner.core.impl.score.stream.bavet.uni |
Modifier and Type | Method and Description |
---|---|
default <A> BiConstraintStream<A,A> |
ConstraintFactory.fromUniquePair(Class<A> fromClass)
Create a new
BiConstraintStream for every unique combination of A and another A with a higher PlanningId . |
default <A> BiConstraintStream<A,A> |
ConstraintFactory.fromUniquePair(Class<A> fromClass,
BiJoiner<A,A>... joiners)
As defined by
ConstraintFactory.fromUniquePair(Class, BiJoiner) . |
<A> BiConstraintStream<A,A> |
ConstraintFactory.fromUniquePair(Class<A> fromClass,
BiJoiner<A,A> joiner)
Create a new
BiConstraintStream for every unique combination of A and another A with a higher PlanningId
for which the BiJoiner is true (for the properties it extracts from both facts). |
default <A> BiConstraintStream<A,A> |
ConstraintFactory.fromUniquePair(Class<A> fromClass,
BiJoiner<A,A> joiner1,
BiJoiner<A,A> joiner2)
As defined by
ConstraintFactory.fromUniquePair(Class, BiJoiner) . |
default <A> BiConstraintStream<A,A> |
ConstraintFactory.fromUniquePair(Class<A> fromClass,
BiJoiner<A,A> joiner1,
BiJoiner<A,A> joiner2,
BiJoiner<A,A> joiner3)
As defined by
ConstraintFactory.fromUniquePair(Class, BiJoiner) . |
default <A> BiConstraintStream<A,A> |
ConstraintFactory.fromUniquePair(Class<A> fromClass,
BiJoiner<A,A> joiner1,
BiJoiner<A,A> joiner2,
BiJoiner<A,A> joiner3,
BiJoiner<A,A> joiner4)
As defined by
ConstraintFactory.fromUniquePair(Class, BiJoiner) . |
Modifier and Type | Method and Description |
---|---|
BiConstraintStream<A,B> |
BiConstraintStream.filter(BiPredicate<A,B> predicate)
Exhaustively test each tuple of facts against the
BiPredicate
and match if BiPredicate.test(Object, Object) returns true. |
<GroupKey_,ResultContainer_,Result_> |
BiConstraintStream.groupBy(BiFunction<A,B,GroupKey_> groupKeyMapping,
BiConstraintCollector<A,B,ResultContainer_,Result_> collector) |
<GroupKeyA_,GroupKeyB_> |
BiConstraintStream.groupBy(BiFunction<A,B,GroupKeyA_> groupKeyAMapping,
BiFunction<A,B,GroupKeyB_> groupKeyBMapping) |
Modifier and Type | Method and Description |
---|---|
<GroupKey_,ResultContainer_,Result_> |
UniConstraintStream.groupBy(Function<A,GroupKey_> groupKeyMapping,
UniConstraintCollector<A,ResultContainer_,Result_> collector) |
<GroupKeyA_,GroupKeyB_> |
UniConstraintStream.groupBy(Function<A,GroupKeyA_> groupKeyAMapping,
Function<A,GroupKeyB_> groupKeyBMapping) |
default <B> BiConstraintStream<A,B> |
UniConstraintStream.join(Class<B> otherClass)
Create a new
BiConstraintStream for every combination of A and B. |
default <B> BiConstraintStream<A,B> |
UniConstraintStream.join(Class<B> otherClass,
BiJoiner<A,B>... joiners)
As defined by
UniConstraintStream.join(Class, BiJoiner) . |
default <B> BiConstraintStream<A,B> |
UniConstraintStream.join(Class<B> otherClass,
BiJoiner<A,B> joiner)
Create a new
BiConstraintStream for every combination of A and B
for which the BiJoiner is true (for the properties it extracts from both facts). |
default <B> BiConstraintStream<A,B> |
UniConstraintStream.join(Class<B> otherClass,
BiJoiner<A,B> joiner1,
BiJoiner<A,B> joiner2)
As defined by
UniConstraintStream.join(Class, BiJoiner) . |
default <B> BiConstraintStream<A,B> |
UniConstraintStream.join(Class<B> otherClass,
BiJoiner<A,B> joiner1,
BiJoiner<A,B> joiner2,
BiJoiner<A,B> joiner3)
As defined by
UniConstraintStream.join(Class, BiJoiner) . |
default <B> BiConstraintStream<A,B> |
UniConstraintStream.join(Class<B> otherClass,
BiJoiner<A,B> joiner1,
BiJoiner<A,B> joiner2,
BiJoiner<A,B> joiner3,
BiJoiner<A,B> joiner4)
As defined by
UniConstraintStream.join(Class, BiJoiner) . |
default <B> BiConstraintStream<A,B> |
UniConstraintStream.join(UniConstraintStream<B> otherStream)
Create a new
BiConstraintStream for every combination of A and B. |
<B> BiConstraintStream<A,B> |
UniConstraintStream.join(UniConstraintStream<B> otherStream,
BiJoiner<A,B> joiner)
Create a new
BiConstraintStream for every combination of A and B for which the BiJoiner
is true (for the properties it extracts from both facts). |
Modifier and Type | Method and Description |
---|---|
<A> BiConstraintStream<A,A> |
BavetConstraintFactory.fromUniquePair(Class<A> fromClass,
BiJoiner<A,A> joiner) |
Modifier and Type | Class and Description |
---|---|
class |
BavetAbstractBiConstraintStream<Solution_,A,B> |
class |
BavetFilterBiConstraintStream<Solution_,A,B> |
class |
BavetGroupBiConstraintStream<Solution_,GroupKey_,ResultContainer_,Result_> |
class |
BavetJoinBiConstraintStream<Solution_,A,B> |
class |
BavetJoinBridgeBiConstraintStream<Solution_,A,B> |
class |
BavetScoringBiConstraintStream<Solution_,A,B> |
Modifier and Type | Method and Description |
---|---|
<GroupKey_,ResultContainer_,Result_> |
BavetAbstractBiConstraintStream.groupBy(BiFunction<A,B,GroupKey_> groupKeyMapping,
BiConstraintCollector<A,B,ResultContainer_,Result_> collector) |
<GroupKeyA_,GroupKeyB_> |
BavetAbstractBiConstraintStream.groupBy(BiFunction<A,B,GroupKeyA_> groupKeyAMapping,
BiFunction<A,B,GroupKeyB_> groupKeyBMapping) |
Modifier and Type | Method and Description |
---|---|
<GroupKey_,ResultContainer_,Result_> |
BavetAbstractUniConstraintStream.groupBy(Function<A,GroupKey_> groupKeyMapping,
UniConstraintCollector<A,ResultContainer_,Result_> collector) |
<GroupKeyA_,GroupKeyB_> |
BavetAbstractUniConstraintStream.groupBy(Function<A,GroupKeyA_> groupKeyAMapping,
Function<A,GroupKeyB_> groupKeyBMapping) |
<B> BiConstraintStream<A,B> |
BavetAbstractUniConstraintStream.join(UniConstraintStream<B> otherStream,
BiJoiner<A,B> joiner) |
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.