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 TimeEntry time to be added
    * /
    public void add(TimeEntry entry) {
        entries.add(entry);
    }

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

    /**
    * Size Method
    * @Param Size of collection
    * /
    public int size() {
        return entries.size();
    }

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


@@ -319,16 +319,17 @@
 /**%0A    
+ 
 * Add Me
@@ -325,32 +325,33 @@
    * Add Method%0A
+ 
     * @Param Tim
@@ -374,26 +374,26 @@
 e added%0A    
-*
  
+*
 /%0A    public
@@ -468,16 +468,17 @@
 /**%0A    
+ 
 * Remove
@@ -477,32 +477,33 @@
 * Remove Method%0A
+ 
     * @Param Tim
@@ -528,26 +528,26 @@
 removed%0A    
-*
  
+*
 /%0A    public
@@ -628,16 +628,17 @@
 /**%0A    
+ 
 * Size M
@@ -635,32 +635,33 @@
   * Size Method%0A
+ 
     * @Param Siz
@@ -672,34 +672,34 @@
  collection%0A    
-*
  
+*
 /%0A    public int
@@ -758,16 +758,17 @@
 /**%0A    
+ 
 * Get Me
@@ -768,24 +768,25 @@
  Get Method%0A
+ 
     * @Param
@@ -812,18 +812,18 @@
 ion%0A    
-*
  
+*
 /%0A    pu

Update Tracker.java