static Entity [ ] toNativeEntities ( List < ? > entities , DefaultEntityManager entityManager , Marshaller . Intent intent ) { Entity [ ] nativeEntities = new Entity [ entities . size ( ) ] ; for ( int i = 0 ; i < entities . size ( ) ; i ++ ) { nativeEntities [ i ] = ( Entity ) Marshaller . marshal ( entityManager , entities . get ( i ) , intent ) ; } return nativeEntities ; }
Converts the given list of model objects to an array of native Entity objects .