Produced by Araxis Merge on 6/9/2017 3:49:58 PM Eastern Daylight 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 | Fri Jun 9 19:49:58 2017 UTC | ||
| 2 | eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-common\src\main\java\gov\va\nvap\common\transformer\string | CollectionTransformerExt.java | Fri Apr 21 20:03:26 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 40 |
| 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.nvap. common.tra nsformer.s tring; | |||||
| 2 | ||||||
| 3 | import gov .va.nvap.c ommon.tran sformer.Tr ansformer; | |||||
| 4 | import gov .va.nvap.c ommon.tran sformer.Tr ansformerE xception; | |||||
| 5 | import gov .va.nvap.c ommon.vali dation.Nul lChecker; | |||||
| 6 | ||||||
| 7 | import jav a.util.Has hMap; | |||||
| 8 | import jav a.util.Map ; | |||||
| 9 | ||||||
| 10 | import org .springfra mework.bea ns.factory .annotatio n.Required ; | |||||
| 11 | ||||||
| 12 | public cla ss Collect ionTransfo rmerExt im plements | |||||
| 13 | Tran sformer<Ma p<String, Object>, M ap<String, Map<Strin g, Object> >> { | |||||
| 14 | ||||||
| 15 | pr ivate Tran sformer<Ob ject, Map< String, Ob ject>> tra nsformers; | |||||
| 16 | ||||||
| 17 | @R equired | |||||
| 18 | pu blic void setTransfo rmers( | |||||
| 19 | final Transforme r<Object, Map<String , Object>> transform ers) { | |||||
| 20 | this .transform ers = tran sformers; | |||||
| 21 | } | |||||
| 22 | ||||||
| 23 | @O verride | |||||
| 24 | pu blic Map<S tring, Map <String, O bject>> tr ansform( | |||||
| 25 | final Map<String , Object> collection ) throws T ransformer Exception { | |||||
| 26 | if ( NullChecke r.isEmpty( collection )) { | |||||
| 27 | return null; | |||||
| 28 | } | |||||
| 29 | ||||||
| 30 | fina l Map<Stri ng, Map<St ring, Obje ct>> prope rtyMap = n ew HashMap <String, M ap<String, Object>>( ); | |||||
| 31 | ||||||
| 32 | for (final Str ing parent Key : coll ection.key Set()) { | |||||
| 33 | final Object par entValue = collectio n.get(pare ntKey); | |||||
| 34 | final Map<String , Object> fieldValue s = this.t ransformer s | |||||
| 35 | .transform (parentVal ue); | |||||
| 36 | proper tyMap.put( parentKey, fieldValu es); | |||||
| 37 | } | |||||
| 38 | retu rn propert yMap; | |||||
| 39 | } | |||||
| 40 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.