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

@throws ParseException if the given  staffid is invalid.
Parses a String staffid into a Staffid . Leading and trailing whitespaces will be trimmed . @throws ParseException if the given staffid is invalid .
public static ID parseStaffid(String staffid) throws ParseException {
        requireNonNull(staffid);
        String trimmedStaffid = staffid.trim();
        if (!ID.isValidId(staffid)) {
            throw new ParseException(ID.MESSAGE_CONSTRAINTS);
        }
        return new ID(staffid);
    }
public static ID parseStaffid ( String staffid ) throws ParseException { requireNonNull ( staffid ) ; String trimmedStaffid = staffid . trim ( ) ; if ( ! ID . isValidId ( staffid ) ) { throw new ParseException ( ID . MESSAGE_CONSTRAINTS ) ; } return new ID ( staffid ) ; }
Parses a {@code String staffid} into a {@code Staffid}.
Parses a { @code String staffid } into a { @code Staffid } .