@@ -0,0 +1,3055 @@
+package seedu.tasklist.model.task;%0A%0Aimport java.util.Date;%0A%0Aimport seedu.tasklist.commons.util.CollectionUtil;%0Aimport seedu.tasklist.model.tag.UniqueTagList;%0A%0A/**%0A* Represents a Task with duedate in the task list.%0A* Guarantees: details are present and not null, field values are validated.%0A*/%0Apublic class DeadlineTask extends Task implements ReadOnlyDeadlineTask%7B%0A%0A    private Name name;%0A    private Comment comment;%0A    private Priority priority;%0A    private Status status; %0A    private Date deadline;%0A    %0A    private UniqueTagList tags; %0A    %0A    public DeadlineTask(Name name, Comment comment, Priority priority, Status status, Date deadline, UniqueTagList tags) %7B%0A        super(name, comment, priority, status, tags);%0A        assert !CollectionUtil.isAnyNull(name, deadline, status);%0A        this.name = name;%0A        this.comment = comment;%0A        this.priority = priority;%0A        this.status = status;%0A        this.deadline = deadline;%0A        this.tags = new UniqueTagList(tags); // protect internal tags from changes in the arg list%0A        %0A    %7D%0A    %0A    /**%0A     * Creates a copy of the given ReadOnlyFloatingTask.%0A     */%0A    public DeadlineTask(ReadOnlyDeadlineTask source) %7B%0A        this(source.getName(), source.getComment(), source.getPriority(), source.getStatus(), source.getDeadline(), source.getTags());%0A    %7D%0A    %0A    public void setDeadline(Date deadline)%7B%0A        assert deadline != null;%0A        this.deadline = deadline;%0A    %7D%0A    %0A    @Override%0A    public Date getDeadline() %7B%0A        return deadline;%0A    %7D%0A    %0A    public void setName(Name name) %7B%0A        assert name != null;%0A        this.name = name;%0A    %7D%0A    %0A    @Override%0A    public Name getName() %7B%0A        return name;%0A    %7D%0A    %0A    public void setComment(Comment comment) %7B%0A        assert comment != null;%0A        this.comment = comment;%0A    %7D%0A%0A    @Override%0A    public Comment getComment() %7B%0A        return comment;%0A    %7D%0A%0A    @Override%0A    public UniqueTagList getTags() %7B%0A        return tags;%0A    %7D%0A    %0A    public void setPriority(Priority priority)%7B%0A        assert priority != null;%0A        this.priority = priority;%0A    %7D%0A    %0A    public Priority getPriority() %7B%0A        return priority;%0A    %7D%0A   %0A    public void setStatus(Status status)%7B%0A        assert status != null;%0A        this.status = status;%0A    %7D%0A%0A    %0A    public Status getStatus() %7B%0A        return status;%0A    %7D%0A    %0A    /**%0A     * Replaces this person's tags with the tags in the argument tag list.%0A     */%0A    public void setTags(UniqueTagList replacement) %7B%0A        tags.setTags(replacement);%0A    %7D%0A%0A    /**%0A     * Updates this person with the details of %7B@code replacement%7D.%0A     */%0A    public void resetData(ReadOnlyDeadlineTask replacement) %7B%0A        assert replacement != null;%0A%0A        this.setName(replacement.getName());%0A        this.setComment(replacement.getComment());%0A        this.setPriority(replacement.getPriority());%0A        this.setStatus(replacement.getStatus());%0A        this.setDeadline(replacement.getDeadline());%0A        this.setTags(replacement.getTags());%0A    %7D%0A    %0A%7D%0A

Add DeadlineTask.java