src/main/java/seedu/address/logic/parser/ParserUtil.java
public static CompanyName parseCompanyName(String companyName) throws ParseException {
        requireNonNull(companyName);
        String trimmedCompanyName = companyName.trim();
        if (!CompanyName.isValidCompanyName(trimmedCompanyName)) {
            throw new ParseException(CompanyName.MESSAGE_CONSTRAINTS);
        }
        return new CompanyName(trimmedCompanyName);
    }
/**
     * Parses {@code String companyName} and returns it. Leading and trailing whitespaces will be
     * trimmed.
     * @throws ParseException if the given {@code Company Name} is invalid.
     */
Parses  String companyName and returns it. Leading and trailing whitespaces will be
trimmed.
@throws ParseException if the given  Company Name is invalid.
Parses String companyName and returns it . Leading and trailing whitespaces will be trimmed . @throws ParseException if the given Company Name is invalid .
public static CompanyName parseCompanyName(String companyName) throws ParseException {
        requireNonNull(companyName);
        String trimmedCompanyName = companyName.trim();
        if (!CompanyName.isValidCompanyName(trimmedCompanyName)) {
            throw new ParseException(CompanyName.MESSAGE_CONSTRAINTS);
        }
        return new CompanyName(trimmedCompanyName);
    }
public static CompanyName parseCompanyName ( String companyName ) throws ParseException { requireNonNull ( companyName ) ; String trimmedCompanyName = companyName . trim ( ) ; if ( ! CompanyName . isValidCompanyName ( trimmedCompanyName ) ) { throw new ParseException ( CompanyName . MESSAGE_CONSTRAINTS ) ; } return new CompanyName ( trimmedCompanyName ) ; }
Parses {@code String companyName} and returns it.
Parses { @code String companyName } and returns it .