182. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/11/2019 10:54:13 AM 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.

182.1 Files compared

# Location File Last Modified
1 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\model\lookup SimpleLookupUtils.java Wed May 29 15:26:04 2019 UTC
2 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\model\lookup SimpleLookupUtils.java Mon Jun 10 19:30:05 2019 UTC

182.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 94
Changed 1 2
Inserted 0 0
Removed 0 0

182.3 Comparison options

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

182.4 Active regular expressions

No regular expressions were active.

182.5 Comparison detail

  1   /********* ********** ********** ********** ********** ********** *********
  2    * Copyrii ght 2006 V HA. All ri ghts reser ved
  3    ********* ********** ********** ********** ********** ********** *********/
  4  
  5   package go v.va.med.f w.model.lo okup;
  6  
  7   import jav a.util.Has hMap;
  8   import jav a.util.Map ;
  9  
  10   import org .apache.co mmons.lang .enums.Enu mUtils;
  11  
  12   /**
  13    * Initial  javadoc f or class S impleLooku pUtils. TO DO - Add c ontent her e
  14    * 
  15    * Created  Aug 4, 20 06 1:54:16  PM
  16    * 
  17    * @author   DNS     DN S
  18    */
  19   public cla ss SimpleL ookupUtils  {
  20           st atic Map<C lass<?>, E numConstan ts> classT oConstants  = new Has hMap<Class <?>, EnumC onstants>( );
  21  
  22           pu blic stati c Map getA llValues(C lass<?> cl azz) {
  23                    retu rn EnumUti ls.getEnum Map(clazz) ;
  24           }
  25  
  26           pu blic stati c Lookup g etByCode(C lass<?> cl azz, Strin g code) {
  27                    retu rn (Lookup ) EnumUtil s.getEnum( clazz, cod e);
  28           }
  29  
  30           //  not publi c
  31           st atic void  addLookupC lass(Class <?> clazz)  {
  32                    if ( !classToCo nstants.co ntainsKey( clazz))
  33                             classT oConstants .put(clazz , null);
  34           }
  35  
  36           st atic Strin g getConst antName(Cl ass<?> cla zz, String  code) {
  37                    retu rn getEnum Constants( clazz).get ConstantNa me(code);
  38           }
  39  
  40           pr ivate stat ic synchro nized Enum Constants  getEnumCon stants(Cla ss<?> claz z) {
  41                    Enum Constants  constants  = classToC onstants.g et(clazz);
  42                    if ( constants  == null) {
  43                             consta nts = new  EnumConsta nts(clazz) ;
  44                             classT oConstants .put(clazz , constant s);
  45                    }
  46                    retu rn constan ts;
  47           }
  48   }