package ca.antonious.habittracker.models;

import java.util.Date;
import java.util.UUID;

/**
 * Created by George on 2016-09-01.
 */
public class HabitCompletion {
    private String id;
    private Date completionTime;

    public HabitCompletion(Date completionTime) {
        setId(UUID.randomUUID().toString());
        setCompletionTime(completionTime);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCompletionTime() {
        return completionTime;
    }

    public void setCompletionTime(Date completionTime) {
        this.completionTime = completionTime;
    }
}

@@ -83,16 +83,63 @@
 .UUID;%0A%0A
+import ca.antonious.habittracker.utils.Utils;%0A%0A
 /**%0A * C
@@ -709,11 +709,506 @@
 e;%0A    %7D
+%0A%0A    @Override%0A    public boolean equals(Object obj) %7B%0A        if (this == obj) return true;%0A        if (obj == null %7C%7C !obj.getClass().equals(getClass())) return false;%0A%0A        HabitCompletion otherHabitCompletion = (HabitCompletion) obj;%0A%0A        return Utils.equals(getId(), otherHabitCompletion.getId()) &&%0A                Utils.equals(getCompletionTime(), otherHabitCompletion.getCompletionTime());%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        return getId().hashCode();%0A    %7D
 %0A%7D%0A

Implement equals and hashCode in HabitCompletion