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