package pro.jtaylor.timetracker.core;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import pro.jtaylor.timetracker.core.dao.TimeEntry;

import java.util.List;

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

    /**
     * Add Method
     * @Param entry  time to be added
     */
    public void add(TimeEntry entry) {
        entries.add(entry);
    }

    /**
     * Remove Method
     * @Param entry time to be removed
     */
    public void remove(TimeEntry entry) {
        entries.remove(entry);
    }

    /**
     * Size Method
     */
    public int size() {
        return entries.size();
    }

    /**
     * Get Method
     * @Param index into collection
     */
    public TimeEntry get(int index) {
        return entries.get(index);
    }
}


@@ -333,33 +333,33 @@
  Method%0A     * @
-P
+p
 aram entry  time
@@ -486,25 +486,25 @@
 hod%0A     * @
-P
+p
 aram entry t
@@ -744,9 +744,9 @@
  * @
-P
+p
 aram

Update Tracker.java