source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Common/NhincLib/src/gov/hhs/fha/nhinc/connectmgr/data/CMInternalConnInfoServices.java@ 507

Last change on this file since 507 was 507, checked in by George Lilly, 15 years ago

NHIN gateway and adaptor for use on linux with VistA EHR and RPMS

File size: 1.7 KB
Line 
1package gov.hhs.fha.nhinc.connectmgr.data;
2
3import java.util.List;
4import java.util.ArrayList;
5
6/**
7 * @author Les Westberg
8 */
9public class CMInternalConnInfoServices
10{
11 private List<CMInternalConnInfoService> serviceList = new ArrayList<CMInternalConnInfoService>();
12
13 /**
14 * Default constructor.
15 */
16 public CMInternalConnInfoServices()
17 {
18 clear();
19 }
20
21 /**
22 * Clear the contents of this and set it to a default state.
23 */
24 public void clear()
25 {
26 serviceList = new ArrayList<CMInternalConnInfoService>();;
27 }
28
29 /**
30 * Returns true of the contents of the object are the same as the one
31 * passed in.
32 *
33 * @param oCompare The object to compare.
34 * @return TRUE if the contents are the same as the one passed in.
35 */
36 public boolean equals(CMInternalConnInfoServices oCompare)
37 {
38 if (oCompare.serviceList.size() != this.serviceList.size())
39 {
40 return false;
41 }
42
43 int iCnt = this.serviceList.size();
44 for (int i = 0; i < iCnt; i++)
45 {
46 if (! this.serviceList.get(i).equals(oCompare.serviceList.get(i)))
47 {
48 return false;
49 }
50 }
51
52 // If we got here then everything is the same...
53 //----------------------------------------------
54 return true;
55 }
56
57
58
59 /**
60 * Return the list of services associated with this home community.
61 *
62 * @return The list of serviecs associated with this home community.
63 */
64 public List<CMInternalConnInfoService> getService()
65 {
66 return serviceList;
67 }
68
69}
Note: See TracBrowser for help on using the repository browser.