/** Makes sure that the state is at least the given state. */ private void ensure(State state) { if (state == this.state) { return; } if (state.ordinal() < this.state.ordinal()) { throw new IllegalArgumentException("cannot move to " + state + " from " + this.state); } state.from(this); }
/** Makes sure that the state is at least the given state. */ private void ensure(State state) { if (state == this.state) { return; } if (state.ordinal() < this.state.ordinal()) { throw new IllegalArgumentException("cannot move to " + state + " from " + this.state); } state.from(this); }
@Override void from(PlannerImpl planner) { STATE_1_RESET.from(planner); planner.ready(); } },
@Override void from(PlannerImpl planner) { STATE_1_RESET.from(planner); planner.ready(); } },