Uses of Interface
org.optaplanner.core.api.score.stream.uni.UniConstraintStream
Packages that use UniConstraintStream
Package
Description
The
ConstraintStream
API for bi-tuples.The
ConstraintStream
API for four matched facts.The
ConstraintStream
API for tri-tuples.The
ConstraintStream
API for uni-tuples.-
Uses of UniConstraintStream in org.optaplanner.core.api.score.stream
Methods in org.optaplanner.core.api.score.stream that return UniConstraintStreamModifier and TypeMethodDescription<A> UniConstraintStream<A>
Start aConstraintStream
of all instances of the sourceClass that are known asproblem facts
orplanning entities
.<A> UniConstraintStream<A>
ConstraintFactory.forEachIncludingNullVars
(Class<A> sourceClass) As defined byConstraintFactory.forEach(Class)
, but without any filtering of nullplanning entity
variables.<A> UniConstraintStream<A>
Deprecated, for removal: This API element is subject to removal in a future version.<A> UniConstraintStream<A>
ConstraintFactory.fromUnfiltered
(Class<A> fromClass) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of UniConstraintStream in org.optaplanner.core.api.score.stream.bi
Methods in org.optaplanner.core.api.score.stream.bi that return UniConstraintStreamModifier and TypeMethodDescription<GroupKey_>
UniConstraintStream<GroupKey_>BiConstraintStream.groupBy
(BiFunction<A, B, GroupKey_> groupKeyMapping) Convert theBiConstraintStream
to aUniConstraintStream
, containing the set of tuples resulting from applying the group key mapping function on all tuples of the original stream.<ResultContainer_,
Result_>
UniConstraintStream<Result_>BiConstraintStream.groupBy
(BiConstraintCollector<A, B, ResultContainer_, Result_> collector) Runs all tuples of the stream through a given @BiConstraintCollector
and converts them into a newUniConstraintStream
which only has a single tuple, the result of applyingBiConstraintCollector
.<ResultA_> UniConstraintStream<ResultA_>
BiConstraintStream.map
(BiFunction<A, B, ResultA_> mapping) As defined bymap(Function)
.Methods in org.optaplanner.core.api.score.stream.bi with parameters of type UniConstraintStreamModifier and TypeMethodDescriptiondefault <C> TriConstraintStream<A,
B, C> BiConstraintStream.join
(UniConstraintStream<C> otherStream) Create a newTriConstraintStream
for every combination of [A, B] and C.default <C> TriConstraintStream<A,
B, C> BiConstraintStream.join
(UniConstraintStream<C> otherStream, TriJoiner<A, B, C> joiner) Create a newTriConstraintStream
for every combination of [A, B] and C for which theTriJoiner
is true (for the properties it extracts from both facts).<C> TriConstraintStream<A,
B, C> BiConstraintStream.join
(UniConstraintStream<C> otherStream, TriJoiner<A, B, C>... joiners) As defined byBiConstraintStream.join(Class, TriJoiner)
.default <C> TriConstraintStream<A,
B, C> BiConstraintStream.join
(UniConstraintStream<C> otherStream, TriJoiner<A, B, C> joiner1, TriJoiner<A, B, C> joiner2) As defined byBiConstraintStream.join(Class, TriJoiner)
.default <C> TriConstraintStream<A,
B, C> BiConstraintStream.join
(UniConstraintStream<C> otherStream, TriJoiner<A, B, C> joiner1, TriJoiner<A, B, C> joiner2, TriJoiner<A, B, C> joiner3) As defined byBiConstraintStream.join(Class, TriJoiner)
.default <C> TriConstraintStream<A,
B, C> BiConstraintStream.join
(UniConstraintStream<C> otherStream, TriJoiner<A, B, C> joiner1, TriJoiner<A, B, C> joiner2, TriJoiner<A, B, C> joiner3, TriJoiner<A, B, C> joiner4) As defined byBiConstraintStream.join(Class, TriJoiner)
. -
Uses of UniConstraintStream in org.optaplanner.core.api.score.stream.quad
Methods in org.optaplanner.core.api.score.stream.quad that return UniConstraintStreamModifier and TypeMethodDescription<GroupKey_>
UniConstraintStream<GroupKey_>Convert theQuadConstraintStream
to aUniConstraintStream
, containing the set of tuples resulting from applying the group key mapping function on all tuples of the original stream.<ResultContainer_,
Result_>
UniConstraintStream<Result_>Convert theQuadConstraintStream
to aUniConstraintStream
, containing only a single tuple, the result of applyingQuadConstraintCollector
.<ResultA_> UniConstraintStream<ResultA_>
As defined bymap(Function)
. -
Uses of UniConstraintStream in org.optaplanner.core.api.score.stream.tri
Methods in org.optaplanner.core.api.score.stream.tri that return UniConstraintStreamModifier and TypeMethodDescription<GroupKey_>
UniConstraintStream<GroupKey_>TriConstraintStream.groupBy
(TriFunction<A, B, C, GroupKey_> groupKeyMapping) Convert theTriConstraintStream
to aUniConstraintStream
, containing the set of tuples resulting from applying the group key mapping function on all tuples of the original stream.<ResultContainer_,
Result_>
UniConstraintStream<Result_>TriConstraintStream.groupBy
(TriConstraintCollector<A, B, C, ResultContainer_, Result_> collector) Convert theTriConstraintStream
to aUniConstraintStream
, containing only a single tuple, the result of applyingTriConstraintCollector
.<ResultA_> UniConstraintStream<ResultA_>
TriConstraintStream.map
(TriFunction<A, B, C, ResultA_> mapping) As defined bymap(Function)
.Methods in org.optaplanner.core.api.score.stream.tri with parameters of type UniConstraintStreamModifier and TypeMethodDescriptiondefault <D> QuadConstraintStream<A,
B, C, D> TriConstraintStream.join
(UniConstraintStream<D> otherStream) Create a newQuadConstraintStream
for every combination of [A, B, C] and D.default <D> QuadConstraintStream<A,
B, C, D> TriConstraintStream.join
(UniConstraintStream<D> otherStream, QuadJoiner<A, B, C, D> joiner) Create a newQuadConstraintStream
for every combination of [A, B] and C for which theQuadJoiner
is true (for the properties it extracts from all facts).<D> QuadConstraintStream<A,
B, C, D> TriConstraintStream.join
(UniConstraintStream<D> otherStream, QuadJoiner<A, B, C, D>... joiners) As defined byTriConstraintStream.join(Class, QuadJoiner)
.default <D> QuadConstraintStream<A,
B, C, D> TriConstraintStream.join
(UniConstraintStream<D> otherStream, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2) As defined byTriConstraintStream.join(Class, QuadJoiner)
.default <D> QuadConstraintStream<A,
B, C, D> TriConstraintStream.join
(UniConstraintStream<D> otherStream, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3) As defined byTriConstraintStream.join(Class, QuadJoiner)
.default <D> QuadConstraintStream<A,
B, C, D> TriConstraintStream.join
(UniConstraintStream<D> otherStream, QuadJoiner<A, B, C, D> joiner1, QuadJoiner<A, B, C, D> joiner2, QuadJoiner<A, B, C, D> joiner3, QuadJoiner<A, B, C, D> joiner4) As defined byTriConstraintStream.join(Class, QuadJoiner)
. -
Uses of UniConstraintStream in org.optaplanner.core.api.score.stream.uni
Methods in org.optaplanner.core.api.score.stream.uni that return UniConstraintStreamModifier and TypeMethodDescriptionUniConstraintStream.distinct()
Transforms the stream in such a way that all the tuples going through it are distinct.Exhaustively test each fact against thePredicate
and match ifPredicate.test(Object)
returns true.<ResultA_> UniConstraintStream<ResultA_>
UniConstraintStream.flattenLast
(Function<A, Iterable<ResultA_>> mapping) Takes each tuple and applies a mapping on it, which turns the tuple into aIterable
.<GroupKey_>
UniConstraintStream<GroupKey_>Convert theUniConstraintStream
to a differentUniConstraintStream
, containing the set of tuples resulting from applying the group key mapping function on all tuples of the original stream.<ResultContainer_,
Result_>
UniConstraintStream<Result_>UniConstraintStream.groupBy
(UniConstraintCollector<A, ResultContainer_, Result_> collector) Convert theUniConstraintStream
to a differentUniConstraintStream
, containing only a single tuple, the result of applyingUniConstraintCollector
.default <B> UniConstraintStream<A>
Create a newUniConstraintStream
for every A where B exists for which theBiJoiner
is true (for the properties it extracts from both facts).<B> UniConstraintStream<A>
As defined byifExists(Class, BiJoiner)
.default <B> UniConstraintStream<A>
As defined byifExists(Class, BiJoiner)
.default <B> UniConstraintStream<A>
UniConstraintStream.ifExists
(Class<B> otherClass, BiJoiner<A, B> joiner1, BiJoiner<A, B> joiner2, BiJoiner<A, B> joiner3) As defined byifExists(Class, BiJoiner)
.default <B> UniConstraintStream<A>
UniConstraintStream.ifExists
(Class<B> otherClass, BiJoiner<A, B> joiner1, BiJoiner<A, B> joiner2, BiJoiner<A, B> joiner3, BiJoiner<A, B> joiner4) As defined byifExists(Class, BiJoiner)
.default <B> UniConstraintStream<A>
UniConstraintStream.ifExistsIncludingNullVars
(Class<B> otherClass, BiJoiner<A, B> joiner) Create a newUniConstraintStream
for every A where B exists for which theBiJoiner
is true (for the properties it extracts from both facts).<B> UniConstraintStream<A>
UniConstraintStream.ifExistsIncludingNullVars
(Class<B> otherClass, BiJoiner<A, B>... joiners) As defined byifExistsIncludingNullVars(Class, BiJoiner)
.default <B> UniConstraintStream<A>
UniConstraintStream.ifExistsIncludingNullVars
(Class<B> otherClass, BiJoiner<A, B> joiner1, BiJoiner<A, B> joiner2) As defined byifExistsIncludingNullVars(Class, BiJoiner)
.default <B> UniConstraintStream<A>
UniConstraintStream.ifExistsIncludingNullVars
(Class<B> otherClass, BiJoiner<A, B> joiner1, BiJoiner<A, B> joiner2, BiJoiner<A, B> joiner3) As defined byifExistsIncludingNullVars(Class, BiJoiner)
.default <B> UniConstraintStream<A>
UniConstraintStream.ifExistsIncludingNullVars
(Class<B> otherClass, BiJoiner<A, B> joiner1, BiJoiner<A, B> joiner2, BiJoiner<A, B> joiner3, BiJoiner<A, B> joiner4) As defined byifExistsIncludingNullVars(Class, BiJoiner)
.default UniConstraintStream<A>
UniConstraintStream.ifExistsOther
(Class<A> otherClass) Create a newUniConstraintStream
for every A, if another A exists that does notObject.equals(Object)
the first.default UniConstraintStream<A>
Create a newUniConstraintStream
for every A, if another A exists that does notObject.equals(Object)
the first, and for which theBiJoiner
is true (for the properties it extracts from both facts).default UniConstraintStream<A>
As defined byifExistsOther(Class, BiJoiner)
.default UniConstraintStream<A>
UniConstraintStream.ifExistsOther
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2) As defined byifExistsOther(Class, BiJoiner)
.default UniConstraintStream<A>
UniConstraintStream.ifExistsOther
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2, BiJoiner<A, A> joiner3) As defined byifExistsOther(Class, BiJoiner)
.default UniConstraintStream<A>
UniConstraintStream.ifExistsOther
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2, BiJoiner<A, A> joiner3, BiJoiner<A, A> joiner4) As defined byifExistsOther(Class, BiJoiner)
.default UniConstraintStream<A>
UniConstraintStream.ifExistsOtherIncludingNullVars
(Class<A> otherClass) Create a newUniConstraintStream
for every A, if another A exists that does notObject.equals(Object)
the first.default UniConstraintStream<A>
Create a newUniConstraintStream
for every A, if another A exists that does notObject.equals(Object)
the first, and for which theBiJoiner
is true (for the properties it extracts from both facts).default UniConstraintStream<A>
As defined byifExistsOtherIncludingNullVars(Class, BiJoiner)
.default UniConstraintStream<A>
UniConstraintStream.ifExistsOtherIncludingNullVars
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2) As defined byifExistsOther(Class, BiJoiner)
.default UniConstraintStream<A>
UniConstraintStream.ifExistsOtherIncludingNullVars
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2, BiJoiner<A, A> joiner3) As defined byifExistsOtherIncludingNullVars(Class, BiJoiner)
.default UniConstraintStream<A>
UniConstraintStream.ifExistsOtherIncludingNullVars
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2, BiJoiner<A, A> joiner3, BiJoiner<A, A> joiner4) As defined byifExistsOtherIncludingNullVars(Class, BiJoiner)
.default <B> UniConstraintStream<A>
UniConstraintStream.ifNotExists
(Class<B> otherClass, BiJoiner<A, B> joiner) Create a newUniConstraintStream
for every A where B does not exist for which theBiJoiner
is true (for the properties it extracts from both facts).<B> UniConstraintStream<A>
UniConstraintStream.ifNotExists
(Class<B> otherClass, BiJoiner<A, B>... joiners) As defined byifNotExists(Class, BiJoiner)
.default <B> UniConstraintStream<A>
As defined byifNotExists(Class, BiJoiner)
.default <B> UniConstraintStream<A>
UniConstraintStream.ifNotExists
(Class<B> otherClass, BiJoiner<A, B> joiner1, BiJoiner<A, B> joiner2, BiJoiner<A, B> joiner3) As defined byifNotExists(Class, BiJoiner)
.default <B> UniConstraintStream<A>
UniConstraintStream.ifNotExists
(Class<B> otherClass, BiJoiner<A, B> joiner1, BiJoiner<A, B> joiner2, BiJoiner<A, B> joiner3, BiJoiner<A, B> joiner4) As defined byifNotExists(Class, BiJoiner)
.default <B> UniConstraintStream<A>
UniConstraintStream.ifNotExistsIncludingNullVars
(Class<B> otherClass, BiJoiner<A, B> joiner) Create a newUniConstraintStream
for every A where B does not exist for which theBiJoiner
is true (for the properties it extracts from both facts).<B> UniConstraintStream<A>
UniConstraintStream.ifNotExistsIncludingNullVars
(Class<B> otherClass, BiJoiner<A, B>... joiners) As defined byifNotExistsIncludingNullVars(Class, BiJoiner)
.default <B> UniConstraintStream<A>
UniConstraintStream.ifNotExistsIncludingNullVars
(Class<B> otherClass, BiJoiner<A, B> joiner1, BiJoiner<A, B> joiner2) As defined byifNotExistsIncludingNullVars(Class, BiJoiner)
.default <B> UniConstraintStream<A>
UniConstraintStream.ifNotExistsIncludingNullVars
(Class<B> otherClass, BiJoiner<A, B> joiner1, BiJoiner<A, B> joiner2, BiJoiner<A, B> joiner3) As defined byifNotExistsIncludingNullVars(Class, BiJoiner)
.default <B> UniConstraintStream<A>
UniConstraintStream.ifNotExistsIncludingNullVars
(Class<B> otherClass, BiJoiner<A, B> joiner1, BiJoiner<A, B> joiner2, BiJoiner<A, B> joiner3, BiJoiner<A, B> joiner4) As defined byifNotExistsIncludingNullVars(Class, BiJoiner)
.default UniConstraintStream<A>
UniConstraintStream.ifNotExistsOther
(Class<A> otherClass) Create a newUniConstraintStream
for every A, if no other A exists that does notObject.equals(Object)
the first.default UniConstraintStream<A>
Create a newUniConstraintStream
for every A, if no other A exists that does notObject.equals(Object)
the first, and for which theBiJoiner
is true (for the properties it extracts from both facts).default UniConstraintStream<A>
As defined byifNotExistsOther(Class, BiJoiner)
.default UniConstraintStream<A>
UniConstraintStream.ifNotExistsOther
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2) As defined byifNotExistsOther(Class, BiJoiner)
.default UniConstraintStream<A>
UniConstraintStream.ifNotExistsOther
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2, BiJoiner<A, A> joiner3) As defined byifNotExistsOther(Class, BiJoiner)
.default UniConstraintStream<A>
UniConstraintStream.ifNotExistsOther
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2, BiJoiner<A, A> joiner3, BiJoiner<A, A> joiner4) As defined byifNotExistsOther(Class, BiJoiner)
.default UniConstraintStream<A>
UniConstraintStream.ifNotExistsOtherIncludingNullVars
(Class<A> otherClass) Create a newUniConstraintStream
for every A, if no other A exists that does notObject.equals(Object)
the first.default UniConstraintStream<A>
Create a newUniConstraintStream
for every A, if no other A exists that does notObject.equals(Object)
the first, and for which theBiJoiner
is true (for the properties it extracts from both facts).default UniConstraintStream<A>
UniConstraintStream.ifNotExistsOtherIncludingNullVars
(Class<A> otherClass, BiJoiner<A, A>... joiners) As defined byifNotExistsOtherIncludingNullVars(Class, BiJoiner)
.default UniConstraintStream<A>
UniConstraintStream.ifNotExistsOtherIncludingNullVars
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2) As defined byifNotExistsOtherIncludingNullVars(Class, BiJoiner)
.default UniConstraintStream<A>
UniConstraintStream.ifNotExistsOtherIncludingNullVars
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2, BiJoiner<A, A> joiner3) As defined byifNotExistsOtherIncludingNullVars(Class, BiJoiner)
.default UniConstraintStream<A>
UniConstraintStream.ifNotExistsOtherIncludingNullVars
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2, BiJoiner<A, A> joiner3, BiJoiner<A, A> joiner4) As defined byifNotExistsOtherIncludingNullVars(Class, BiJoiner)
.<ResultA_> UniConstraintStream<ResultA_>
Transforms the stream in such a way that tuples are remapped using the given function.Methods in org.optaplanner.core.api.score.stream.uni with parameters of type UniConstraintStreamModifier and TypeMethodDescriptiondefault <B> BiConstraintStream<A,
B> UniConstraintStream.join
(UniConstraintStream<B> otherStream) Create a newBiConstraintStream
for every combination of A and B.default <B> BiConstraintStream<A,
B> UniConstraintStream.join
(UniConstraintStream<B> otherStream, BiJoiner<A, B> joiner) Create a newBiConstraintStream
for every combination of A and B for which theBiJoiner
is true (for the properties it extracts from both facts).<B> BiConstraintStream<A,
B> UniConstraintStream.join
(UniConstraintStream<B> otherStream, BiJoiner<A, B>... joiners) As defined byjoin(UniConstraintStream, BiJoiner)
.default <B> BiConstraintStream<A,
B> UniConstraintStream.join
(UniConstraintStream<B> otherStream, BiJoiner<A, B> joiner1, BiJoiner<A, B> joiner2) As defined byjoin(UniConstraintStream, BiJoiner)
.default <B> BiConstraintStream<A,
B> UniConstraintStream.join
(UniConstraintStream<B> otherStream, BiJoiner<A, B> joiner1, BiJoiner<A, B> joiner2, BiJoiner<A, B> joiner3) As defined byjoin(UniConstraintStream, BiJoiner)
.default <B> BiConstraintStream<A,
B> UniConstraintStream.join
(UniConstraintStream<B> otherStream, BiJoiner<A, B> joiner1, BiJoiner<A, B> joiner2, BiJoiner<A, B> joiner3, BiJoiner<A, B> joiner4) As defined byjoin(UniConstraintStream, BiJoiner)
.
ConstraintFactory.forEach(Class)
, which exhibits the same behavior for both nullable and non-nullable planning variables.