src/main/java/seedu/address/logic/parser/ParserUtil.java
public static Position parsePosition(String position) throws ParseException {
        requireNonNull(position);
        String trimmedPosition = position.trim();
        if (!Position.validPosition(position)) {
            throw new ParseException(Position.MESSAGE_CONSTRAINTS);
        }
        return new Position(trimmedPosition);
    }
/**
     * Parses {@code String Position} and returns it. Leading and trailing whitespaces will be
     * trimmed.
     * @throws ParseException if the given {@code position} is invalid.
     */
Parses  String Position and returns it. Leading and trailing whitespaces will be
trimmed.
@throws ParseException if the given  position is invalid.
Parses String Position and returns it . Leading and trailing whitespaces will be trimmed . @throws ParseException if the given position is invalid .
public static Position parsePosition(String position) throws ParseException {
        requireNonNull(position);
        String trimmedPosition = position.trim();
        if (!Position.validPosition(position)) {
            throw new ParseException(Position.MESSAGE_CONSTRAINTS);
        }
        return new Position(trimmedPosition);
    }
public static Position parsePosition ( String position ) throws ParseException { requireNonNull ( position ) ; String trimmedPosition = position . trim ( ) ; if ( ! Position . validPosition ( position ) ) { throw new ParseException ( Position . MESSAGE_CONSTRAINTS ) ; } return new Position ( trimmedPosition ) ; }
Parses {@code String Position} and returns it.
Parses { @code String Position } and returns it .