Package org.optaplanner.core.api.score
Interface IBendableScore<Score_ extends IBendableScore<Score_>>
- Type Parameters:
- Score_- the actual score type to allow addition, subtraction and other arithmetic
- All Superinterfaces:
- Comparable<Score_>,- Score<Score_>,- Serializable
- All Known Implementing Classes:
- AbstractBendableScore,- BendableBigDecimalScore,- BendableLongScore,- BendableScore
public interface IBendableScore<Score_ extends IBendableScore<Score_>>
extends Score<Score_>, Serializable
- 
Method SummaryModifier and TypeMethodDescriptiondefault intDeprecated, for removal: This API element is subject to removal in a future version.default intDeprecated, for removal: This API element is subject to removal in a future version.UselevelsSize()instead.default intDeprecated, for removal: This API element is subject to removal in a future version.UsesoftLevelsSize()instead.intThe sum of this andsoftLevelsSize()equalslevelsSize().default intintThe sum ofhardLevelsSize()and this equalslevelsSize().Methods inherited from interface java.lang.ComparablecompareToMethods inherited from interface org.optaplanner.core.api.score.Scoreabs, add, divide, getInitScore, initScore, isFeasible, isSolutionInitialized, isZero, multiply, negate, power, subtract, toLevelDoubles, toLevelNumbers, toShortString, withInitScore, zero
- 
Method Details- 
hardLevelsSizeint hardLevelsSize()The sum of this andsoftLevelsSize()equalslevelsSize().- Returns:
- >= 0and- <- levelsSize()
 
- 
getHardLevelsSizeDeprecated, for removal: This API element is subject to removal in a future version.UsehardLevelsSize()instead.As defined byhardLevelsSize().
- 
softLevelsSizeint softLevelsSize()The sum ofhardLevelsSize()and this equalslevelsSize().- Returns:
- >= 0and- <- levelsSize()
 
- 
getSoftLevelsSizeDeprecated, for removal: This API element is subject to removal in a future version.UsesoftLevelsSize()instead.As defined bysoftLevelsSize().
- 
levelsSizedefault int levelsSize()- Returns:
- hardLevelsSize()+- softLevelsSize()
 
- 
getLevelsSizeDeprecated, for removal: This API element is subject to removal in a future version.UselevelsSize()instead.As defined bylevelsSize().
 
- 
hardLevelsSize()instead.