if (bendableHardLevelsSize == null || bendableSoftLevelsSize == null) {
throw new IllegalArgumentException("With scoreDefinitionType (" + scoreDefinitionType
+ ") there must be a bendableHardLevelsSize (" + bendableHardLevelsSize
+ ") and a bendableSoftLevelsSize (" + bendableSoftLevelsSize + ").");
}
return new BendableBigDecimalScoreDefinition(bendableHardLevelsSize, bendableSoftLevelsSize);
default:
throw new IllegalStateException("The scoreDefinitionType (" + scoreDefinitionType
+ ") is not implemented.");
}
} else {