public static TaskEntity getTaskEntity ( List < TaskSummary > tasks , int taskId ) { TaskEntity entity = null ; for ( TaskSummary task : tasks ) { if ( task . get_taskId ( ) == taskId ) { entity = new TaskEntity ( task ) ; break ; } } return entity ; }
get the specific task entity