public enum LocationStrategyType extends Enum<LocationStrategyType>
ScoreDirector.locateWorkingObject(Object)
to map
a problem fact
or aplanning entity
from an external copy to the internal one.Enum Constant and Description |
---|
EQUALITY
Map by
Object.equals(Object) and Object.hashCode() . |
NONE
There is no mapping and
ScoreDirector.locateWorkingObject(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 LocationStrategyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LocationStrategyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LocationStrategyType PLANNING_ID_OR_NONE
PlanningId
field or method.
If there is no such field or method,
there is no mapping and ScoreDirector.locateWorkingObject(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 LocationStrategyType PLANNING_ID_OR_FAIL_FAST
PlanningId
field or method.
If there is no such field or method, it fails fast.public static final LocationStrategyType EQUALITY
Object.equals(Object)
and Object.hashCode()
.
If there is no such field or method,
there is no mapping and ScoreDirector.locateWorkingObject(Object)
must not be used.
This is the default.
public static final LocationStrategyType NONE
ScoreDirector.locateWorkingObject(Object)
must not be used.public static LocationStrategyType[] values()
for (LocationStrategyType c : LocationStrategyType.values()) System.out.println(c);
public static LocationStrategyType 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–2016 JBoss by Red Hat. All rights reserved.