@@ -0,0 +1,1962 @@
+package seedu.address.model.task;%0A%0Aimport seedu.address.commons.exceptions.IllegalValueException;%0A%0A/**%0A * Represents a Floating Task's priority in the TaskTracker.%0A * Guarantees: is valid as declared in %7B@link #isValidPriority(String)%7D%0A */%0A%0Apublic class Priority %7B%0A%0A    public static final int UPPER_BOUND = 5;%0A    public static final int LOWER_BOUND = 0;%0A%0A    public static final String MESSAGE_PRIORITY_CONSTRAINTS =%0A            %22priority should be an integer ranges from %22 + LOWER_BOUND + %22 to %22 + UPPER_BOUND + %22.%22;%0A    public static final String PRIORITY_VALIDATION_REGEX = %22%5C%5Cp%7BDigit%7D%22;%0A%0A    private String priority;%0A%0A    /**%0A     * Validates given priority.%0A     *%0A     * @throws IllegalValueException if given priority string is invalid.%0A     */%0A    public Priority (String priority) throws IllegalValueException %7B%0A        assert priority != null;%0A        priority = priority.trim();%0A        if (!isValidPriority(priority)) %7B%0A            throw new IllegalValueException(MESSAGE_PRIORITY_CONSTRAINTS);%0A        %7D%0A        this.priority = priority;%0A    %7D%0A%0A    /**%0A     * Returns true if a given string is a valid priority.%0A     */%0A    public static boolean isValidPriority(String test) %7B%0A        if (test.matches(PRIORITY_VALIDATION_REGEX)) %7B%0A            return (Integer.parseInt(test) %3E= LOWER_BOUND)%0A                    && (Integer.parseInt(test) %3C= UPPER_BOUND);%0A        %7D else %7B%0A            return false;%0A        %7D%0A    %7D%0A%0A    public int toInteger() %7B%0A        return Integer.parseInt(this.priority);%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        return priority;%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.priority.equals(((Priority) other).priority)); // state check%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        return priority.hashCode();%0A    %7D%0A%0A%7D%0A

implement Priority class