class HardSoftBigDecimalScoreInliner extends AbstractScoreInliner<HardSoftBigDecimalScore> {

    private BigDecimal hardScore = BigDecimal.ZERO;
    private BigDecimal softScore = BigDecimal.ZERO;

    HardSoftBigDecimalScoreInliner(boolean constraintMatchEnabled) {
        super(constraintMatchEnabled);
    }

    @Override
    public WeightedScoreImpacter<HardSoftBigDecimalScore, HardSoftBigDecimalScoreContext> buildWeightedScoreImpacter(
            Constraint constraint, HardSoftBigDecimalScore constraintWeight) {<FILL_FUNCTION_BODY>}

    @Override
    public HardSoftBigDecimalScore extractScore(int initScore) {
        return HardSoftBigDecimalScore.ofUninitialized(initScore, hardScore, softScore);
    }

    @Override
    public String toString() {
        return HardSoftBigDecimalScore.class.getSimpleName() + " inliner";
    }

}

        validateConstraintWeight(constraint, constraintWeight);
        HardSoftBigDecimalScoreContext context =
                new HardSoftBigDecimalScoreContext(this, constraint, constraintWeight,
                        impact -> this.hardScore = this.hardScore.add(impact),
                        impact -> this.softScore = this.softScore.add(impact));
        if (constraintWeight.softScore().equals(BigDecimal.ZERO)) {
            return WeightedScoreImpacter.of(context, HardSoftBigDecimalScoreContext::changeHardScoreBy);
        } else if (constraintWeight.hardScore().equals(BigDecimal.ZERO)) {
            return WeightedScoreImpacter.of(context, HardSoftBigDecimalScoreContext::changeSoftScoreBy);
        } else {
            return WeightedScoreImpacter.of(context, HardSoftBigDecimalScoreContext::changeScoreBy);
        }
    
<methods>public static ScoreInliner_ buildScoreInliner(ScoreDefinition<Score_>, boolean) ,public abstract WeightedScoreImpacter<org.optaplanner.core.api.score.buildin.hardsoftbigdecimal.HardSoftBigDecimalScore,?> buildWeightedScoreImpacter(org.optaplanner.core.api.score.stream.Constraint, org.optaplanner.core.api.score.buildin.hardsoftbigdecimal.HardSoftBigDecimalScore) ,public abstract org.optaplanner.core.api.score.buildin.hardsoftbigdecimal.HardSoftBigDecimalScore extractScore(int) ,public final Map<java.lang.String,ConstraintMatchTotal<org.optaplanner.core.api.score.buildin.hardsoftbigdecimal.HardSoftBigDecimalScore>> getConstraintMatchTotalMap() ,public final Map<java.lang.Object,Indictment<org.optaplanner.core.api.score.buildin.hardsoftbigdecimal.HardSoftBigDecimalScore>> getIndictmentMap() ,public boolean isConstraintMatchEnabled() <variables>private static final java.lang.String CUSTOM_SCORE_INLINER_CLASS_PROPERTY_NAME,protected final non-sealed boolean constraintMatchEnabled,private final non-sealed Map<java.lang.String,DefaultConstraintMatchTotal<org.optaplanner.core.api.score.buildin.hardsoftbigdecimal.HardSoftBigDecimalScore>> constraintMatchTotalMap,private final non-sealed Map<java.lang.Object,DefaultIndictment<org.optaplanner.core.api.score.buildin.hardsoftbigdecimal.HardSoftBigDecimalScore>> indictmentMap