src/main/java/seedu/insurancepal/logic/parser/ParserUtil.java
/**
     * Parses a {@code String status} into a {@code Status}.
     * Leading and trailing whitespaces will be trimmed.
     *
     * @throws ParseException if given {@code status} is invalid
     */
Parses a  String status into a  Status.
Leading and trailing whitespaces will be trimmed.

@throws ParseException if given  status is invalid
Parses a String status into a Status . Leading and trailing whitespaces will be trimmed . @throws ParseException if given status is invalid
public static Status parseStatus(String status) throws ParseException {
        requireNonNull(status);
        String trimmedStatus = status.trim();
        if (!Status.isValidStatus(trimmedStatus)) {
            throw new ParseException(Status.MESSAGE_CONSTRAINTS);
        }
        return new Status(status);
    }
public static Status parseStatus ( String status ) throws ParseException { requireNonNull ( status ) ; String trimmedStatus = status . trim ( ) ; if ( ! Status . isValidStatus ( trimmedStatus ) ) { throw new ParseException ( Status . MESSAGE_CONSTRAINTS ) ; } return new Status ( status ) ; }
Parses a {@code String status} into a {@code Status}.
Parses a { @code String status } into a { @code Status } .