src/main/java/seedu/address/logic/parser/ParserUtil.java
public static Predicate<Job> parsePredicate(String keyword, boolean isName, boolean isID) throws ParseException {
        requireNonNull(keyword);
        String trimmedKeyword = keyword.trim();

        if (trimmedKeyword.isEmpty()) {
            throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, FindJob.MESSAGE_USAGE));
        }
        if (isName) {
            String[] jobTitleKeywords = trimmedKeyword.split("\\s+");
            return new NameJobContainsKeywordsPredicate(Arrays.asList(jobTitleKeywords));
        } else if (isID) {
            return new JobIdSamePredicate(parseId(trimmedKeyword));
        } else {
            throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, FindJob.MESSAGE_USAGE));
        }
    }
/**
     * Based on the value of (@code String keyword, boolean isName, boolean isID}, the method creates an instance of
     * Predicate
     *
     * @throws ParseException if the given {@code predicate} is invalid.
     */
Based on the value of (@code String keyword, boolean isName, boolean isID}, the method creates an instance of
Predicate

@throws ParseException if the given  predicate is invalid.
Based on the value of ( @code String keyword boolean isName boolean isID } the method creates an instance of Predicate @throws ParseException if the given predicate is invalid .
public static Predicate<Job> parsePredicate(String keyword, boolean isName, boolean isID) throws ParseException {
        requireNonNull(keyword);
        String trimmedKeyword = keyword.trim();
        if (trimmedKeyword.isEmpty()) {
            throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, FindJob.MESSAGE_USAGE));
        }
        if (isName) {
            String[] jobTitleKeywords = trimmedKeyword.split("\\s+");
            return new NameJobContainsKeywordsPredicate(Arrays.asList(jobTitleKeywords));
        } else if (isID) {
            return new JobIdSamePredicate(parseId(trimmedKeyword));
        } else {
            throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, FindJob.MESSAGE_USAGE));
        }
    }
public static Predicate < Job > parsePredicate ( String keyword , boolean isName , boolean isID ) throws ParseException { requireNonNull ( keyword ) ; String trimmedKeyword = keyword . trim ( ) ; if ( trimmedKeyword . isEmpty ( ) ) { throw new ParseException ( String . format ( MESSAGE_INVALID_COMMAND_FORMAT , FindJob . MESSAGE_USAGE ) ) ; } if ( isName ) { String [ ] jobTitleKeywords = trimmedKeyword . split ( "\\s+" ) ; return new NameJobContainsKeywordsPredicate ( Arrays . asList ( jobTitleKeywords ) ) ; } else if ( isID ) { return new JobIdSamePredicate ( parseId ( trimmedKeyword ) ) ; } else { throw new ParseException ( String . format ( MESSAGE_INVALID_COMMAND_FORMAT , FindJob . MESSAGE_USAGE ) ) ; } }
Based on the value of (@code String keyword, boolean isName, boolean isID}, the method creates an instance of
 Predicate
Based on the value of ( @code String keyword boolean isName boolean isID } the method creates an instance of Predicate