Enum LookUpStrategyType
- All Implemented Interfaces:
Serializable
,Comparable<LookUpStrategyType>
Determines how
ScoreDirector.lookUpWorkingObject(Object)
maps
a problem fact
or a planning entity
from an external copy to the internal one.-
Enum Constant Summary
Enum ConstantDescriptionMap byequals(Object)
andhashCode()
.There is no mapping andScoreDirector.lookUpWorkingObject(Object)
must not be used.Map by the samePlanningId
field or method.Map by the samePlanningId
field or method. -
Method Summary
Modifier and TypeMethodDescriptionstatic LookUpStrategyType
Returns the enum constant of this type with the specified name.static LookUpStrategyType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PLANNING_ID_OR_NONE
Map by the samePlanningId
field or method. If there is no such field or method, there is no mapping andScoreDirector.lookUpWorkingObject(Object)
must not be used. If there is such a field or method, but it returns null, it fails fast.This is the default.
-
PLANNING_ID_OR_FAIL_FAST
Map by the samePlanningId
field or method. If there is no such field or method, it fails fast. -
EQUALITY
Map byequals(Object)
andhashCode()
. If any of these two methods is not overridden by the working object's class or some of its superclasses,ScoreDirector.lookUpWorkingObject(Object)
must not be used because it cannot work correctly withObject
's equals and hashCode implementations. -
NONE
There is no mapping andScoreDirector.lookUpWorkingObject(Object)
must not be used.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-