Produced by Araxis Merge on 6/11/2019 10:54:08 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\ccht\model\report\scheduled | SimpleTimeUnitType.java | Wed May 29 15:26:18 2019 UTC |
| 2 | HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\ccht\model\report\scheduled | SimpleTimeUnitType.java | Mon Jun 10 19:19:44 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 128 |
| 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.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 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.