src/org/ohmage/domain/UserInformation.java
public void addClasses(
			final Map<String, Clazz.Role> classes)
			throws DomainException {
		
		if(classes == null) {
			throw new DomainException("The classes map is null.");
		}
		
		if(this.classes == null) {
			this.classes = new HashMap<String, Clazz.Role>(classes);
		}
		else {
			this.classes.putAll(classes);
		}
	}
/**
	 * Adds a set of classes and the user's respective role. The map cannot be
	 * null but may be empty. The role associated with each class cannot be 
	 * null.
	 * 
	 * @param classes The map of class IDs to the user's respective role.
	 * 
	 * @throws DomainException The map was null or one of the roles was null.
	 */
Adds a set of classes and the user's respective role. The map cannot be
null but may be empty. The role associated with each class cannot be
null.

@param classes The map of class IDs to the user's respective role.

@throws DomainException The map was null or one of the roles was null.
Adds a set of classes and the user ' s respective role . The map cannot be null but may be empty . The role associated with each class cannot be null . @param classes The map of class IDs to the user ' s respective role . @throws DomainException The map was null or one of the roles was null .
public void addClasses(
			final Map<String, Clazz.Role> classes)
			throws DomainException {
		if(classes == null) {
			throw new DomainException("The classes map is null.");
		}
		if(this.classes == null) {
			this.classes = new HashMap<String, Clazz.Role>(classes);
		}
		else {
			this.classes.putAll(classes);
		}
	}
public void addClasses ( final Map < String , Clazz . Role > classes ) throws DomainException { if ( classes == null ) { throw new DomainException ( "The classes map is null." ) ; } if ( this . classes == null ) { this . classes = new HashMap < String , Clazz . Role > ( classes ) ; } else { this . classes . putAll ( classes ) ; } }
Adds a set of classes and the user's respective role.
Adds a set of classes and the user ' s respective role .