service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/riksdagen/workers/data/RiksdagenUpdateServiceImpl.java
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);
	}
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);
	}
Update assignment data.

@param assignmentList the assignment list
@param assignmentData the assignment data