-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc/issues-19(Adicionar Javadoc ao Projeto) 📝 Adicionar comentários J…
…avadoc abrangentes aos mapeadores - **Adicionar comentários Javadoc abrangentes aos mapeadores** Adicionados comentários Javadoc abrangentes a todas as classes e seus métodos dentro do pacote 'mapper' para melhorar a clareza e compreensão de suas funcionalidades. - **Aumentar a legibilidade** Isso aumenta a legibilidade e fornece explicações detalhadas sobre os papéis, alcance e responsabilidades de cada classe. - **Transformando e mapeando objetos de Produto** Explica como eles transformam e mapeiam objetos de Produto.
- Loading branch information
1 parent
a43738a
commit 192379c
Showing
6 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/main/java/diegosneves/github/hexagonal/app/mapper/MapperStrategy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
package diegosneves.github.hexagonal.app.mapper; | ||
|
||
/** | ||
* A interface {@link MapperStrategy} é utilizada para definir uma estratégia de mapeamento entre um objeto de origem do tipo E e um objeto de destino do tipo T. | ||
* | ||
* @param <T> O tipo do objeto de destino. | ||
* @param <E> O tipo do objeto de origem. | ||
* | ||
* @author diegosneves | ||
*/ | ||
public interface MapperStrategy <T, E> { | ||
|
||
/** | ||
* Mapeia um objeto do tipo E para um objeto do tipo T. | ||
* | ||
* @param origin O objeto a ser mapeado. | ||
* @return O objeto mapeado. | ||
*/ | ||
T mapper(E origin); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters