src/main/java/seedu/address/logic/parser/ParserUtil.java
public static Set<Tag> parseTags(Collection<String> tags) throws IllegalValueException {
        requireNonNull(tags);
        final Set<Tag> tagSet = new HashSet<>();
        for (String tagName : tags) {
            tagSet.add(Tag.getInstance(tagName));
        }
        return tagSet;
    }
/**
     * Parses {@code Collection<String> tags} into a {@code Set<Tag>}.
     */
Parses  Collection tags into a  Set.
Parses Collection tags into a Set .
public static Set<Tag> parseTags(Collection<String> tags) throws IllegalValueException {
        requireNonNull(tags);
        final Set<Tag> tagSet = new HashSet<>();
        for (String tagName : tags) {
            tagSet.add(Tag.getInstance(tagName));
        }
        return tagSet;
    }
public static Set < Tag > parseTags ( Collection < String > tags ) throws IllegalValueException { requireNonNull ( tags ) ; final Set < Tag > tagSet = new HashSet < > ( ) ; for ( String tagName : tags ) { tagSet . add ( Tag . getInstance ( tagName ) ) ; } return tagSet ; }
Parses {@code Collection<String> tags} into a {@code Set<Tag>}.
Parses { @code Collection<String > tags } into a { @code Set<Tag > } .