src/main/java/seedu/address/logic/commands/EditCommand.java
/**
         * Returns an tag set which has {@code tagsRemoved} removed from {@code existingTags}.
         */
Returns an tag set which has  tagsRemoved removed from  existingTags.
Returns an tag set which has tagsRemoved removed from existingTags .
public Set<Tag> combineTagsRemoved(Set<Tag> tagsRemoved, Set<Tag> existingTags)
                throws CommandException {
            Set<Tag> result = existingTags;
            for (Tag tag: tagsRemoved) {
                if (!existingTags.contains(tag)) {
                    throw new CommandException(MESSAGE_REMOVAL_CONSTRAINTS);
                } else {
                    result = removeField(result, tag);
                }
            }
            return result;
        }
public Set < Tag > combineTagsRemoved ( Set < Tag > tagsRemoved , Set < Tag > existingTags ) throws CommandException { Set < Tag > result = existingTags ; for ( Tag tag : tagsRemoved ) { if ( ! existingTags . contains ( tag ) ) { throw new CommandException ( MESSAGE_REMOVAL_CONSTRAINTS ) ; } else { result = removeField ( result , tag ) ; } } return result ; }
Returns an tag set which has {@code tagsRemoved} removed from {@code existingTags}.
Returns an tag set which has { @code tagsRemoved } removed from { @code existingTags } .