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 int add for entries
     */
    

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

    /**
     * Remove Method
     * @param int remove for entries
     */
 
    public void remove(TimeEntry entry) {
        entries.remove(entry);
    }

    /**
     * Size Method
     * @param int size for entries
     */
 

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

    /**
     * Get Method
     * @param TimeEntry get for entries
     */
 
    public TimeEntry get(int index) {
        
        // boolean vaild = false;
        // if (vaild == true) {
        // whatever
        //
        return entries.get(index);
    }
}




@@ -382,15 +382,13 @@
   */
-%0A
     %0A
-%0A
     
@@ -522,33 +522,32 @@
  entries%0A     */
-%0A
  %0A    public voi
@@ -686,11 +686,8 @@
  */%0A
- %0A%0A
     
@@ -817,17 +817,16 @@
 %0A     */
-%0A
  %0A    pu
@@ -1008,9 +1008,6 @@
   %7D%0A
+
 %7D%0A
-%0A%0A%0A

Update line end and EOF for build fail