src/org/ohmage/domain/campaign/CampaignMask.java
public void addPromptIds(
			final String surveyId,
			final Collection<String> promptIds) {
			
			if(this.promptIds == null) {
				this.promptIds = new HashMap<String, Set<String>>();
			}

			Set<String> prompts = this.promptIds.get(surveyId);
			if(prompts == null) {
				prompts = new HashSet<String>();
				this.promptIds.put(surveyId, prompts);
			}
			prompts.addAll(promptIds);
		}
/**
		 * Adds all of the prompt IDs to the list of survey IDs.
		 * 
		 * @param surveyId
		 *        The survey ID to which the prompts belong.
		 *
		 * @param promptIds
		 *        The prompt IDs to add to the list.
		 */
Adds all of the prompt IDs to the list of survey IDs.

@param surveyId
The survey ID to which the prompts belong.

@param promptIds
The prompt IDs to add to the list.
Adds all of the prompt IDs to the list of survey IDs . @param surveyId The survey ID to which the prompts belong . @param promptIds The prompt IDs to add to the list .
public void addPromptIds(
			final String surveyId,
			final Collection<String> promptIds) {
			if(this.promptIds == null) {
				this.promptIds = new HashMap<String, Set<String>>();
			}
			Set<String> prompts = this.promptIds.get(surveyId);
			if(prompts == null) {
				prompts = new HashSet<String>();
				this.promptIds.put(surveyId, prompts);
			}
			prompts.addAll(promptIds);
		}
public void addPromptIds ( final String surveyId , final Collection < String > promptIds ) { if ( this . promptIds == null ) { this . promptIds = new HashMap < String , Set < String > > ( ) ; } Set < String > prompts = this . promptIds . get ( surveyId ) ; if ( prompts == null ) { prompts = new HashSet < String > ( ) ; this . promptIds . put ( surveyId , prompts ) ; } prompts . addAll ( promptIds ) ; }
Adds all of the prompt IDs to the list of survey IDs.
Adds all of the prompt IDs to the list of survey IDs .