src/main/java/seedu/address/logic/parser/ParserUtil.java
public static FinanceType parseFinanceType(String financeType) throws ParseException {
        requireNonNull(financeType);
        String trimmedFinanceType = financeType.trim();
        if (!FinanceType.isValidFinanceType(trimmedFinanceType)) {
            throw new ParseException(FinanceType.MESSAGE_CONSTRAINTS);
        }
        return new FinanceType(trimmedFinanceType);
    }
/**
     * Parses a {@code String financeType} into a {@code financeType}. Leading and trailing whitespaces will be
     * trimmed.
     *
     * @throws ParseException if the given {@code financeType} is invalid.
     */
Parses a  String financeType into a  financeType. Leading and trailing whitespaces will be
trimmed.

@throws ParseException if the given  financeType is invalid.
Parses a String financeType into a financeType . Leading and trailing whitespaces will be trimmed . @throws ParseException if the given financeType is invalid .
public static FinanceType parseFinanceType(String financeType) throws ParseException {
        requireNonNull(financeType);
        String trimmedFinanceType = financeType.trim();
        if (!FinanceType.isValidFinanceType(trimmedFinanceType)) {
            throw new ParseException(FinanceType.MESSAGE_CONSTRAINTS);
        }
        return new FinanceType(trimmedFinanceType);
    }
public static FinanceType parseFinanceType ( String financeType ) throws ParseException { requireNonNull ( financeType ) ; String trimmedFinanceType = financeType . trim ( ) ; if ( ! FinanceType . isValidFinanceType ( trimmedFinanceType ) ) { throw new ParseException ( FinanceType . MESSAGE_CONSTRAINTS ) ; } return new FinanceType ( trimmedFinanceType ) ; }
Parses a {@code String financeType} into a {@code financeType}.
Parses a { @code String financeType } into a { @code financeType } .