Code example for Vector

Methods: contains, removeElement

0
 
	/* (non-Javadoc) 
	 * @see eu.planets_project.tb.api.model.ExperimentApproval#removeApprovalRequiredRole(int) 
	 */ 
	public void removeApprovalRequiredRole(int roleID) {
		if (this.vReqRoles.contains(roleID)){
			this.vReqRoles.removeElement(roleID);
		} 
	} 
 
	/* (non-Javadoc) 
	 * @see eu.planets_project.tb.api.model.ExperimentApproval#removeApprovalRequiredRoles(java.util.Vector) 
	 */ 
	public void removeApprovalRequiredRoles(List<Integer> roleIDs) {
		Iterator<Integer> itRoleIDs = roleIDs.iterator();
		while(itRoleIDs.hasNext()){
			removeApprovalRequiredRole(itRoleIDs.next());
		} 
	} 
 
	/* (non-Javadoc)