public static enum PlannerRule.ChangesMade extends Enum<PlannerRule.ChangesMade>
PlannerRule.onMatch(PlannerRuleCall)
method. ChangesMade
is
an enum rather than a boolean so that we can extend the degree to which rules report what they did to the planner
in the future without needing to update too many rules.Enum Constant and Description |
---|
MADE_CHANGES |
NO_CHANGE |
Modifier and Type | Method and Description |
---|---|
static PlannerRule.ChangesMade |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlannerRule.ChangesMade[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlannerRule.ChangesMade NO_CHANGE
public static final PlannerRule.ChangesMade MADE_CHANGES
public static PlannerRule.ChangesMade[] values()
for (PlannerRule.ChangesMade c : PlannerRule.ChangesMade.values()) System.out.println(c);
public static PlannerRule.ChangesMade 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 null