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 Summary
Modifier 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.Comparable
compareToMethods inherited from interface org.optaplanner.core.api.score.Score
abs, add, divide, getInitScore, initScore, isFeasible, isSolutionInitialized, isZero, multiply, negate, power, subtract, toLevelDoubles, toLevelNumbers, toShortString, withInitScore, zero 
- 
Method Details
- 
hardLevelsSize
int hardLevelsSize()The sum of this andsoftLevelsSize()equalslevelsSize().- Returns:
 >= 0and<levelsSize()
 - 
getHardLevelsSize
Deprecated, for removal: This API element is subject to removal in a future version.UsehardLevelsSize()instead.As defined byhardLevelsSize(). - 
softLevelsSize
int softLevelsSize()The sum ofhardLevelsSize()and this equalslevelsSize().- Returns:
 >= 0and<levelsSize()
 - 
getSoftLevelsSize
Deprecated, for removal: This API element is subject to removal in a future version.UsesoftLevelsSize()instead.As defined bysoftLevelsSize(). - 
levelsSize
default int levelsSize()- Returns:
 hardLevelsSize()+softLevelsSize()
 - 
getLevelsSize
Deprecated, for removal: This API element is subject to removal in a future version.UselevelsSize()instead.As defined bylevelsSize(). 
 - 
 
hardLevelsSize()instead.