Java, Map same object to different objects
Java, Map same object to different objects I have a list of Car 's, I want to map them to different specific Car 's like - FordCar , HondaCar , VolkswagenCar ... base on value of maker attribute of Car , that is Car.maker Car Car FordCar HondaCar VolkswagenCar maker Car Car.maker Can Dozer, MapStruct do this? Or is there any framework in Java which can do this? Why Dozer? There is a standard Java type Map , see docs.oracle.com/javase/tutorial/collections/interfaces/map.html – Honza Zidek Jul 1 at 9:24 Map You can give MapStruct a try. mapstruct.org – Toan Lu Jul 1 at 9:25 @ToanLu thanks for your quick response, but here my problem is little different, for ex...