package clinic.programming.timetracker.core;

//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
import clinic.programming.timetracker.core.dao.TimeEntry;

import java.util.List;

@Component
public class Tracker {
    @Autowired
    private List<TimeEntry> entries;

    public void add(TimeEntry entry) {
        entries.add(entry);
    }

    public void remove(TimeEntry entry) {
        entries.remove(entry);
    }

    public int size() {
        return entries.size();
    }

    public TimeEntry get(int index) {
        return entries.get(index);
    }
}

@@ -39,18 +39,16 @@
 .core;%0A%0A
-//
 import o
@@ -106,10 +106,8 @@
 ed;%0A
-//
 impo

undo commenting