/** Initialize the <code>passes</code> field and the <code>passMap</code> field. */ protected void init() { passes = new ArrayList(getPasses()); passMap = new HashMap(); for (int i = 0; i < passes.size(); i++) { Pass pass = (Pass) passes.get(i); passMap.put(pass.id(), new Integer(i)); } }
/** * Return a list of passes that still have to be performed. The list returned by <code> * completedPasses</code> concatenated with the list returned by <code>pendingPasses</code> should * be equivalent to the list returned by <code>passes</code>. */ public List pendingPasses() { return passes().subList(nextPass, passes.size()); }