src/main/java/seedu/address/logic/parser/ParserUtil.java
public static String parseApplicantStatus(String applicationStatus) throws ParseException {
        requireNonNull(applicationStatus);
        String trimmedApplicationStatus = applicationStatus.trim();

        String numericStatus;

        switch(trimmedApplicationStatus) {
        case "rejected":
            numericStatus = "0";
            break;
        case "pending":
            numericStatus = "1";
            break;
        case "interviewed":
            numericStatus = "2";
            break;
        case "accepted":
            numericStatus = "3";
            break;
        default:
            numericStatus = "-1";
        }

        if (!ApplicantStatus.isValidStatus(numericStatus)) {
            throw new ParseException(ApplicantStatus.MESSAGE_CONSTRAINTS);
        }
        return numericStatus;
    }
//       - return Applicant once the class Application Status is merged
return Applicant once the class Application Status is merged
return Applicant once the class Application Status is merged
public static String parseApplicantStatus(String applicationStatus) throws ParseException {
        requireNonNull(applicationStatus);
        String trimmedApplicationStatus = applicationStatus.trim();
        String numericStatus;
        switch(trimmedApplicationStatus) {
        case "rejected":
            numericStatus = "0";
            break;
        case "pending":
            numericStatus = "1";
            break;
        case "interviewed":
            numericStatus = "2";
            break;
        case "accepted":
            numericStatus = "3";
            break;
        default:
            numericStatus = "-1";
        }
        if (!ApplicantStatus.isValidStatus(numericStatus)) {
            throw new ParseException(ApplicantStatus.MESSAGE_CONSTRAINTS);
        }
        return numericStatus;
    }
public static String parseApplicantStatus ( String applicationStatus ) throws ParseException { requireNonNull ( applicationStatus ) ; String trimmedApplicationStatus = applicationStatus . trim ( ) ; String numericStatus ; switch ( trimmedApplicationStatus ) { case "rejected" : numericStatus = "0" ; break ; case "pending" : numericStatus = "1" ; break ; case "interviewed" : numericStatus = "2" ; break ; case "accepted" : numericStatus = "3" ; break ; default : numericStatus = "-1" ; } if ( ! ApplicantStatus . isValidStatus ( numericStatus ) ) { throw new ParseException ( ApplicantStatus . MESSAGE_CONSTRAINTS ) ; } return numericStatus ; }
return Applicant once the class Application Status is merged
return Applicant once the class Application Status is merged