int findIndex ( final Job job ) { int size = jobList . size ( ) ; boolean found = false ; int i = 0 ; for ( ; i < size ; i ++ ) { ScheduledJobEntry se = ( ScheduledJobEntry ) jobList . get ( i ) ; if ( se . job == job ) { found = true ; break ; } } if ( found ) { return i ; } else { return - 1 ; } }
Find the index of a given job .