Produced by Araxis Merge on 12/21/2017 6:15:13 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_v7_bld7.zip\TS\Service\bookmarking-service\src\main\java\gov\va\genisis2\bs\converter | LabelConverter.java | Thu Dec 14 19:57:16 2017 UTC |
| 2 | Genisis_2.0_v7_bld7.zip\TS\Service\bookmarking-service\src\main\java\gov\va\genisis2\bs\converter | LabelConverter.java | Thu Dec 21 21:17:22 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 94 |
| 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.bs.con verter; | |
| 2 | ||
| 3 | import jav a.util.Lis t; | |
| 4 | import jav a.util.str eam.Collec tors; | |
| 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.bs.data .model.Lab el; | |
| 10 | import gov .va.genisi s2.ts.comm on.dto.Lab elDTO; | |
| 11 | ||
| 12 | /** | |
| 13 | * Used to convert L abel Objec t to Label DTO's and vice vers a | |
| 14 | * @author PII | |
| 15 | */ | |
| 16 | @Component | |
| 17 | public cla ss LabelCo nverter im plements C onverter<L abel, Labe lDTO> { | |
| 18 | @O verride | |
| 19 | pu blic Label DTO conver t(Label la bel) { | |
| 20 | ||
| 21 | Labe lDTO label Dto = new LabelDTO() ; | |
| 22 | ||
| 23 | labe lDto.setLa belId(labe l.getLabel Id()); | |
| 24 | labe lDto.setBo okmarkId(l abel.getBo okmarkId() ); | |
| 25 | labe lDto.setNa me(label.g etName()); | |
| 26 | labe lDto.setUs ername(lab el.getUser name()); | |
| 27 | ||
| 28 | retu rn labelDt o; | |
| 29 | } | |
| 30 | ||
| 31 | pu blic List< LabelDTO> convert(Li st<Label> list){ | |
| 32 | retu rn list | |
| 33 | .stream( ) | |
| 34 | .map(l - > convert( l)) | |
| 35 | .collect (Collector s.toList() ); | |
| 36 | } | |
| 37 | ||
| 38 | pu blic Label convert(L abelDTO la belDto) { | |
| 39 | Labe l label = new Label( ); | |
| 40 | ||
| 41 | labe l.setLabel Id(labelDt o.getLabel Id()); | |
| 42 | labe l.setBookm arkId(labe lDto.getBo okmarkId() ); | |
| 43 | labe l.setName( labelDto.g etName()); | |
| 44 | labe l.setUsern ame(labelD to.getUser name()); | |
| 45 | ||
| 46 | retu rn label; | |
| 47 | } | |
| 48 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.