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.8 KB
|
Line | |
---|
1 | package gov.hhs.fha.nhinc.connectmgr.data;
|
---|
2 |
|
---|
3 | import java.util.List;
|
---|
4 | import java.util.ArrayList;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * @author Les Westberg
|
---|
8 | */
|
---|
9 | public class CMInternalConnectionInfos
|
---|
10 | {
|
---|
11 | private List<CMInternalConnectionInfo> internalConnectionInfoList = new ArrayList<CMInternalConnectionInfo>();
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * Default Constructor.
|
---|
15 | */
|
---|
16 | public CMInternalConnectionInfos()
|
---|
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 | internalConnectionInfoList = new ArrayList<CMInternalConnectionInfo>();
|
---|
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(CMInternalConnectionInfos oCompare)
|
---|
37 | {
|
---|
38 | if (oCompare.internalConnectionInfoList.size() != this.internalConnectionInfoList.size())
|
---|
39 | {
|
---|
40 | return false;
|
---|
41 | }
|
---|
42 |
|
---|
43 | int iCnt = this.internalConnectionInfoList.size();
|
---|
44 | for (int i = 0; i < iCnt; i++)
|
---|
45 | {
|
---|
46 | if (! this.internalConnectionInfoList.get(i).equals(oCompare.internalConnectionInfoList.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 | * This returns a list of InternalConnectionInfo objects.
|
---|
61 | *
|
---|
62 | * @return The list of internal conneciton info objects.
|
---|
63 | */
|
---|
64 | public List<CMInternalConnectionInfo> getInternalConnectionInfo()
|
---|
65 | {
|
---|
66 | return internalConnectionInfoList;
|
---|
67 | }
|
---|
68 |
|
---|
69 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.