if (end < 0) { return; } if (end >= dueIns_.size()) { for (int i=dueIns_.size()-1; i<=end; i++) { dueIns_.add(new Vector()); }
while (end > dueIns_.size()) { dueIns_.add(new Vector());
    private void addProjection(Task task, boolean filled) {	long start_time = TimeUtils.pushToEndOfDay(calendar_, TaskUtils.getStartTime(task));	long end_time = TimeUtils.pushToEndOfDay(calendar_, TaskUtils.getEndTime(task)); 	int start = TimeUtils.getDaysBetween(getStartTime(), start_time);	int end = TimeUtils.getDaysBetween(getStartTime(), end_time);	if (start < 0) { start = 0; }	if (end < 0) { return; }	if (end >= dueIns_.size()) {	    for (int i=dueIns_.size()-1; i<=end; i++) {		dueIns_.add(new Vector());	    }	}	DueIn d = new DueIn(task, filled);//   	GLMDebug.DEBUG("addProjection()", "start="+start+"("+TimeUtils.dateString(start_time)+")"+//   	", end="+end+" ("+TimeUtils.dateString(end_time)+") Task:"+TaskUtils.taskDesc(task));			// Advance start time by one day to avoid double counting a projection that spans	// a single day	start += 1;	for (int i=start; i<= end; i++) {// 	    GLMDebug.DEBUG("InventoryBG", "addProjection(), Adding dueout on day "+day);	    Vector v = (Vector)dueIns_.get(i);	    v.add(d);	}    }