Produced by Araxis Merge on 12/20/2017 5:56:12 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Genisis_2.0_v6_bld6.zip\Source Code\UI\Services\src\main\java\gov\va\genisis2\converter | SourceConverter.java | Thu Dec 14 19:57:07 2017 UTC |
| 2 | Genisis_2.0_v6_bld6.zip\Source Code\UI\Services\src\main\java\gov\va\genisis2\converter | SourceConverter.java | Wed Dec 20 22:09:38 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 100 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | package go v.va.genis is2.conver ter; | |
| 2 | ||
| 3 | import jav a.util.Arr ayList; | |
| 4 | import jav a.util.Lis t; | |
| 5 | ||
| 6 | import org .springfra mework.cor e.convert. converter. Converter; | |
| 7 | import org .springfra mework.ste reotype.Co mponent; | |
| 8 | ||
| 9 | import gov .va.genisi s2.dto.Sou rceDTO; | |
| 10 | import gov .va.genisi s2.model.S ource; | |
| 11 | ||
| 12 | /** | |
| 13 | * This cl ass is use d to conve rt SourceD TO to Sour ce entity and vice-v ersa. | |
| 14 | * | |
| 15 | * @author P II | |
| 16 | * | |
| 17 | */ | |
| 18 | @Component | |
| 19 | public cla ss SourceC onverter i mplements Converter< Source, So urceDTO> { | |
| 20 | ||
| 21 | @O verride | |
| 22 | pu blic Sourc eDTO conve rt(Source source) { | |
| 23 | Sour ceDTO sour ceDto = ne w SourceDT O(); | |
| 24 | ||
| 25 | sour ceDto.setI d(source.g etId()); | |
| 26 | sour ceDto.setD escription (source.ge tDescripti on()); | |
| 27 | ||
| 28 | retu rn sourceD to; | |
| 29 | } | |
| 30 | ||
| 31 | pu blic Sourc e convert( SourceDTO sourceDto) { | |
| 32 | Sour ce source = new Sour ce(); | |
| 33 | ||
| 34 | sour ce.setId(s ourceDto.g etId()); | |
| 35 | sour ce.setDesc ription(so urceDto.ge tDescripti on()); | |
| 36 | ||
| 37 | retu rn source; | |
| 38 | } | |
| 39 | ||
| 40 | pu blic List< SourceDTO> convertSo urces(List <Source> s ources) { | |
| 41 | List <SourceDTO > sourcesD tos = null ; | |
| 42 | if ( !sources.i sEmpty()) { | |
| 43 | source sDtos = ne w ArrayLis t<>(); | |
| 44 | for (S ource sour ce : sourc es) { | |
| 45 | sourcesD tos.add(co nvert(sour ce)); | |
| 46 | } | |
| 47 | } | |
| 48 | ||
| 49 | retu rn sources Dtos; | |
| 50 | } | |
| 51 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.