@@ -0,0 +1,1625 @@
+//@@author A0124153U%0A%0A%0Apackage seedu.address.model.person;%0A%0Aimport seedu.address.commons.exceptions.IllegalValueException;%0A%0A/**%0A * Represents a Task's priority in the ToDoApp%0A * stores as an integer, the higher the value, the higher the priority%0A * Guarantees: integer  %0A */%0Apublic class Priority %7B%0A%0A    public static final String MESSAGE_PRIORITY_CONSTRAINTS =%0A            %22Task priority%22;%0A%0A    /*%0A     * priority input must be an integer%0A     */%0A    public static final String DEADLINE_VALIDATION_REGEX = %22(%5C%5Cd*)%22;%0A%0A    public final int value;%0A%0A    /**%0A     * Validates given address.%0A     *%0A     * @throws IllegalValueException if given address string is invalid.%0A     */%0A    public Priority(int priority) throws IllegalValueException %7B%0A        assert priority %3E= 0;%0A        if (!isValidPriority(priority)) %7B%0A            throw new IllegalValueException(MESSAGE_PRIORITY_CONSTRAINTS);%0A        %7D%0A        this.value = priority;%0A    %7D%0A%0A    /**%0A     * Returns true if a given string is a valid person deadline.%0A     */%0A    public static boolean isValidPriority(int test) %7B%0A        if(test == (int)test) %7B%0A            return true;%0A        %7Delse %7B%0A            return false;%0A        %7D%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        return Integer.toString(value);%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 Priority // instanceof handles nulls%0A                && this.value == ((Priority) other).value); // state check%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        return value;%0A    %7D%0A%0A%7D%0A

implement priority class