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.6 KB
|
Line | |
---|
1 | package gov.hhs.fha.nhinc.subscription.repository.data;
|
---|
2 |
|
---|
3 | import java.io.Serializable;
|
---|
4 |
|
---|
5 | /**
|
---|
6 | * Data class for a community
|
---|
7 | *
|
---|
8 | * @author Neil Webb
|
---|
9 | */
|
---|
10 | public class Community implements Serializable
|
---|
11 | {
|
---|
12 | private static final long serialVersionUID = -6937227984548195062L;
|
---|
13 | private String communityId;
|
---|
14 | private String communityName;
|
---|
15 |
|
---|
16 | public String getCommunityId()
|
---|
17 | {
|
---|
18 | return communityId;
|
---|
19 | }
|
---|
20 |
|
---|
21 | public void setCommunityId(String communityId)
|
---|
22 | {
|
---|
23 | this.communityId = communityId;
|
---|
24 | }
|
---|
25 |
|
---|
26 | public String getCommunityName()
|
---|
27 | {
|
---|
28 | return communityName;
|
---|
29 | }
|
---|
30 |
|
---|
31 | public void setCommunityName(String communityName)
|
---|
32 | {
|
---|
33 | this.communityName = communityName;
|
---|
34 | }
|
---|
35 |
|
---|
36 | @Override
|
---|
37 | public boolean equals(Object obj)
|
---|
38 | {
|
---|
39 | if (obj == null)
|
---|
40 | {
|
---|
41 | return false;
|
---|
42 | }
|
---|
43 | if (getClass() != obj.getClass())
|
---|
44 | {
|
---|
45 | return false;
|
---|
46 | }
|
---|
47 | final Community other = (Community) obj;
|
---|
48 | if (this.communityId != other.communityId && (this.communityId == null || !this.communityId.equals(other.communityId)))
|
---|
49 | {
|
---|
50 | return false;
|
---|
51 | }
|
---|
52 | if (this.communityName != other.communityName && (this.communityName == null || !this.communityName.equals(other.communityName)))
|
---|
53 | {
|
---|
54 | return false;
|
---|
55 | }
|
---|
56 | return true;
|
---|
57 | }
|
---|
58 |
|
---|
59 | @Override
|
---|
60 | public int hashCode()
|
---|
61 | {
|
---|
62 | int hash = 5;
|
---|
63 | hash = 73 * hash + (this.communityId != null ? this.communityId.hashCode() : 0);
|
---|
64 | hash = 73 * hash + (this.communityName != null ? this.communityName.hashCode() : 0);
|
---|
65 | return hash;
|
---|
66 | }
|
---|
67 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.