Iterator dueOutIter = ((ArrayList)dueOutList.get(bucket)).iterator(); while (dueOutIter.hasNext()) { Task task = (Task)dueOutIter.next(); if (task.getVerb().equals(Constants.Verb.PROJECTWITHDRAW)) { projDemand.add(task); } } return projDemand; }
  public Collection getProjectedDemandTasks(int bucket) {    ArrayList projDemand = new ArrayList();    if (bucket >= dueOutList.size()) {      return projDemand;    }    Iterator dueOutIter = ((ArrayList)dueOutList.get(bucket)).iterator();    while (dueOutIter.hasNext()) {      Task task = (Task)dueOutIter.next();      if (task.getVerb().equals(Constants.Verb.PROJECTWITHDRAW)) {        projDemand.add(task);      }    }    return projDemand;  }