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.
# | Location | File | Last Modified |
---|---|---|---|
1 | C:\AraxisMergeCompare\Pri_un\ARS_Backend\ars_app\src\main\java\gov\va\med\ewv\bean | ArchiveFileRequest.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 | ArchiveFileRequest.java | Thu Mar 28 17:50:58 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 212 |
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.e wv.bean; | |
2 | ||
3 | import jav a.util.Lis t; | |
4 | ||
5 | /** | |
6 | * Specif ies an Arc hive File Request to feed in a s input in to the "a pi/v1/file archive" | |
7 | * RESTFu l Web Serv ice. An JS ON-formatt ed string version of an instan ce of this class | |
8 | * will s erve as th e Request Body input to the "a pi/v1/file archive" R ESTFul Web Service. | |
9 | * | |
10 | * @author DN S PEREZF | |
11 | * | |
12 | */ | |
13 | public cla ss Archive FileReques t { | |
14 | ||
15 | /* * | |
16 | * List of A rchived PD F Referenc e object w here each such objec t identifi es a PDF R eference i n | |
17 | * the datab ase whose Archive St ate will b e set to " true". | |
18 | * / | |
19 | pr ivate List <ArchivedP dfReferenc e> archive dPdfRefere nces; | |
20 | ||
21 | /* * | |
22 | * Gets the list of Ar chived PDF Reference object wh ere each s uch object identifie s a PDF Re ference in | |
23 | * the datab ase whose Archive St ate will b e set to " true". | |
24 | * | |
25 | * @return - this list of Archiv ed PDF Ref erence obj ect where each such object ide ntifies a PDF Refere nce in | |
26 | * the datab ase whose Archive St ate will b e set to " true". | |
27 | * / | |
28 | pu blic List< ArchivedPd fReference > getArchi vedPdfRefe rences() { | |
29 | retu rn archive dPdfRefere nces; | |
30 | } | |
31 | ||
32 | /* * | |
33 | * Sets the list of Ar chived PDF Reference object wh ere each s uch object identifie s a PDF Re ference in | |
34 | * the datab ase whose Archive St ate will b e set to " true". | |
35 | * | |
36 | * @param ar chivedPdfR eferences - the list of Archiv ed PDF Ref erence obj ects | |
37 | * / | |
38 | pu blic void setArchive dPdfRefere nces(List< ArchivedPd fReference > archived PdfReferen ces) { | |
39 | this .archivedP dfReferenc es = archi vedPdfRefe rences; | |
40 | } | |
41 | ||
42 | /* * | |
43 | * Returns a string re presentati on of this object. I n general, the toStr ing method | |
44 | * returns a string th at "textua lly repres ents" this object. T he result should be | |
45 | * a concise but infor mative rep resentatio n that is easy for a person to read. | |
46 | * It is rec ommended t hat all su bclasses o verride th is method. | |
47 | * | |
48 | * See the h ttps://doc s.oracle.c om/javase/ 8/docs/api /java/lang /Object.ht ml#toStrin g-- | |
49 | * web page for detail s. | |
50 | * | |
51 | * @return - a string representa tion of an instance of this cl ass | |
52 | * | |
53 | * / | |
54 | @O verride | |
55 | pu blic Strin g toString () { | |
56 | Stri ngBuilder builder = new String Builder(); | |
57 | buil der.append ("ArchiveF ileRequest [archived PdfReferen ces="); | |
58 | buil der.append (archivedP dfReferenc es); | |
59 | buil der.append ("]"); | |
60 | retu rn builder .toString( ); | |
61 | } | |
62 | ||
63 | /* * | |
64 | * 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. | |
65 | * 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. | |
66 | * | |
67 | * @return - a hash co de value f or the obj ect | |
68 | * / | |
69 | @O verride | |
70 | pu blic int h ashCode() { | |
71 | fina l int prim e = 31; | |
72 | int result = 1 ; | |
73 | resu lt = prime * result + ((archiv edPdfRefer ences == n ull) ? 0 : archivedP dfReferenc es.hashCod e()); | |
74 | retu rn result; | |
75 | } | |
76 | ||
77 | /* * | |
78 | * Indicates whether s ome other object is "equal to" this one. | |
79 | * 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. | |
80 | * | |
81 | * @return - 1) boolea n true if some other object is "equal to " this one | |
82 | * 2) boolea n false if some othe r object i s not "equ al to" thi s one | |
83 | * / | |
84 | @O verride | |
85 | pu blic boole an equals( Object obj ) { | |
86 | if ( this == ob j) | |
87 | return true; | |
88 | if ( obj == nul l) | |
89 | return false; | |
90 | if ( getClass() != obj.ge tClass()) | |
91 | return false; | |
92 | Arch iveFileReq uest other = (Archiv eFileReque st) obj; | |
93 | if ( archivedPd fReference s == null) { | |
94 | if (ot her.archiv edPdfRefer ences != n ull) | |
95 | return f alse; | |
96 | } el se if (!ar chivedPdfR eferences. equals(oth er.archive dPdfRefere nces)) | |
97 | return false; | |
98 | retu rn true; | |
99 | } | |
100 | ||
101 | ||
102 | ||
103 | ||
104 | ||
105 | ||
106 | } | |
107 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.