package seedu.task.model.task;

import java.util.Calendar;

import seedu.task.commons.exceptions.IllegalValueException;
import seedu.task.model.util.DateParser;

public class DueDate {
/**
 * Represents a Task's due date in the task list.
 * Guarantees: immutable; is valid as declared in {@link #isValidDueDate(String)}
 */
    public final Calendar dueDate;

    /**
     * Validates given description.
     *
     * @throws IllegalValueException if given description string is invalid.
     */
    public DueDate(String inputDueDate) throws IllegalValueException {
        this.dueDate = DateParser.parse(inputDueDate);
    }

    @Override
    public String toString() {
        return DateParser.toString(dueDate);
    }

    @Override
    public int hashCode() {
        return dueDate.hashCode();
    }

}

@@ -615,32 +615,313 @@
 ueDate);%0A    %7D%0A%0A
+    @Override%0A    public boolean equals(Object other) %7B%0A        return other == this // short circuit if same object%0A                %7C%7C (other instanceof DueDate // instanceof handles nulls%0A                && this.dueDate.equals(((DueDate) other).dueDate)); // state check%0A    %7D%0A%0A%0A
     @Override%0A  

Add equals method to duedate model