Produced by Araxis Merge on 12/13/2018 10:35:30 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\rule | RuleMethod.java | Fri Dec 7 17:36:18 2018 UTC |
| 2 | v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\rule | RuleMethod.java | Wed Dec 12 19:46:45 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 520 |
| 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 | /********* ********** ********** ********** ********** ********** ********** ********** ********** | |
| 2 | * Copyrii ght 2004 V HA. All ri ghts reser ved | |
| 3 | ********* ********** ********** ********** ********** ********** ********** ********** *********/ | |
| 4 | package go v.va.med.f w.rule; | |
| 5 | ||
| 6 | // Java cl asses | |
| 7 | import jav a.io.Seria lizable; | |
| 8 | import jav a.math.Big Decimal; | |
| 9 | import jav a.text.Par seExceptio n; | |
| 10 | import jav a.util.Cal endar; | |
| 11 | import jav a.util.Col lection; | |
| 12 | import jav a.util.Dat e; | |
| 13 | import jav a.util.Tim eZone; | |
| 14 | ||
| 15 | // Library classes | |
| 16 | ||
| 17 | // Framewo rk classes | |
| 18 | ||
| 19 | // EDB cla sses | |
| 20 | ||
| 21 | /** | |
| 22 | * Project : Framewor k | |
| 23 | * | |
| 24 | * @author DN S
|
|
| 25 | * @versio n 1.0 | |
| 26 | */ | |
| 27 | public int erface Rul eMethod ex tends Seri alizable { | |
| 28 | ||
| 29 | /* * | |
| 30 | * Compares the 2 cale ndars for equality. This metho d allows a caller to | |
| 31 | * pass in a significa nt calenda r field to round off before a comparison of | |
| 32 | * the 2 cal endars tak e place. | |
| 33 | * | |
| 34 | * @param ar g1 | |
| 35 | * A calend ar to comp are | |
| 36 | * @param ar g2 | |
| 37 | * A calend ar to comp are | |
| 38 | * @return T rue if 2 o bjects are equal. Fa lse otherw ise | |
| 39 | * / | |
| 40 | pu blic boole an isCalen darEqual(C alendar ar g1, Calend ar arg2, i nt field) throws Rul eException ; | |
| 41 | ||
| 42 | /* * | |
| 43 | * Compares two object s for equa lity, wher e either o ne or both objects m ay | |
| 44 | * be null. For instan ce: Object Utils.equa ls(null, n ull) = tru e | |
| 45 | * ObjectUti ls.equals( null, "") = false Ob jectUtils. equals("", null) = f alse | |
| 46 | * ObjectUti ls.equals( "", "") = true Objec tUtils.equ als(Boolea n.TRUE, nu ll) | |
| 47 | * = false O bjectUtils .equals(Bo olean.TRUE , "true") = false | |
| 48 | * ObjectUti ls.equals( Boolean.TR UE, Boolea n.TRUE) = true | |
| 49 | * ObjectUti ls.equals( Boolean.TR UE, Boolea n.FALSE) = false | |
| 50 | * | |
| 51 | * @param ar g1 | |
| 52 | * An objec t to compa re | |
| 53 | * @param ar g2 | |
| 54 | * An objec t to compa re | |
| 55 | * @return T rue if 2 o bjects are equal. Fa lse otherw ise | |
| 56 | * / | |
| 57 | pu blic boole an isEqual (Object ar g1, Object arg2); | |
| 58 | ||
| 59 | /* * | |
| 60 | * Compares a big deci mal and a number | |
| 61 | * | |
| 62 | * @param ar g1 | |
| 63 | * A big de cima to co mpare | |
| 64 | * @param ar g2 | |
| 65 | * A number to compar e | |
| 66 | * @return T rue if 2 o bjects are equal. Fa lse otherw ise | |
| 67 | * / | |
| 68 | pu blic boole an isEqual (BigDecima l arg1, in t arg2); | |
| 69 | ||
| 70 | /* * | |
| 71 | * Checks if a value i s within a range | |
| 72 | * | |
| 73 | * @param lo wer | |
| 74 | * A lower bound | |
| 75 | * @param up per | |
| 76 | * An upper bound | |
| 77 | * @return T rue if a v alue is wi thin a ran ge. false otherwise | |
| 78 | * / | |
| 79 | pu blic boole an isInRan ge(Integer value, in t lower, i nt upper); | |
| 80 | ||
| 81 | /* * | |
| 82 | * Checks if a value i s within a range | |
| 83 | * | |
| 84 | * @param lo wer | |
| 85 | * A lower bound | |
| 86 | * @param up per | |
| 87 | * An upper bound | |
| 88 | * @return T rue if a v alue is wi thin a ran ge. false otherwise | |
| 89 | * / | |
| 90 | pu blic boole an isInRan ge(BigDeci mal value, double lo wer, doubl e upper); | |
| 91 | ||
| 92 | /* * | |
| 93 | * Checks if a value i s one of t he items i n a collec tion | |
| 94 | * | |
| 95 | * @param va lue | |
| 96 | * An objec t to check | |
| 97 | * @param pa ttern | |
| 98 | * A collec tion of va lues to co mpare | |
| 99 | * @return T rue if an object is in a colle ction | |
| 100 | * / | |
| 101 | pu blic boole an isPartO f(String v alue, Stri ng pattern ); | |
| 102 | ||
| 103 | /* * | |
| 104 | * Checks if a collect ion is eit her empty or null | |
| 105 | * | |
| 106 | * @param co llection | |
| 107 | * A collec tion to ch eck for em pty and nu ll | |
| 108 | * @return T rue if a c ollection is empty o r null | |
| 109 | * / | |
| 110 | pu blic boole an isEmpty (Collectio n collecti on); | |
| 111 | ||
| 112 | /* * | |
| 113 | * Checks if a value i s less tha n an upper bound | |
| 114 | * | |
| 115 | * @param up per | |
| 116 | * An upper bound | |
| 117 | * @return T rue if a v alue is le ss than an upper bou nd. false otherwise | |
| 118 | * / | |
| 119 | pu blic boole an isLessT han(Intege r value, i nt upper); | |
| 120 | ||
| 121 | /* * | |
| 122 | * Checks if a value i s greater than a low er bound | |
| 123 | * | |
| 124 | * @param lo wer | |
| 125 | * A lower bound | |
| 126 | * @return T rue if a v alue is gr eater than a lower b ound. fals e otherwis e | |
| 127 | * / | |
| 128 | pu blic boole an isGreat erThan(Int eger value , int lowe r); | |
| 129 | ||
| 130 | /* * | |
| 131 | * Checks if a value i s greater than a low er bound | |
| 132 | * | |
| 133 | * @param lo wer | |
| 134 | * A lower bound | |
| 135 | * @return T rue if a v alue is gr eater than a lower b ound. fals e otherwis e | |
| 136 | * / | |
| 137 | pu blic boole an isGreat erThan(Big Decimal va lue, BigDe cimal lowe r); | |
| 138 | ||
| 139 | /* * | |
| 140 | * Determine s if a dat e to check is betwee n two othe r dates (i nclusive). | |
| 141 | * | |
| 142 | * @param da teToCheck | |
| 143 | * The date to check | |
| 144 | * @param lo werDate | |
| 145 | * The lowe r date to check agai nst. If nu ll is pass ed, no low er | |
| 146 | * bound wi ll be used . | |
| 147 | * @param up perDate | |
| 148 | * The uppe r date to check agai nst. If nu ll is pass ed, no upp er | |
| 149 | * bound wi ll be used . | |
| 150 | * @return T rue if the date to c heck is be tween the other two dates or f alse | |
| 151 | * i f not. | |
| 152 | * / | |
| 153 | pu blic boole an isDateB etween(Dat e dateToCh eck, Date lowerDate, Date uppe rDate); | |
| 154 | ||
| 155 | /* * | |
| 156 | * Checks if two dates are of sa me day | |
| 157 | * | |
| 158 | * @return T rue if a d ates are s ame day. f alse other wise | |
| 159 | * / | |
| 160 | pu blic boole an isSameD ay(Date va lue1, Date value2); | |
| 161 | ||
| 162 | /* * | |
| 163 | * Checks if a date is before th e specific date | |
| 164 | * | |
| 165 | * @param up per | |
| 166 | * A date t o compare | |
| 167 | * @return T rue if a d ate is bef ore a thre shold. fal se otherwi se | |
| 168 | * / | |
| 169 | pu blic boole an isBefor e(Date val ue, Date u pper); | |
| 170 | ||
| 171 | /* * | |
| 172 | * Checks if a date is after the specific date | |
| 173 | * | |
| 174 | * @param lo wer | |
| 175 | * A date t o compare | |
| 176 | * @return T rue if a d ate is aft er a thres hold. fals e otherwis e | |
| 177 | * / | |
| 178 | pu blic boole an isAfter (Date valu e, Date lo wer); | |
| 179 | ||
| 180 | /* * | |
| 181 | * Converts a date to a calendar using the specific timezone. | |
| 182 | * | |
| 183 | * @param da te | |
| 184 | * A date t o convert to calenda r | |
| 185 | * @return C alendar A calender f or the spe cific date | |
| 186 | * @throws I llegalArgu mentExcept ion | |
| 187 | * Thrown if missing required date | |
| 188 | * / | |
| 189 | pu blic Calen dar toCale ndar(Date date, Time Zone timez one); | |
| 190 | ||
| 191 | /* * | |
| 192 | * Converts a date to a calendar using the default s ystem time zone. | |
| 193 | * | |
| 194 | * @param da te | |
| 195 | * A date t o convert to calenda r | |
| 196 | * @return C alendar A calender f or the spe cific date | |
| 197 | * @throws I llegalArgu mentExcept ion | |
| 198 | * Thrown if missing required date | |
| 199 | * / | |
| 200 | pu blic Calen dar toCale ndar(Date date); | |
| 201 | ||
| 202 | /* * | |
| 203 | * Converts a Number t o an Integ er | |
| 204 | * | |
| 205 | * @param va lue | |
| 206 | * A number of type N umber clas s to be co nverted to Integer | |
| 207 | * @return I nteger A c onverted I nteger val ue | |
| 208 | * / | |
| 209 | pu blic Integ er toInteg er(Number value); | |
| 210 | ||
| 211 | /* * | |
| 212 | * Converts a primitiv e number t o an Integ er | |
| 213 | * | |
| 214 | * @param va lue | |
| 215 | * A number to be con verted to Integer | |
| 216 | * @return I nteger A c onverted I nteger val ue | |
| 217 | * / | |
| 218 | pu blic Integ er toInteg er(int val ue); | |
| 219 | ||
| 220 | /* * | |
| 221 | * @param va lue | |
| 222 | * @return | |
| 223 | * @throws P arseExcept ion | |
| 224 | * / | |
| 225 | pu blic Date toDate(Str ing value) throws Pa rseExcepti on; | |
| 226 | ||
| 227 | /* * | |
| 228 | * Returns a date form atted acco rding to t he specifi ed pattern | |
| 229 | * | |
| 230 | * @param va lue | |
| 231 | * a date i n string f ormat | |
| 232 | * @param pa ttern | |
| 233 | * A patter n to forma t a string date | |
| 234 | * @return A date form ated accor ding to a pattern | |
| 235 | * @throws P arseExcept ion | |
| 236 | * / | |
| 237 | pu blic Date toDate(Str ing value, int patte rn) throws ParseExce ption; | |
| 238 | ||
| 239 | /* * | |
| 240 | * Returns t he current system da te | |
| 241 | * | |
| 242 | * @return D ate the cu rrent syst em date | |
| 243 | * / | |
| 244 | pu blic Date getCurrent Date(); | |
| 245 | ||
| 246 | /* * | |
| 247 | * Returns t he current logged-in user | |
| 248 | * | |
| 249 | * @return T he authent icated use r name | |
| 250 | * / | |
| 251 | pu blic Strin g getLogge dInUser(); | |
| 252 | ||
| 253 | /* * | |
| 254 | * Returns t he collect ion size. 0 if a col lection is null. | |
| 255 | * | |
| 256 | * @param co llection | |
| 257 | * A collec tion to ge t a size | |
| 258 | * @return 0 if a coll ection is null. Othe rwise, a s ize() is c alled | |
| 259 | * / | |
| 260 | pu blic int g etSize(Col lection co llection); | |
| 261 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.