Package com.Server.mapper.impl
Class CarMapper
java.lang.Object
com.Server.mapper.impl.CarMapper
- All Implemented Interfaces:
Mapper<Car,CarResponse,CarRequest>
@Component public class CarMapper extends java.lang.Object implements Mapper<Car,CarResponse,CarRequest>
Class Mapper use to mapping Car.
- Since:
- 2020-04-27
- Version:
- 1.0
- Author:
- Krystian Cwioro Kamil Bieniasz Damian Mierzynski.
-
Constructor Summary
Constructors Constructor Description CarMapper() -
Method Summary
Modifier and Type Method Description CarResponsetoDto(Car car)CartoEntity(CarRequest carRequest)Carupdate(Car car, CarRequest carRequest)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CarMapper
public CarMapper()
-
-
Method Details
-
toDto
- Specified by:
toDtoin interfaceMapper<Car,CarResponse,CarRequest>- Parameters:
car- param mapped to dto- Returns:
- dto object
-
toEntity
- Specified by:
toEntityin interfaceMapper<Car,CarResponse,CarRequest>- Parameters:
carRequest- param mapped to entity- Returns:
- car object
-
update
- Specified by:
updatein interfaceMapper<Car,CarResponse,CarRequest>- Parameters:
car- old paramcarRequest- new value param- Returns:
- new car object
-