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 .