src/main/java/seedu/address/logic/parser/job/FindJobParser.java
public FindJob parse(String args) throws ParseException {
        requireNonNull(args);
        ArgumentMultimap argMultimap =
                ArgumentTokenizer.tokenize(args, PREFIX_JOBTITLE, PREFIX_JOBID);
        Predicate<Job> predicate;

        if (arePrefixesPresent(argMultimap, PREFIX_JOBTITLE, PREFIX_JOBID)) {
            throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, FindJob.MESSAGE_USAGE));
        }

        if (!anyPrefixesPresent(argMultimap, PREFIX_JOBTITLE, PREFIX_JOBID)) {
            throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, FindJob.MESSAGE_USAGE));
        }

        if (argMultimap.getValue(PREFIX_JOBTITLE).isPresent()) {
            predicate = ParserUtil.parsePredicate(argMultimap.getValue(PREFIX_JOBTITLE).get(), true, false);
        } else if (argMultimap.getValue(PREFIX_JOBID).isPresent()) {
            predicate = ParserUtil.parsePredicate(argMultimap.getValue(PREFIX_JOBID).get(), false, true);
        } else {
            throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, FindJob.MESSAGE_USAGE));
        }

        return new FindJob(predicate);
    }
/**
     * Parses the given {@code String} of arguments in the context of the FindJob
     * and returns a FindJob object for execution.
     * @throws ParseException if the user input does not conform the expected format
     */
Parses the given  String of arguments in the context of the FindJob
and returns a FindJob object for execution.
@throws ParseException if the user input does not conform the expected format
Parses the given String of arguments in the context of the FindJob and returns a FindJob object for execution . @throws ParseException if the user input does not conform the expected format
public FindJob parse(String args) throws ParseException {
        requireNonNull(args);
        ArgumentMultimap argMultimap =
                ArgumentTokenizer.tokenize(args, PREFIX_JOBTITLE, PREFIX_JOBID);
        Predicate<Job> predicate;
        if (arePrefixesPresent(argMultimap, PREFIX_JOBTITLE, PREFIX_JOBID)) {
            throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, FindJob.MESSAGE_USAGE));
        }
        if (!anyPrefixesPresent(argMultimap, PREFIX_JOBTITLE, PREFIX_JOBID)) {
            throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, FindJob.MESSAGE_USAGE));
        }
        if (argMultimap.getValue(PREFIX_JOBTITLE).isPresent()) {
            predicate = ParserUtil.parsePredicate(argMultimap.getValue(PREFIX_JOBTITLE).get(), true, false);
        } else if (argMultimap.getValue(PREFIX_JOBID).isPresent()) {
            predicate = ParserUtil.parsePredicate(argMultimap.getValue(PREFIX_JOBID).get(), false, true);
        } else {
            throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, FindJob.MESSAGE_USAGE));
        }
        return new FindJob(predicate);
    }
public FindJob parse ( String args ) throws ParseException { requireNonNull ( args ) ; ArgumentMultimap argMultimap = ArgumentTokenizer . tokenize ( args , PREFIX_JOBTITLE , PREFIX_JOBID ) ; Predicate < Job > predicate ; if ( arePrefixesPresent ( argMultimap , PREFIX_JOBTITLE , PREFIX_JOBID ) ) { throw new ParseException ( String . format ( MESSAGE_INVALID_COMMAND_FORMAT , FindJob . MESSAGE_USAGE ) ) ; } if ( ! anyPrefixesPresent ( argMultimap , PREFIX_JOBTITLE , PREFIX_JOBID ) ) { throw new ParseException ( String . format ( MESSAGE_INVALID_COMMAND_FORMAT , FindJob . MESSAGE_USAGE ) ) ; } if ( argMultimap . getValue ( PREFIX_JOBTITLE ) . isPresent ( ) ) { predicate = ParserUtil . parsePredicate ( argMultimap . getValue ( PREFIX_JOBTITLE ) . get ( ) , true , false ) ; } else if ( argMultimap . getValue ( PREFIX_JOBID ) . isPresent ( ) ) { predicate = ParserUtil . parsePredicate ( argMultimap . getValue ( PREFIX_JOBID ) . get ( ) , false , true ) ; } else { throw new ParseException ( String . format ( MESSAGE_INVALID_COMMAND_FORMAT , FindJob . MESSAGE_USAGE ) ) ; } return new FindJob ( predicate ) ; }
Parses the given {@code String} of arguments in the context of the FindJob
 and returns a FindJob object for execution.
Parses the given { @code String } of arguments in the context of the FindJob and returns a FindJob object for execution .