Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override fun <T>mapCarModelNames(wish: List<T>):
- Flowable<List<T>>? =
- database.carModelsDao().getAllCarModels.map { models ->
- wish.forEach { it ->
- val matchingCar = models.find { model ->
- it.model_id == model.id
- }
- it.model_name = matchingCar?.name
- }
- wish
- }
Advertisement
Add Comment
Please, Sign In to add comment