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.1 KB
|
Line | |
---|
1 | package gov.hhs.fha.nhinc.subscription.repository.data;
|
---|
2 |
|
---|
3 | import java.util.ArrayList;
|
---|
4 | import java.util.List;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * Data object for a subscription policy
|
---|
8 | *
|
---|
9 | * @author Neil Webb
|
---|
10 | */
|
---|
11 | public class SubscriptionPolicy
|
---|
12 | {
|
---|
13 | private List<SubscriptionPolicyItem> policyItems;
|
---|
14 |
|
---|
15 | public List<SubscriptionPolicyItem> getPolicyItems()
|
---|
16 | {
|
---|
17 | if(policyItems == null)
|
---|
18 | {
|
---|
19 | policyItems = new ArrayList<SubscriptionPolicyItem>();
|
---|
20 | }
|
---|
21 | return policyItems;
|
---|
22 | }
|
---|
23 |
|
---|
24 | public void setPolicyItems(List<SubscriptionPolicyItem> policyItems)
|
---|
25 | {
|
---|
26 | this.policyItems = policyItems;
|
---|
27 | }
|
---|
28 |
|
---|
29 | @Override
|
---|
30 | public boolean equals(Object obj)
|
---|
31 | {
|
---|
32 | if (obj == null)
|
---|
33 | {
|
---|
34 | return false;
|
---|
35 | }
|
---|
36 | if (getClass() != obj.getClass())
|
---|
37 | {
|
---|
38 | return false;
|
---|
39 | }
|
---|
40 | final SubscriptionPolicy other = (SubscriptionPolicy) obj;
|
---|
41 | if (this.policyItems != other.policyItems && (this.policyItems == null || !this.policyItems.equals(other.policyItems)))
|
---|
42 | {
|
---|
43 | return false;
|
---|
44 | }
|
---|
45 | return true;
|
---|
46 | }
|
---|
47 |
|
---|
48 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.