40161. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/20/2018 10:24:21 AM Central 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.

40161.1 Files compared

# Location File Last Modified
1 CCRS.zip\CCRS\Reports-Sprint_5.zip\Reports-Sprint_5-aa03f94869cda45ee08ca75641e61a7376f2c2a5\CCRSBaseHelper\src\main\java\gov\va\ccrs\helpers NumberHelper.java Fri Mar 30 15:47:12 2018 UTC
2 CCRS.zip\CCRS\Reports-Sprint_5.zip\Reports-Sprint_5-aa03f94869cda45ee08ca75641e61a7376f2c2a5\CCRSBaseHelper\src\main\java\gov\va\ccrs\helpers NumberHelper.java Fri Jun 15 13:12:05 2018 UTC

40161.2 Comparison summary

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

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

40161.4 Active regular expressions

No regular expressions were active.

40161.5 Comparison detail

  1   package go v.va.ccrs. helpers;
  2  
  3   import jav a.math.*;
  4  
  5   /**
  6    * 
  7    * Helper  to handle  conversion  from Stri ng to Numb er
  8    * 
  9    * @author   PII
  10    * @versio n 1
  11    * @since  11/22/2017
  12    *
  13    */
  14  
  15   public cla ss NumberH elper 
  16   {
  17       /**
  18        * 
  19        * Rec eives a st ring and c onverts it  to Byte
  20        * 
  21        * @pa ram value
  22        * @re turn
  23        */
  24       public  static By te stringT oByte(Stri ng value)
  25       {
  26           By te number  = null;
  27           
  28           tr y
  29           {
  30                number =  Byte.pars eByte(valu e);
  31           }
  32           ca tch(Except ion ex)
  33           {
  34                number =  null;
  35           }
  36           
  37           re turn(numbe r);
  38       }
  39  
  40       /**
  41        * 
  42        * Rec eives a st ring and c onverts it  to Short
  43        * 
  44        * @pa ram value
  45        * @re turn
  46        */
  47       public  static Sh ort string ToShort(St ring value )
  48       {
  49           Sh ort number  = null;
  50           
  51           tr y
  52           {
  53                number =  Short.par seShort(va lue);
  54           }
  55           ca tch(Except ion ex)
  56           {
  57                number =  null;
  58           }
  59           
  60           re turn(numbe r);
  61       }
  62  
  63       /**
  64        * 
  65        * Rec eives a st ring and c onverts it  to Intege r
  66        * if  conversion  can't be  performed  then it re turns null
  67        * 
  68        * @pa ram value
  69        * @re turn
  70        */
  71       public  static In teger stri ngToIntege r(String v alue)
  72       {
  73           In teger numb er = null;
  74           
  75           tr y
  76           {
  77                number =  Integer.p arseInt(va lue);
  78           }
  79           ca tch(Except ion ex)
  80           {
  81                number =  null;
  82           }
  83           
  84           re turn(numbe r);
  85       }
  86  
  87       /**
  88        * 
  89        * Rec eives a st ring and c onverts it  to Double
  90        * if  conversion  can't be  performed  then it re turns null
  91        * 
  92        * @pa ram value
  93        * @re turn
  94        */
  95       public  static Do uble strin gToDouble( String val ue)
  96       {
  97           Do uble numbe r = null;
  98           
  99           tr y
  100           {
  101                number =  Double.pa rseDouble( value);
  102           }
  103           ca tch(Except ion ex)
  104           {
  105                number =  null;
  106           }
  107           
  108           re turn(numbe r);
  109       }
  110  
  111       /**
  112        * 
  113        * Rec eives a st ring and c onverts it  to Float
  114        * if  conversion  can't be  performed  then it re turns null
  115        * 
  116        * @pa ram value
  117        * @re turn
  118        */
  119       public  static Fl oat string ToFloat(St ring value )
  120       {
  121           Fl oat number  = null;
  122           
  123           tr y
  124           {
  125                number =  Float.par seFloat(va lue);
  126           }
  127           ca tch(Except ion ex)
  128           {
  129                number =  null;
  130           }
  131           
  132           re turn(numbe r);
  133       }
  134       
  135       /**
  136        * 
  137        * Rec eives a st ring and c onverts it  to Long
  138        * if  conversion  can't be  performed  then it re turns null
  139        * 
  140        * @pa ram value
  141        * @re turn
  142        */
  143       public  static Lo ng stringT oLong(Stri ng value)
  144       {
  145           Lo ng number  = null;
  146           
  147           tr y
  148           {
  149                number =  Long.pars eLong(valu e);
  150           }
  151           ca tch(Except ion ex)
  152           {
  153                number =  null;
  154           }
  155           
  156           re turn(numbe r);
  157       }
  158  
  159       /**
  160        * 
  161        * Rec eives a st ring and c onverts it  to Big In teger
  162        * if  conversion  can't be  performed  then it re turns null
  163        * 
  164        * @pa ram value
  165        * @re turn
  166        */
  167       public  static Bi gInteger s tringToBig Integer(St ring value )
  168       {
  169           Bi gInteger n umber = nu ll;
  170           
  171           tr y
  172           {
  173                number =  new BigIn teger(valu e);
  174           }
  175           ca tch(Except ion ex)
  176           {
  177                number =  null;
  178           }
  179           
  180           re turn(numbe r);
  181       }
  182  
  183       /**
  184        * 
  185        * Rec eives a st ring and c onverts it  to Big De cimal
  186        * if  conversion  can't be  performed  then it re turns null
  187        * 
  188        * @pa ram value
  189        * @re turn
  190        */
  191       public  static Bi gDecimal s tringToBig Decimal(St ring value )
  192       {
  193           Bi gDecimal n umber = nu ll;
  194           
  195           tr y
  196           {
  197                number =  new BigDe cimal(valu e);
  198           }
  199           ca tch(Except ion ex)
  200           {
  201                number =  null;
  202           }
  203           
  204           re turn(numbe r);
  205       }
  206  
  207   }