Uses of Interface
org.optaplanner.core.api.score.stream.bi.BiJoiner
Package
Description
The
ConstraintStream
API for bi-tuples.The
ConstraintStream
API for uni-tuples.-
Uses of BiJoiner in org.optaplanner.core.api.score.stream
Modifier and TypeMethodDescriptionstatic <A> BiJoiner<A,
A> Joiners.equal()
As defined byJoiners.equal(Function)
withFunction.identity()
as the argument.static <A,
Property_>
BiJoiner<A,A> As defined byJoiners.equal(Function, Function)
with both arguments using the same mapping.static <A,
B, Property_>
BiJoiner<A,B> Joins every A and B that share a property.static <A,
B> BiJoiner<A, B> Joiners.filtering
(BiPredicate<A, B> filter) Applies a filter to the joined tuple, with the semantics ofBiConstraintStream.filter(BiPredicate)
.static <A,
Property_ extends Comparable<Property_>>
BiJoiner<A,A> Joiners.greaterThan
(Function<A, Property_> mapping) As defined byJoiners.greaterThan(Function, Function)
with both arguments using the same mapping.static <A,
B, Property_ extends Comparable<Property_>>
BiJoiner<A,B> Joiners.greaterThan
(Function<A, Property_> leftMapping, Function<B, Property_> rightMapping) Joins every A and B where a value of property on A is greater than the value of a property on B.static <A,
Property_ extends Comparable<Property_>>
BiJoiner<A,A> Joiners.greaterThanOrEqual
(Function<A, Property_> mapping) As defined byJoiners.greaterThanOrEqual(Function, Function)
with both arguments using the same mapping.static <A,
B, Property_ extends Comparable<Property_>>
BiJoiner<A,B> Joiners.greaterThanOrEqual
(Function<A, Property_> leftMapping, Function<B, Property_> rightMapping) Joins every A and B where a value of property on A is greater than or equal to the value of a property on B.static <A,
Property_ extends Comparable<Property_>>
BiJoiner<A,A> As defined byJoiners.lessThan(Function, Function)
with both arguments using the same mapping.static <A,
B, Property_ extends Comparable<Property_>>
BiJoiner<A,B> Joins every A and B where a value of property on A is less than the value of a property on B.static <A,
Property_ extends Comparable<Property_>>
BiJoiner<A,A> Joiners.lessThanOrEqual
(Function<A, Property_> mapping) As defined byJoiners.lessThanOrEqual(Function, Function)
with both arguments using the same mapping.static <A,
B, Property_ extends Comparable<Property_>>
BiJoiner<A,B> Joiners.lessThanOrEqual
(Function<A, Property_> leftMapping, Function<B, Property_> rightMapping) Joins every A and B where a value of property on A is less than or equal to the value of a property on B.static <A,
Property_ extends Comparable<Property_>>
BiJoiner<A,A> Joiners.overlapping
(Function<A, Property_> startMapping, Function<A, Property_> endMapping) Joins every A and B that overlap for an interval which is specified by a start and end property on both A and B.static <A,
B, Property_ extends Comparable<Property_>>
BiJoiner<A,B> Joiners.overlapping
(Function<A, Property_> leftStartMapping, Function<A, Property_> leftEndMapping, Function<B, Property_> rightStartMapping, Function<B, Property_> rightEndMapping) As defined byJoiners.overlapping(Function, Function)
.Modifier and TypeMethodDescriptiondefault <A> BiConstraintStream<A,
A> ConstraintFactory.forEachUniquePair
(Class<A> sourceClass, BiJoiner<A, A> joiner) Create a newBiConstraintStream
for every unique combination of A and another A with a higherPlanningId
for which theBiJoiner
is true (for the properties it extracts from both facts).<A> BiConstraintStream<A,
A> ConstraintFactory.forEachUniquePair
(Class<A> sourceClass, BiJoiner<A, A>... joiners) As defined byConstraintFactory.forEachUniquePair(Class, BiJoiner)
.default <A> BiConstraintStream<A,
A> ConstraintFactory.forEachUniquePair
(Class<A> sourceClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2) As defined byConstraintFactory.forEachUniquePair(Class, BiJoiner)
.default <A> BiConstraintStream<A,
A> ConstraintFactory.forEachUniquePair
(Class<A> sourceClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2, BiJoiner<A, A> joiner3) As defined byConstraintFactory.forEachUniquePair(Class, BiJoiner)
.default <A> BiConstraintStream<A,
A> ConstraintFactory.forEachUniquePair
(Class<A> sourceClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2, BiJoiner<A, A> joiner3, BiJoiner<A, A> joiner4) As defined byConstraintFactory.forEachUniquePair(Class, BiJoiner)
.default <A> BiConstraintStream<A,
A> ConstraintFactory.fromUniquePair
(Class<A> fromClass, BiJoiner<A, A> joiner) Deprecated, for removal: This API element is subject to removal in a future version.<A> BiConstraintStream<A,
A> ConstraintFactory.fromUniquePair
(Class<A> fromClass, BiJoiner<A, A>... joiners) Deprecated, for removal: This API element is subject to removal in a future version.PreferConstraintFactory.forEachUniquePair(Class, BiJoiner...)
, which exhibits the same behavior for both nullable and non-nullable planning variables.default <A> BiConstraintStream<A,
A> ConstraintFactory.fromUniquePair
(Class<A> fromClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2) Deprecated, for removal: This API element is subject to removal in a future version.PreferConstraintFactory.forEachUniquePair(Class, BiJoiner, BiJoiner)
, which exhibits the same behavior for both nullable and non-nullable planning variables.default <A> BiConstraintStream<A,
A> ConstraintFactory.fromUniquePair
(Class<A> fromClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2, BiJoiner<A, A> joiner3) Deprecated, for removal: This API element is subject to removal in a future version.PreferConstraintFactory.forEachUniquePair(Class, BiJoiner, BiJoiner, BiJoiner)
, which exhibits the same behavior for both nullable and non-nullable planning variables.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) Deprecated, for removal: This API element is subject to removal in a future version.PreferConstraintFactory.forEachUniquePair(Class, BiJoiner, BiJoiner, BiJoiner, BiJoiner)
, which exhibits the same behavior for both nullable and non-nullable planning variables. -
Uses of BiJoiner in org.optaplanner.core.api.score.stream.bi
-
Uses of BiJoiner in org.optaplanner.core.api.score.stream.uni
Modifier and TypeMethodDescriptiondefault <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 byUniConstraintStream.ifExists(Class, BiJoiner)
.default <B> UniConstraintStream<A>
As defined byUniConstraintStream.ifExists(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 byUniConstraintStream.ifExists(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 byUniConstraintStream.ifExists(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) default <B> UniConstraintStream<A>
UniConstraintStream.ifExistsIncludingNullVars
(Class<B> otherClass, BiJoiner<A, B> joiner1, BiJoiner<A, B> joiner2) default <B> UniConstraintStream<A>
UniConstraintStream.ifExistsIncludingNullVars
(Class<B> otherClass, BiJoiner<A, B> joiner1, BiJoiner<A, B> joiner2, BiJoiner<A, B> joiner3) 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) 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 byUniConstraintStream.ifExistsOther(Class, BiJoiner)
.default UniConstraintStream<A>
UniConstraintStream.ifExistsOther
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2) As defined byUniConstraintStream.ifExistsOther(Class, BiJoiner)
.default UniConstraintStream<A>
UniConstraintStream.ifExistsOther
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2, BiJoiner<A, A> joiner3) As defined byUniConstraintStream.ifExistsOther(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 byUniConstraintStream.ifExistsOther(Class, BiJoiner)
.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>
default UniConstraintStream<A>
UniConstraintStream.ifExistsOtherIncludingNullVars
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2) As defined byUniConstraintStream.ifExistsOther(Class, BiJoiner)
.default UniConstraintStream<A>
UniConstraintStream.ifExistsOtherIncludingNullVars
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2, BiJoiner<A, A> joiner3) default UniConstraintStream<A>
UniConstraintStream.ifExistsOtherIncludingNullVars
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2, BiJoiner<A, A> joiner3, BiJoiner<A, A> joiner4) 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 byUniConstraintStream.ifNotExists(Class, BiJoiner)
.default <B> UniConstraintStream<A>
As defined byUniConstraintStream.ifNotExists(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 byUniConstraintStream.ifNotExists(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 byUniConstraintStream.ifNotExists(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) default <B> UniConstraintStream<A>
UniConstraintStream.ifNotExistsIncludingNullVars
(Class<B> otherClass, BiJoiner<A, B> joiner1, BiJoiner<A, B> joiner2) default <B> UniConstraintStream<A>
UniConstraintStream.ifNotExistsIncludingNullVars
(Class<B> otherClass, BiJoiner<A, B> joiner1, BiJoiner<A, B> joiner2, BiJoiner<A, B> joiner3) 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) 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 byUniConstraintStream.ifNotExistsOther(Class, BiJoiner)
.default UniConstraintStream<A>
UniConstraintStream.ifNotExistsOther
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2) As defined byUniConstraintStream.ifNotExistsOther(Class, BiJoiner)
.default UniConstraintStream<A>
UniConstraintStream.ifNotExistsOther
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2, BiJoiner<A, A> joiner3) As defined byUniConstraintStream.ifNotExistsOther(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 byUniConstraintStream.ifNotExistsOther(Class, BiJoiner)
.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) default UniConstraintStream<A>
UniConstraintStream.ifNotExistsOtherIncludingNullVars
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2) default UniConstraintStream<A>
UniConstraintStream.ifNotExistsOtherIncludingNullVars
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2, BiJoiner<A, A> joiner3) default UniConstraintStream<A>
UniConstraintStream.ifNotExistsOtherIncludingNullVars
(Class<A> otherClass, BiJoiner<A, A> joiner1, BiJoiner<A, A> joiner2, BiJoiner<A, A> joiner3, BiJoiner<A, A> joiner4) default <B> BiConstraintStream<A,
B> 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> As defined byUniConstraintStream.join(Class, BiJoiner)
.default <B> BiConstraintStream<A,
B> As defined byUniConstraintStream.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 byUniConstraintStream.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 byUniConstraintStream.join(Class, BiJoiner)
.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 byUniConstraintStream.join(UniConstraintStream, BiJoiner)
.default <B> BiConstraintStream<A,
B> UniConstraintStream.join
(UniConstraintStream<B> otherStream, BiJoiner<A, B> joiner1, BiJoiner<A, B> joiner2) As defined byUniConstraintStream.join(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 byUniConstraintStream.join(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 byUniConstraintStream.join(UniConstraintStream, BiJoiner)
. -
Uses of BiJoiner in org.optaplanner.core.impl.score.stream
Modifier and TypeMethodDescription<A,
B> BiJoiner<A, B> JoinerService.newBiJoiner
(BiPredicate<A, B> filter) <A,
B, Property_>
BiJoiner<A,B> JoinerService.newBiJoiner
(Function<A, Property_> leftMapping, JoinerType joinerType, Function<B, Property_> rightMapping)
ConstraintFactory.forEachUniquePair(Class, BiJoiner)
, which exhibits the same behavior for both nullable and non-nullable planning variables.