public void setSteps(List<Step> steps) { this._steps = steps; this._stepsMap = new HashMap<String, Step>(); Iterator<Step> stepsIter = steps.iterator(); while (stepsIter.hasNext()) { Step step = stepsIter.next(); this._stepsMap.put(step.getCode(), step); } }
public void addStep(Step step) { this._steps.add(step); this._stepsMap.put(step.getCode(), step); }