public enum LookUpStrategyType extends Enum<LookUpStrategyType>
ScoreDirector.lookUpWorkingObject(Object)
maps
a problem fact
or a planning entity
from an external copy to the internal one.Enum Constant and Description |
---|
EQUALITY
Map by
equals(Object) and hashCode() . |
NONE
There is no mapping and
ScoreDirector.lookUpWorkingObject(Object) must not be used. |
PLANNING_ID_OR_FAIL_FAST
Map by the same
PlanningId field or method. |
PLANNING_ID_OR_NONE
Map by the same
PlanningId field or method. |
Modifier and Type | Method and Description |
---|---|
static LookUpStrategyType |
valueOf(String name)
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.
|
public static final LookUpStrategyType PLANNING_ID_OR_NONE
PlanningId
field or method.
If there is no such field or method,
there is no mapping and ScoreDirector.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.
public static final LookUpStrategyType PLANNING_ID_OR_FAIL_FAST
PlanningId
field or method.
If there is no such field or method, it fails fast.public static final LookUpStrategyType EQUALITY
equals(Object)
and hashCode()
.
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 with
Object
's equals and hashCode implementations.public static final LookUpStrategyType NONE
ScoreDirector.lookUpWorkingObject(Object)
must not be used.public static LookUpStrategyType[] values()
for (LookUpStrategyType c : LookUpStrategyType.values()) System.out.println(c);
public static LookUpStrategyType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2006–2020 JBoss by Red Hat. All rights reserved.