package seedu.address.model.task;

import java.time.LocalTime;

import seedu.address.model.tag.UniqueTagList;

/**
 * A read-only immutable interface for a Task in the task manager.
 * Implementations should guarantee: details are present and not null, field values are validated.
 */
public interface ReadOnlyTask {

    Name getName();
    Time getTime();
    ClockTime getClockTime();
    LocalTime getEndTime();
    LocalTime getStartTime();
    Status getStatus();
    //Address getAddress();
    Priority getPriority();

    /**
     * The returned TagList is a deep copy of the internal TagList,
     * changes on the returned list will not affect the task's internal tags.
     */
    UniqueTagList getTags();

    /**
     * Returns true if both have the same state. (interfaces cannot override .equals)
     */
    default boolean isSameStateAs(ReadOnlyTask other) {
        return other == this // short circuit if same object
                || (other != null // this is first to avoid NPE below
                && other.getName().equals(this.getName()) // state checks here onwards
                && other.getTime().equals(this.getTime())
                && other.getClockTime().equals(this.getClockTime())
                );
    }

    /**
     * Formats the task as text, showing all contact details.
     */
    default String getAsText() {
        final StringBuilder builder = new StringBuilder();
        builder.append(getName())
                .append(" Time: ")
                .append(getTime())
                .append(" ClockTime: ")
                .append(getClockTime())
                .append(" endTime: ")
                .append(getEndTime())
                .append(" Priority: ")
                .append(getPriority())
                .append(" Tags: ");
        getTags().forEach(builder::append);
        return builder.toString();
    }
}

@@ -1138,32 +1138,96 @@
 this.getTime())%0A
+                && other.getEndTime().equals(this.getEndTime())%0A
                 

Implement endTime #4, Left with 3 travis errors