optaplanner-core/src/main/java/org/optaplanner/core/api/score/buildin/bendablebigdecimal/BendableBigDecimalScore.java
public static BendableBigDecimalScore ofHard(int hardLevelsSize, int softLevelsSize, int hardLevel, BigDecimal hardScore) {
        BigDecimal[] hardScores = new BigDecimal[hardLevelsSize];
        Arrays.fill(hardScores, BigDecimal.ZERO);
        BigDecimal[] softScores = new BigDecimal[softLevelsSize];
        Arrays.fill(softScores, BigDecimal.ZERO);
        hardScores[hardLevel] = hardScore;
        return new BendableBigDecimalScore(0, hardScores, softScores);
    }
public static BendableBigDecimalScore ofHard(int hardLevelsSize, int softLevelsSize, int hardLevel, BigDecimal hardScore) {
        BigDecimal[] hardScores = new BigDecimal[hardLevelsSize];
        Arrays.fill(hardScores, BigDecimal.ZERO);
        BigDecimal[] softScores = new BigDecimal[softLevelsSize];
        Arrays.fill(softScores, BigDecimal.ZERO);
        hardScores[hardLevel] = hardScore;
        return new BendableBigDecimalScore(0, hardScores, softScores);
    }
public static BendableBigDecimalScore ofHard ( int hardLevelsSize , int softLevelsSize , int hardLevel , BigDecimal hardScore ) { BigDecimal [ ] hardScores = new BigDecimal [ hardLevelsSize ] ; Arrays . fill ( hardScores , BigDecimal . ZERO ) ; BigDecimal [ ] softScores = new BigDecimal [ softLevelsSize ] ; Arrays . fill ( softScores , BigDecimal . ZERO ) ; hardScores [ hardLevel ] = hardScore ; return new BendableBigDecimalScore ( 0 , hardScores , softScores ) ; }
Creates a new {@link BendableBigDecimalScore}.
@param hardLevelsSize at least 0
@param softLevelsSize at least 0
@param hardLevel at least 0, less than hardLevelsSize
@param hardScore never null
@return never null
Creates a new {