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;

/**
 * Created by Jason on 6/19/2015.
 */
@Component
public class Tracker {
    @Autowired
    private List<TimeEntry> entries;

    /**
     * Add method
     * @param TimeEntry to add to entries
     */
    public void add(TimeEntry entry) {
        entries.add(entry);
    }

    /**
     * Remove method
     * @param TimeEntry to remove from 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 int index for entries
     */
    public TimeEntry get(int index) {
        return entries.get(index);
    }
}


@@ -224,50 +224,8 @@
 t;%0A%0A
-/**%0A * Created by Jason on 6/19/2015.%0A */%0A
 @Com
@@ -315,519 +315,219 @@
     
-/**%0A     * Add method%0A     * @param TimeEntry to add to entries%0A     */%0A    public void add(TimeEntry entry) %7B%0A        entries.add(entry);%0A    %7D%0A%0A    /**%0A     * Remove method%0A     * @param TimeEntry to remove from entries%0A     */%0A    public void remove(TimeEntry entry) %7B%0A        entries.remove(entry);%0A    %7D%0A%0A    /**%0A     * Size method%0A     * @param int size for entries%0A     */%0A    public int size() %7B%0A        return entries.size();%0A    %7D%0A%0A    /**%0A     * Get method%0A     * @param int index for entries%0A     */
+public void add(TimeEntry entry) %7B%0A        entries.add(entry);%0A    %7D%0A%0A    public void remove(TimeEntry entry) %7B%0A        entries.remove(entry);%0A    %7D%0A%0A    public int size() %7B%0A        return entries.size();%0A    %7D%0A
 %0A   

Remove JavaDocs for CheckStyle warnings