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);
	}
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
Update assignment data .