src/com/mmpp/motivationapp/backend/Motivator.java
public void resetYesterday(TaskList newList) {
		setCompletedYesterday(0);
		yesterdaysTasks = new TaskList();
		if(newList == null) {
			return;
		}
		for(Task t: newList.getMyTasks()) {
			if(t.getIsComplete()) {
				yesterdaysTasks.addTask(t);
			}
		}
		setCompletedYesterday(yesterdaysTasks.getMyTasks().size());
	}
/**
	 * Resets the yesterdaysTasks TaskList given the new list of tasks that were completed yesterday
	 */
Resets the yesterdaysTasks TaskList given the new list of tasks that were completed yesterday
Resets the yesterdaysTasks TaskList given the new list of tasks that were completed yesterday
public void resetYesterday(TaskList newList) {
		setCompletedYesterday(0);
		yesterdaysTasks = new TaskList();
		if(newList == null) {
			return;
		}
		for(Task t: newList.getMyTasks()) {
			if(t.getIsComplete()) {
				yesterdaysTasks.addTask(t);
			}
		}
		setCompletedYesterday(yesterdaysTasks.getMyTasks().size());
	}
public void resetYesterday ( TaskList newList ) { setCompletedYesterday ( 0 ) ; yesterdaysTasks = new TaskList ( ) ; if ( newList == null ) { return ; } for ( Task t : newList . getMyTasks ( ) ) { if ( t . getIsComplete ( ) ) { yesterdaysTasks . addTask ( t ) ; } } setCompletedYesterday ( yesterdaysTasks . getMyTasks ( ) . size ( ) ) ; }
Resets the yesterdaysTasks TaskList given the new list of tasks that were completed yesterday
Resets the yesterdaysTasks TaskList given the new list of tasks that were completed yesterday