ENTITY - the element type of the entity objectDTO - the generic type of the data transfer objectpublic interface GenericMapper<ENTITY,DTO>
GenericMapper provides the methods for mapping entities to data transfer
objects and back.| Modifier and Type | Method and Description |
|---|---|
DTO |
toDto(ENTITY entity)
Maps the given entity object to a data transfer object
|
List<DTO> |
toDtos(@NonNull Collection<ENTITY> entities)
Maps the given collection of entity objects to a list of data transfer objects
|
List<ENTITY> |
toEntities(@NonNull Collection<DTO> dtos)
Maps the given list of data transfer objects to a list of entity objects
|
ENTITY |
toEntity(DTO dto)
Maps the given data transfer object to a entity object.
|
DTO toDto(@NonNull ENTITY entity)
entity - the entity objectList<DTO> toDtos(@NonNull @NonNull Collection<ENTITY> entities)
entities - the collection of entities objectsList<ENTITY> toEntities(@NonNull @NonNull Collection<DTO> dtos)
dtos - the list of data transfer objectsCopyright © 2015–2019 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.