@@ -50,37 +50,37 @@ public Converter(final Function<T, U> fromDto, final Function<U, T> fromEntity)
50
50
}
51
51
52
52
/**
53
- * @param userDto DTO entity
53
+ * @param dto DTO entity
54
54
* @return The domain representation - the result of the converting function application on dto entity.
55
55
*/
56
- public final U convertFromDto (final T userDto ) {
57
- return fromDto .apply (userDto );
56
+ public final U convertFromDto (final T dto ) {
57
+ return fromDto .apply (dto );
58
58
}
59
59
60
60
/**
61
- * @param user domain entity
61
+ * @param entity domain entity
62
62
* @return The DTO representation - the result of the converting function application on domain entity.
63
63
*/
64
- public final T convertFromEntity (final U user ) {
65
- return fromEntity .apply (user );
64
+ public final T convertFromEntity (final U entity ) {
65
+ return fromEntity .apply (entity );
66
66
}
67
67
68
68
/**
69
- * @param dtoUsers collection of DTO entities
69
+ * @param dtos collection of DTO entities
70
70
* @return List of domain representation of provided entities retrieved by
71
71
* mapping each of them with the conversion function
72
72
*/
73
- public final List <U > createFromDtos (final Collection <T > dtoUsers ) {
74
- return dtoUsers .stream ().map (this ::convertFromDto ).collect (Collectors .toList ());
73
+ public final List <U > createFromDtos (final Collection <T > dtos ) {
74
+ return dtos .stream ().map (this ::convertFromDto ).collect (Collectors .toList ());
75
75
}
76
76
77
77
/**
78
- * @param users collection of domain entities
78
+ * @param entities collection of domain entities
79
79
* @return List of domain representation of provided entities retrieved by
80
80
* mapping each of them with the conversion function
81
81
*/
82
- public final List <T > createFromEntities (final Collection <U > users ) {
83
- return users .stream ().map (this ::convertFromEntity ).collect (Collectors .toList ());
82
+ public final List <T > createFromEntities (final Collection <U > entities ) {
83
+ return entities .stream ().map (this ::convertFromEntity ).collect (Collectors .toList ());
84
84
}
85
85
86
86
}
0 commit comments