126. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/13/2018 10:35:23 AM 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.

126.1 Files compared

# Location File Last Modified
1 v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\ccht\model\report\scheduled SimpleTimeUnitType.java Fri Dec 7 17:36:42 2018 UTC
2 v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\ccht\model\report\scheduled SimpleTimeUnitType.java Thu Dec 13 15:05:36 2018 UTC

126.2 Comparison summary

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

126.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

126.4 Active regular expressions

No regular expressions were active.

126.5 Comparison detail

  1   package go v.va.med.c cht.model. report.sch eduled;
  2  
  3   import jav a.util.Cal endar;
  4   import jav a.util.Dat e;
  5  
  6   import gov .va.med.fw .model.loo kup.Lookup ;
  7   import gov .va.med.fw .util.Date Utils;
  8  
  9   /**
  10    * These a re simple  time units  that can  be added o r subtract ed from a  specific
  11    * date to  arrive at  another.
  12    * 
  13    * @author   DNS
  14    * 
  15    */
  16   public enu m SimpleTi meUnitType  implement s Lookup {
  17           DA Y("Day(s)" , new Rela tiveDateCa lculator()  {
  18                    publ ic Date ca lculateDat e(Date sta rtDate, In teger num)  {
  19                             return  DateUtils .add(start Date, Cale ndar.DAY_O F_MONTH, n um);
  20                    }
  21           }) ,
  22           WE EK("Week(s )", new Re lativeDate Calculator () {
  23                    publ ic Date ca lculateDat e(Date sta rtDate, In teger num)  {
  24                             return  DateUtils .add(start Date, Cale ndar.WEEK_ OF_YEAR, n um);
  25                    }
  26           }) ,
  27           MO NTH("Month (s)", new  RelativeDa teCalculat or() {
  28                    publ ic Date ca lculateDat e(Date sta rtDate, In teger num)  {
  29                             return  DateUtils .add(start Date, Cale ndar.MONTH , num);
  30                    }
  31           }) ,
  32           YE AR("Year(s )", new Re lativeDate Calculator () {
  33                    publ ic Date ca lculateDat e(Date sta rtDate, In teger num)  {
  34                             return  DateUtils .add(start Date, Cale ndar.YEAR,  num);
  35                    }
  36           }) ;
  37  
  38           pr ivate Stri ng name;
  39           pr ivate Rela tiveDateCa lculator d ateCalcula tor;
  40  
  41           pr ivate Simp leTimeUnit Type(Strin g name, Re lativeDate Calculator  dateCalcu lator) {
  42                    this .name = na me;
  43                    this .dateCalcu lator = da teCalculat or;
  44           }
  45  
  46           pu blic Strin g getName( ) {
  47                    retu rn name;
  48           }
  49  
  50           pu blic Strin g getCode( ) {
  51                    retu rn name();
  52           }
  53  
  54           pu blic Strin g getDescr iption() {
  55                    retu rn getName ();
  56           }
  57  
  58           pu blic Date  calculateR elativeDat e(Date sta rtDate, In teger num)  {
  59                    retu rn dateCal culator.ca lculateDat e(startDat e, num);
  60           }
  61  
  62           pr ivate inte rface Rela tiveDateCa lculator {
  63                    Date  calculate Date(Date  startDate,  Integer n um);
  64           }
  65   }