src/main/java/seedu/address/logic/parser/ParserUtil.java
public static String parseApplicantComparator(String applicantComparator) throws ParseException {
        requireNonNull(applicantComparator);
        String trimmedComparator = applicantComparator.trim();
        if (!SortApplicant.isValid(trimmedComparator)) {
            throw new ParseException(SortApplicant.MESSAGE_CONSTRAINTS);
        }
        return trimmedComparator;
    }
/**
     * Parse {@code String applicantComparator} and returns it. Leading and trailing whitespaces will
     * be trimmed.
     */
Parse  String applicantComparator and returns it. Leading and trailing whitespaces will
be trimmed.
Parse String applicantComparator and returns it . Leading and trailing whitespaces will be trimmed .
public static String parseApplicantComparator(String applicantComparator) throws ParseException {
        requireNonNull(applicantComparator);
        String trimmedComparator = applicantComparator.trim();
        if (!SortApplicant.isValid(trimmedComparator)) {
            throw new ParseException(SortApplicant.MESSAGE_CONSTRAINTS);
        }
        return trimmedComparator;
    }
public static String parseApplicantComparator ( String applicantComparator ) throws ParseException { requireNonNull ( applicantComparator ) ; String trimmedComparator = applicantComparator . trim ( ) ; if ( ! SortApplicant . isValid ( trimmedComparator ) ) { throw new ParseException ( SortApplicant . MESSAGE_CONSTRAINTS ) ; } return trimmedComparator ; }
Parse {@code String applicantComparator} and returns it.
Parse { @code String applicantComparator } and returns it .