code: private static void updateAssignmentData(final List<AssignmentData> assignmentList, final AssignmentData assignmentData) {
  		for (final AssignmentData matchAssignmentData : assignmentList) {
  			if (matchAssignmentData.getFromDate().equals(assignmentData.getFromDate())
  					&& matchAssignmentData.getOrgCode().equals(assignmentData.getOrgCode()) && matchAssignmentData.getRoleCode().equals(assignmentData.getRoleCode())) {
  
  				matchAssignmentData.setStatus(assignmentData.getStatus());
  				matchAssignmentData.setToDate(assignmentData.getToDate());
  				return;
  			}
  		}
  		assignmentList.add(assignmentData);
  	}
docs: Update assignment data.
  
  @param assignmentList the assignment list
  @param assignmentData the assignment data