Class UniConstraintBuilderImpl<A,Score_ extends org.optaplanner.core.api.score.Score<Score_>>
java.lang.Object
org.optaplanner.constraint.streams.common.AbstractConstraintBuilder<Score_>
org.optaplanner.constraint.streams.common.uni.UniConstraintBuilderImpl<A,Score_>
- All Implemented Interfaces:
org.optaplanner.core.api.score.stream.ConstraintBuilder,org.optaplanner.core.api.score.stream.uni.UniConstraintBuilder<A,Score_>
public final class UniConstraintBuilderImpl<A,Score_ extends org.optaplanner.core.api.score.Score<Score_>>
extends AbstractConstraintBuilder<Score_>
implements org.optaplanner.core.api.score.stream.uni.UniConstraintBuilder<A,Score_>
-
Constructor Summary
ConstructorsConstructorDescriptionUniConstraintBuilderImpl(UniConstraintConstructor<A, Score_> constraintConstructor, ScoreImpactType impactType, Score_ constraintWeight) -
Method Summary
Modifier and TypeMethodDescriptionprotected Function<A,Collection<Object>> protected BiFunction<A,Score_, org.optaplanner.core.api.score.stream.ConstraintJustification> indictWith(Function<A, Collection<Object>> indictedObjectsMapping) <ConstraintJustification_ extends org.optaplanner.core.api.score.stream.ConstraintJustification>
org.optaplanner.core.api.score.stream.uni.UniConstraintBuilder<A,Score_> justifyWith(BiFunction<A, Score_, ConstraintJustification_> justificationMapping) Methods inherited from class org.optaplanner.constraint.streams.common.AbstractConstraintBuilder
asConstraint, asConstraintMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.optaplanner.core.api.score.stream.ConstraintBuilder
asConstraint, asConstraint
-
Constructor Details
-
UniConstraintBuilderImpl
public UniConstraintBuilderImpl(UniConstraintConstructor<A, Score_> constraintConstructor, ScoreImpactType impactType, Score_ constraintWeight)
-
-
Method Details
-
getJustificationMapping
protected BiFunction<A,Score_, getJustificationMapping()org.optaplanner.core.api.score.stream.ConstraintJustification> - Specified by:
getJustificationMappingin classAbstractConstraintBuilder<Score_ extends org.optaplanner.core.api.score.Score<Score_>>
-
justifyWith
public <ConstraintJustification_ extends org.optaplanner.core.api.score.stream.ConstraintJustification> org.optaplanner.core.api.score.stream.uni.UniConstraintBuilder<A,Score_> justifyWith(BiFunction<A, Score_, ConstraintJustification_> justificationMapping) -
getIndictedObjectsMapping
- Specified by:
getIndictedObjectsMappingin classAbstractConstraintBuilder<Score_ extends org.optaplanner.core.api.score.Score<Score_>>
-
indictWith
-