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 | /**
|
---|
4 | * Data class for a subscription policy item
|
---|
5 | *
|
---|
6 | * @author Neil Webb
|
---|
7 | */
|
---|
8 | public class SubscriptionPolicyItem
|
---|
9 | {
|
---|
10 | private String key;
|
---|
11 | private String value;
|
---|
12 |
|
---|
13 | public String getKey()
|
---|
14 | {
|
---|
15 | return key;
|
---|
16 | }
|
---|
17 |
|
---|
18 | public void setKey(String key)
|
---|
19 | {
|
---|
20 | this.key = key;
|
---|
21 | }
|
---|
22 |
|
---|
23 | public String getValue()
|
---|
24 | {
|
---|
25 | return value;
|
---|
26 | }
|
---|
27 |
|
---|
28 | public void setValue(String value)
|
---|
29 | {
|
---|
30 | this.value = value;
|
---|
31 | }
|
---|
32 |
|
---|
33 | @Override
|
---|
34 | public boolean equals(Object obj)
|
---|
35 | {
|
---|
36 | if (obj == null)
|
---|
37 | {
|
---|
38 | return false;
|
---|
39 | }
|
---|
40 | if (getClass() != obj.getClass())
|
---|
41 | {
|
---|
42 | return false;
|
---|
43 | }
|
---|
44 | final SubscriptionPolicyItem other = (SubscriptionPolicyItem) obj;
|
---|
45 | if (this.key != other.key && (this.key == null || !this.key.equals(other.key)))
|
---|
46 | {
|
---|
47 | return false;
|
---|
48 | }
|
---|
49 | if (this.value != other.value && (this.value == null || !this.value.equals(other.value)))
|
---|
50 | {
|
---|
51 | return false;
|
---|
52 | }
|
---|
53 | return true;
|
---|
54 | }
|
---|
55 |
|
---|
56 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.