src/main/java/seedu/insurancepal/logic/parser/ParserUtil.java
/**
     * Parses {@code Collection<String> insurances} into a {@code Set<Insurance>}.
     */
Parses  Collection insurances into a  Set.
Parses Collection insurances into a Set .
public static Set<Insurance> parseInsurances(Collection<String> insurances) throws ParseException {
        requireNonNull(insurances);
        final Set<Insurance> insuranceSet = new HashSet<>();
        for (String insuranceName : insurances) {
            insuranceSet.add(parseInsurance(insuranceName));
        }
        return insuranceSet;
    }
public static Set < Insurance > parseInsurances ( Collection < String > insurances ) throws ParseException { requireNonNull ( insurances ) ; final Set < Insurance > insuranceSet = new HashSet < > ( ) ; for ( String insuranceName : insurances ) { insuranceSet . add ( parseInsurance ( insuranceName ) ) ; } return insuranceSet ; }
Parses {@code Collection<String> insurances} into a {@code Set<Insurance>}.
Parses { @code Collection<String > insurances } into a { @code Set<Insurance > } .