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;

    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) {

        boolean valid = false;
        if (valid == true) {
            // whatever
        }

        return entries.get(index);
    }
}

@@ -357,353 +357,561 @@
     
-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    public TimeEntry get(int index) %7B%0A%0A        boolean valid = false;%0A        if (valid == true) %7B%0A            // whatever%0A        %7D%0A
+/**%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     * /%0A    public TimeEntry get(int index) %7B
 %0A   
@@ -950,8 +950,9 @@
     %7D%0A%7D%0A
+%0A

Make improvements for checkstyle