src/main/java/seedu/address/logic/commands/EditCommand.java
/**
         * Returns an amenity set which has {@code addedAmenities} added to {@code existingAmenities}.
         */
Returns an amenity set which has  addedAmenities added to  existingAmenities.
Returns an amenity set which has addedAmenities added to existingAmenities .
public Set<Amenity> combineAmenitiesAdded(Set<Amenity> addedAmenities, Set<Amenity> existingAmenities) {
            Set<Amenity> result = existingAmenities;
            for (Amenity amenity: addedAmenities) {
                if (!existingAmenities.contains(amenity)) {
                    result = addField(result, amenity);
                }
            }
            return result;
        }
public Set < Amenity > combineAmenitiesAdded ( Set < Amenity > addedAmenities , Set < Amenity > existingAmenities ) { Set < Amenity > result = existingAmenities ; for ( Amenity amenity : addedAmenities ) { if ( ! existingAmenities . contains ( amenity ) ) { result = addField ( result , amenity ) ; } } return result ; }
Returns an amenity set which has {@code addedAmenities} added to {@code existingAmenities}.
Returns an amenity set which has { @code addedAmenities } added to { @code existingAmenities } .