src/main/java/seedu/taskmanager/model/task/UniqueTaskList.java
/**
     * Finds the number of tasks marked as completed within internalList.
     *
     * @return The number of tasks marked as completed
     */
Finds the number of tasks marked as completed within internalList.
@return The number of tasks marked as completed
Finds the number of tasks marked as completed within internalList . @return The number of tasks marked as completed
private int findNumMarkedTasksBeforeUpdateIndex(int index) {
        int numMarkedTasks = 0;
        for (int checkIndex = 0; checkIndex < index; checkIndex++) {
            Task task = internalList.get(checkIndex);
            if (task.getIsMarkedAsComplete()) {
                numMarkedTasks++;
            }
        }
        return numMarkedTasks;
    }
private int findNumMarkedTasksBeforeUpdateIndex ( int index ) { int numMarkedTasks = 0 ; for ( int checkIndex = 0 ; checkIndex < index ; checkIndex ++ ) { Task task = internalList . get ( checkIndex ) ; if ( task . getIsMarkedAsComplete ( ) ) { numMarkedTasks ++ ; } } return numMarkedTasks ; }
Finds the number of tasks marked as completed within internalList.
Finds the number of tasks marked as completed within internalList .