package seedu.tasklist.model.task;


/**
 * Represents a Task's status (completed/uncompleted) in the task list.
 */
public class Status {

    public static final boolean COMPLETED = true;
    public static final boolean UNCOMPLETED = false;
    public boolean status;

    public Status() {
        status = UNCOMPLETED;
    }

    public Status(boolean status) {
        this.status = status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public boolean getStatus() {
        return status;
    }

    public void setCompleted() {
        status = COMPLETED;
    }

    public void setUncompleted() {
        status = UNCOMPLETED;
    }

    @Override
    public String toString() {
        return status ? "completed" : "uncompleted";
    }

    @Override
    public boolean equals(Object other) {
        if (this == other) {
            return true;
        }
        if (other == null || getClass() != other.getClass()) {
            return false;
        }
        Status status = (Status) other;
        return (this.status == status.status);
    }

}

@@ -469,32 +469,57 @@
  status;%0A    %7D%0A%0A
+    //@@author A0143355J%0A
     public boole
@@ -546,24 +546,29 @@
      return 
+this.
 status;%0A    
@@ -562,32 +562,57 @@
 .status;%0A    %7D%0A%0A
+    //@@author A0143355J%0A
     public void 
@@ -628,32 +628,37 @@
 ted() %7B%0A        
+this.
 status = COMPLET
@@ -660,32 +660,57 @@
 MPLETED;%0A    %7D%0A%0A
+    //@@author A0143355J%0A
     public void 
@@ -728,32 +728,37 @@
 ted() %7B%0A        
+this.
 status = UNCOMPL

add this.status to methods in Status