Enum Class ScoreDefinitionType
java.lang.Object
java.lang.Enum<ScoreDefinitionType>
org.optaplanner.core.config.score.definition.ScoreDefinitionType
- All Implemented Interfaces:
Serializable
,Comparable<ScoreDefinitionType>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScoreDefinitionType
Returns the enum constant of this class with the specified name.static ScoreDefinitionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SIMPLE
-
SIMPLE_LONG
-
SIMPLE_DOUBLE
Deprecated, for removal: This API element is subject to removal in a future version.WARNING: NOT RECOMMENDED TO USE DUE TO ROUNDING ERRORS THAT CAUSE SCORE CORRUPTION. UseSIMPLE_BIG_DECIMAL
instead. -
SIMPLE_BIG_DECIMAL
-
HARD_SOFT
-
HARD_SOFT_LONG
-
HARD_SOFT_DOUBLE
Deprecated, for removal: This API element is subject to removal in a future version.WARNING: NOT RECOMMENDED TO USE DUE TO ROUNDING ERRORS THAT CAUSE SCORE CORRUPTION. UseHARD_SOFT_BIG_DECIMAL
instead. -
HARD_SOFT_BIG_DECIMAL
-
HARD_MEDIUM_SOFT
-
HARD_MEDIUM_SOFT_LONG
-
BENDABLE
-
BENDABLE_LONG
-
BENDABLE_BIG_DECIMAL
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-