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