package seedu.jobs.model.task;

/**
 * Represents a Task's description in JOBS.
 */

public class Description {
	
	public static final String DEFAULT_VALUE = "";
	public final String value;
	
	public Description(String description){
		this.value = (description==null) ? DEFAULT_VALUE : description;
	}
	
	@Override
	public String toString(){
		return this.value;
	}
	
	@Override
    public boolean equals(Object other) {
        return other == this // short circuit if same object
                || (other instanceof Description // instanceof handles nulls
                && this.value.equals(((Description) other).value)); // state check
    }

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

}

@@ -25,16 +25,77 @@
 .task;%0A%0A
+import seedu.jobs.commons.exceptions.IllegalValueException;%0A%0A
 /**%0A * R
@@ -208,155 +208,645 @@
 ULT_
-VALUE = %22%22;%0A%09public final String value;%0A%09%0A%09public Description(String description)%7B%0A%09%09this.value = (description==null) ? DEFAULT_VALUE : description
+DESCRIPTION = %22%22;%0A%09public static final String  MESSAGE_DESCRIPTION_CONSTRAINT = %22Description cannot be more than 150 characters%22;%0A%09public static final int DESCRIPTION_LENGTH_CONSTRAINT = 150;%0A%09public final String value;%0A%09%0A%09public Description(String description) throws IllegalValueException%7B%0A%09%09if(description==null)%7B%0A%09%09%09this.value = DEFAULT_DESCRIPTION;%0A%09%09%7D%0A%09%09else%7B%0A%09%09%09if(!isValidDescription(description))%7B%0A%09%09%09%09throw new IllegalValueException(MESSAGE_DESCRIPTION_CONSTRAINT);%0A%09%09%09%7D%0A%09%09%09this.value = description;%0A%09%09%7D%0A%09%7D%0A%09%0A%09public boolean isValidDescription(String description)%7B%0A%09%09return description.length() %3C= DESCRIPTION_LENGTH_CONSTRAINT
 ;%0A%09%7D
@@ -1192,16 +1192,17 @@
 k%0A    %7D%0A
+%09
 %0A    @Ov

Add constraint for description's length