Skip to content

Commit 5341e56

Browse files
author
Vladimir Kotal
committed
add javadoc
1 parent d8c9fb8 commit 5341e56

File tree

1 file changed

+6
-0
lines changed
  • opengrok-web/src/main/java/org/opengrok/web/util

1 file changed

+6
-0
lines changed

opengrok-web/src/main/java/org/opengrok/web/util/DTO.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ private DTO() {
3333
// private to ensure static
3434
}
3535

36+
/**
37+
* Generate Data Transfer Object from an object. Any field in the input object
38+
* that is annotated with <code>DTOElement</code> will be brought along.
39+
* @param object object to use as input
40+
* @return DTO with values and generated getters/setters from input object
41+
*/
3642
public static Object createDTO(Object object) {
3743
// ModelMapper assumes getters/setters so use BeanGenerator to provide them.
3844
BeanGenerator beanGenerator = new BeanGenerator();

0 commit comments

Comments
 (0)