src/org/ohmage/domain/campaign/RepeatableSetResponse.java
public void addResponseGroup(
			final int iteration, 
			final Map<Integer, Response> responses) 
			throws DomainException {
		
		if(this.responses.containsKey(iteration)) {
			throw new DomainException(
					"There is already a list of responses for that iteration.");
		}
		else if(responses == null) {
			throw new DomainException("The responses map is null.");
		}
		
		this.responses.put(iteration, new HashMap<Integer, Response>(responses));
	}
/**
	 * Adds an iteration of responses to the response group. 
	 * 
	 * @param iteration The iteration of the repeatable set to which these
	 * 					responses belong.
	 * 
	 * @param responses A map of response indices to their response.
	 * 
	 * @throws DomainException Thrown if there already exists a map of 
	 * 						   responses for that iteration.
	 */
Adds an iteration of responses to the response group.

@param iteration The iteration of the repeatable set to which these
responses belong.

@param responses A map of response indices to their response.

@throws DomainException Thrown if there already exists a map of
responses for that iteration.
Adds an iteration of responses to the response group . @param iteration The iteration of the repeatable set to which these responses belong . @param responses A map of response indices to their response . @throws DomainException Thrown if there already exists a map of responses for that iteration .
public void addResponseGroup(
			final int iteration, 
			final Map<Integer, Response> responses) 
			throws DomainException {
		if(this.responses.containsKey(iteration)) {
			throw new DomainException(
					"There is already a list of responses for that iteration.");
		}
		else if(responses == null) {
			throw new DomainException("The responses map is null.");
		}
		this.responses.put(iteration, new HashMap<Integer, Response>(responses));
	}
public void addResponseGroup ( final int iteration , final Map < Integer , Response > responses ) throws DomainException { if ( this . responses . containsKey ( iteration ) ) { throw new DomainException ( "There is already a list of responses for that iteration." ) ; } else if ( responses == null ) { throw new DomainException ( "The responses map is null." ) ; } this . responses . put ( iteration , new HashMap < Integer , Response > ( responses ) ) ; }
Adds an iteration of responses to the response group.
Adds an iteration of responses to the response group .