Code example for Vector

Methods: contains, remove

0
 
	/* (non-Javadoc) 
	 * @see eu.planets_project.tb.api.model.ExperimentApproval#removeApprovalUser(eu.planets_project.tb.api.model.User) 
	 */ 
	public void removeApprovalUser(String userID) {
		if (this.vApprovalUsers.contains(userID)){
			this.vApprovalUsers.remove(userID);
		} 
	} 
 
	/* (non-Javadoc) 
	 * @see eu.planets_project.tb.api.model.ExperimentApproval#removeApprovalUsers(java.util.Vector) 
	 */ 
	public void removeApprovalUsers(List<String> userIDs) {
		Iterator<String> itApprovalUsers = userIDs.iterator();
		while(itApprovalUsers.hasNext()){
			removeApprovalUser(itApprovalUsers.next());
		} 
	} 
 
	/* (non-Javadoc)