80. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 4/2/2019 1:06:56 PM 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.

80.1 Files compared

# Location File Last Modified
1 C:\AraxisMergeCompare\Pri_un\ARS_Backend\ars_app\src\main\java\gov\va\med\ewv\bean FileUploadRequest.java Wed Mar 27 19:21:12 2019 UTC
2 C:\AraxisMergeCompare\Pri_re\ARS_Backend\ars_app\src\main\java\gov\va\med\ewv\bean FileUploadRequest.java Thu Mar 28 17:50:58 2019 UTC

80.2 Comparison summary

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

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

80.4 Active regular expressions

No regular expressions were active.

80.5 Comparison detail

  1   package go v.va.med.e wv.bean;
  2  
  3   import jav a.util.Lis t;
  4  
  5   import org .springfra mework.web .multipart .Multipart File;
  6  
  7   /**
  8    * Instanc e of this  class is u sed as the  input arg ument into  the "api/ v1/fileupl oad"
  9    * RESTFul  Web Servi ce. 
  10    * 
  11    * Instanc e of a Fil eUploadReq uest is fe d into the  Request B ody in "mu ltipart/*"  format
  12    * of the  "api/v1/fi leupload"  RESTFul We b Service.  
  13    * 
  14    * @author   DN S      PEREZF
  15    *
  16    */
  17   public cla ss FileUpl oadRequest  {
  18  
  19           /* *
  20            *  List of M ultipartFi le instanc e objects.  It is thi s list tha t has the  informatio n
  21            *  that will  be used b y the "api /v1/fileup load" REST Ful Web Se rvice
  22            * /
  23           pr ivate List <Multipart File> mult ipartFiles ;
  24           
  25           /* *
  26            *  List of A rchivedPdf Reference  objects.
  27            * /
  28           pr ivate List <ArchivedP dfReferenc e> archive dPdfRefere nces;
  29           
  30           pr ivate Stri ng myfield ;
  31           
  32           /* *
  33            *  Gets the  list of Mu ltipartFil e instance  objects.
  34            *  
  35            *  @return -  the list  of Multipa rtFile ins tance obje cts
  36            * /
  37           pu blic List< MultipartF ile> getMu ltipartFil es() {
  38                    retu rn multipa rtFiles;
  39           }
  40           
  41           /* *
  42            *  Sets the  list of Mu ltipartFil e instance  objects.
  43            *  
  44            *  @param mu ltipartFil es - the l ist of Mul tipartFile  instance  objects
  45            * /
  46           pu blic void  setMultipa rtFiles(Li st<Multipa rtFile> mu ltipartFil es) {
  47                    this .multipart Files = mu ltipartFil es;
  48           }
  49           
  50           /* *
  51            *  Gets the  list of Ar chivedPdfR eference o bjects.
  52            *  
  53            *  @return -  the list  of Archive dPdfRefere nce object s
  54            * /
  55           pu blic List< ArchivedPd fReference > getArchi vedPdfRefe rences() {
  56                    retu rn archive dPdfRefere nces;
  57           }
  58           
  59           /* *
  60            *  Sets the  list of Ar chivedPdfR eference o bjects.
  61            *  
  62            *  @param ar chivedPdfR eferences  - the list  of Archiv edPdfRefer ence objec ts
  63            * /
  64           pu blic void  setArchive dPdfRefere nces(List< ArchivedPd fReference > archived PdfReferen ces) {
  65                    this .archivedP dfReferenc es = archi vedPdfRefe rences;
  66           }
  67           
  68           /* *
  69            *  Gets the  "myfield"  data membe r value.
  70            *  
  71            *  @return -  the "myfi eld" data  member val ue
  72            * /
  73           pu blic Strin g getMyfie ld() {
  74                    retu rn myfield ;
  75           }
  76           
  77           /* *
  78            *  Sets the  "myfield"  data membe r value.
  79            *  
  80            *  @param my field - th e "myfield " data mem ber value
  81            * /
  82           pu blic void  setMyfield (String my field) {
  83                    
  84                    Syst em.out.pri ntln("Sett ing myfiel d = " + my field);
  85                    this .myfield =  myfield;
  86           }
  87           
  88           /* *
  89            *  Returns a  string re presentati on of this  object. I n general,  the toStr ing method  
  90            *  returns a  string th at "textua lly repres ents" this  object. T he result  should be 
  91            *  a concise  but infor mative rep resentatio n that is  easy for a  person to  read. 
  92            *  It is rec ommended t hat all su bclasses o verride th is method.
  93            *  
  94            *  See the h ttps://doc s.oracle.c om/javase/ 8/docs/api /java/lang /Object.ht ml#toStrin g-- 
  95            *  web page  for detail s.
  96            *  
  97            *  @return -  a string  representa tion of an  instance  of this cl ass
  98            * /
  99           @O verride
  100           pu blic Strin g toString () {
  101                    Stri ngBuilder  builder =  new String Builder();
  102                    buil der.append ("FileUplo adRequest  [multipart Files=");
  103                    buil der.append (multipart Files);
  104                    buil der.append (", archiv edPdfRefer ences=");
  105                    buil der.append (archivedP dfReferenc es);
  106                    buil der.append (", myfiel d=");
  107                    buil der.append (myfield);
  108                    buil der.append ("]");
  109                    retu rn builder .toString( );
  110           }
  111           
  112           /* *
  113            *  Gets a ha sh code va lue for th e object.  This metho d is suppo rted for t he benefit  of hash t ables such  as those  provided b y HashMap.
  114            *  See the h ttps://doc s.oracle.c om/javase/ 8/docs/api /java/lang /Object.ht ml#hashCod e-- web pa ge for det ails.
  115            *  
  116            *  @return -  a hash co de value f or the obj ect
  117            * /
  118           @O verride
  119           pu blic int h ashCode()  {
  120                    fina l int prim e = 31;
  121                    int  result = 1 ;
  122                    resu lt = prime  * result  + ((archiv edPdfRefer ences == n ull) ? 0 :  archivedP dfReferenc es.hashCod e());
  123                    resu lt = prime  * result  + ((multip artFiles = = null) ?  0 : multip artFiles.h ashCode()) ;
  124                    resu lt = prime  * result  + ((myfiel d == null)  ? 0 : myf ield.hashC ode());
  125                    retu rn result;
  126           }
  127           
  128           /* *
  129            *  Indicates  whether s ome other  object is  "equal to"  this one.
  130            *  See the h ttps://doc s.oracle.c om/javase/ 8/docs/api /java/lang /Object.ht ml#equals- java.lang. Object- we b page for  details.
  131            *  
  132            *  @return -  1) boolea n true if  some other  object is  "equal to " this one
  133            *             2) boolea n false if  some othe r object i s not "equ al to" thi s one
  134            * /
  135           @O verride
  136           pu blic boole an equals( Object obj ) {
  137                    if ( this == ob j)
  138                             return  true;
  139                    if ( obj == nul l)
  140                             return  false;
  141                    if ( getClass()  != obj.ge tClass())
  142                             return  false;
  143                    File UploadRequ est other  = (FileUpl oadRequest ) obj;
  144                    if ( archivedPd fReference s == null)  {
  145                             if (ot her.archiv edPdfRefer ences != n ull)
  146                                      return f alse;
  147                    } el se if (!ar chivedPdfR eferences. equals(oth er.archive dPdfRefere nces))
  148                             return  false;
  149                    if ( multipartF iles == nu ll) {
  150                             if (ot her.multip artFiles ! = null)
  151                                      return f alse;
  152                    } el se if (!mu ltipartFil es.equals( other.mult ipartFiles ))
  153                             return  false;
  154                    if ( myfield ==  null) {
  155                             if (ot her.myfiel d != null)
  156                                      return f alse;
  157                    } el se if (!my field.equa ls(other.m yfield))
  158                             return  false;
  159                    retu rn true;
  160           }
  161    
  162   }
  163