1 | public class C1 extends B{↵ | | 1 | public class Address {
↵
|
2 | private String address;↵ | | 2 | private Long id;
↵
|
3 | private String c1Name;↵ | | 3 | private String address;
↵
|
4 | private C2 c2;↵ | | 4 | private ↵
|
5 | private D d;↵ | | |
|
6 | private Collection c2s = new ArrayList();↵ | | 5 | String zip;↵
|
| | | 6 | private String country;↵
|
| | | 7 | private Person person;
↵
|
7 | /**↵ | | 8 | /**
↵
|
8 | * Returns the address.↵ | | 9 | * @return Returns the ↵
|
9 | * @return String↵ | | 10 | id.
↵
|
10 | */↵ | | 11 | */
↵
|
11 | public String getAddress() {↵ | | 12 | public Long getId() {
↵
|
12 | return address;↵ | | 13 | return id;
↵
|
13 | }↵ | | 14 | }↵
|
14 | ↵ | | 15 |
↵
|
15 | /**↵ | | 16 | /**↵
|
16 | * Sets the address.↵ | | 17 |
↵
|
17 | * @param address The address to set↵ | | 18 | * @param id The id to set.
↵
|
18 | */↵ | | 19 | */
↵
|
19 | public void setAddress(String address) {↵ | | 20 | public void setId(Long id) {
↵
|
20 | this.address = address;↵ | | 21 | this.id = id;
↵
|
21 | }↵ | | 22 | }↵
|
22 | ↵ | | 23 |
↵
|
23 | /**↵ | | 24 | /**
↵
|
24 | * Returns the d.↵ | | 25 | * @return Returns the ↵
|
25 | * @return D↵ | | 26 | person.
↵
|
26 | */↵ | | 27 | */
↵
|
27 | public D getD() {↵ | | 28 | public Person getPerson() {
↵
|
28 | return d;↵ | | 29 | return person;
↵
|
29 | }↵ | | 30 | }↵
|
30 | ↵ | | 31 |
↵
|
31 | /**↵ | | 32 | /**↵
|
32 | * Sets the d.↵ | | |
|
33 | * @param d The d↵ | | |
|
34 | to set↵ | | 33 | * @param person The person to set.
↵
|
35 | */↵ | | 34 | */
↵
|
36 | public void setD(D d) {↵ | | 35 | public void setPerson(Person person) {
↵
|
37 | this.d = d;↵ | | 36 | this.person = person;
↵
|
38 | }↵ | | 37 | }↵
|
39 | ↵ | | 38 |
↵
|
40 | /**↵ | | 39 | /**
↵
|
41 | * @return Returns the c.↵ | | 40 | * @return Returns the address.
↵
|
42 | */↵ | | 41 | */
↵
|
43 | public C2 getC2() {↵ | | 42 | public String getAddress() {
↵
|
44 | return c2;↵ | | 43 | return address;
↵
|
45 | }↵ | | 44 | }↵
|
| | | 45 |
↵
|
46 | /**↵ | | 46 | /**
↵
|
47 | * @param c The c to set.↵ | | 47 | * @param address The address to set.
↵
|
48 | */↵ | | 48 | */
↵
|
49 | public void setC2(C2 c) {↵ | | 49 | public void setAddress(String address) {
↵
|
50 | this.c2 = c;↵ | | 50 | this.address = address;
↵
|
51 | }↵ | | 51 | }↵
|
| | | 52 |
↵
|
52 | /**↵ | | 53 | /**
↵
|
53 | * @return Returns the cs.↵ | | 54 | * @return Returns the country.
↵
|
54 | */↵ | | 55 | */
↵
|
55 | public Collection getC2s() {↵ | | 56 | public String getCountry() {
↵
|
56 | return c2s;↵ | | 57 | return country;
↵
|
57 | }↵ | | 58 | }↵
|
| | | 59 |
↵
|
58 | /**↵ | | 60 | /**
↵
|
59 | * @param cs The cs to set.↵ | | 61 | * @param country The country to set.
↵
|
60 | */↵ | | 62 | */
↵
|
61 | public void setC2s(Collection cs) {↵ | | 63 | public void setCountry(String country) {
↵
|
62 | this.c2s = cs;↵ | | 64 | this.country = country;
↵
|
63 | }↵ | | 65 | }↵
|
| | | 66 |
↵
|
64 | /**↵ | | 67 | /**
↵
|
65 | * @return Returns the c1Name.↵ | | 68 | * @return Returns the zip.
↵
|
66 | */↵ | | 69 | */
↵
|
67 | public String getC1Name() {↵ | | 70 | public String getZip() {
↵
|
68 | return c1Name;↵ | | 71 | return zip;
↵
|
69 | }↵ | | 72 | }
↵
|
70 | /**↵ | | 73 | /**
↵
|
71 | * @param name The c1Name to set.↵ | | 74 | * @param zip The zip to set.
↵
|
72 | */↵ | | 75 | */
↵
|
73 | public void setC1Name(String name) {↵ | | 76 | public void setZip(String zip) {
↵
|
74 | c1Name = name | | 77 | this.zip = zip
|