public < T > List < T > convertEDBObjectsToModelObjects ( Class < T > model , List < EDBObject > objects ) { List < T > models = new ArrayList <> ( ) ; for ( EDBObject object : objects ) { T instance = convertEDBObjectToModel ( model , object ) ; if ( instance != null ) { models . add ( instance ) ; } } return models ; }
Converts a list of EDBObjects to a list of models of the given model type .