1 | public class Address {↵ | | 1 | public class Address {
↵
|
2 | private String street;↵ | | 2 | private Long id;
↵
|
3 | private String city;↵ | | 3 | private String address;
↵
|
4 | private String postalCode;↵ | | 4 | private String zip;
↵
|
5 | private String country;↵ | | 5 | private String country;
↵
|
6 | private StateProvince stateProvince;↵ | | 6 | private ↵
|
| | | 7 | Person person;↵
|
| | | 8 | /**↵
|
| | | 9 | * @return Returns the id.↵
|
| | | 10 | */
↵
|
7 | public String getStreet() {↵ | | 11 | public Long getId() {
↵
|
8 | return street;↵ | | 12 | return ↵
|
9 | }↵ | | |
|
|
10 | public void setStreet(String street↵ | | 13 | id;↵
|
| | | 14 | }↵
|
| | | 15 | /**↵
|
| | | 16 | * @param id The id to set.↵
|
| | | 17 | */↵
|
11 | ) {↵ | | 18 | public void setId(Long id) {
↵
|
12 | this.street = street;↵ | | 19 | this.↵
|
13 | }↵ | | |
|
|
14 | public String getCity↵ | | 20 | id = id;↵
|
| | | 21 | }↵
|
| | | 22 | /**↵
|
| | | 23 | * @return Returns the person.↵
|
| | | 24 | */↵
|
15 | () {↵ | | 25 | public Person getPerson() {
↵
|
16 | return city;↵ | | 26 | return ↵
|
17 | }↵ | | |
|
|
18 | public void setCity(String city↵ | | 27 | person;↵
|
| | | 28 | }↵
|
| | | 29 | /**↵
|
| | | 30 | * @param person The person to set.↵
|
| | | 31 | */↵
|
19 | ) {↵ | | 32 | public void setPerson(Person person) {
↵
|
20 | this.city = city;↵ | | 33 | this.↵
|
21 | }↵ | | |
|
| | | 34 | person = person;↵
|
| | | 35 | }↵
|
| | | 36 | /**↵
|
| | | 37 | * @return Returns the address.↵
|
| | | 38 | */
↵
|
22 | public String getPostalCode() {↵ | | 39 | public String getAddress() {
↵
|
23 | return postalCode;↵ | | 40 | return ↵
|
24 | }↵ | | |
|
| | | 41 | address;↵
|
| | | 42 | }↵
|
| | | 43 | /**↵
|
| | | 44 | * @param address The address to set.↵
|
| | | 45 | */
↵
|
25 | public void setPostalCode(String postalCode) {↵ | | 46 | public void setAddress(String address) {
↵
|
26 | this.postalCode = postalCode;↵ | | 47 | this.↵
|
27 | }↵ | | |
|
| | | 48 | address = address;↵
|
| | | 49 | }↵
|
| | | 50 | /**↵
|
| | | 51 | * @return Returns the country.↵
|
| | | 52 | */
↵
|
28 | public String getCountry() {↵ | | 53 | public String getCountry() {
↵
|
29 | return country;↵ | | 54 | return country;
↵
|
30 | }↵ | | 55 | }↵
|
|
| | | 56 | /**↵
|
| | | 57 | * @param country The country to set.↵
|
| | | 58 | */
↵
|
31 | public void setCountry(String country) {↵ | | 59 | public void setCountry(String country) {
↵
|
32 | this.country = country;↵ | | 60 | this.country = country;
↵
|
33 | }↵ | | 61 | }↵
|
|
34 | public StateProvince getStateProvince↵ | | |
|
| | | 62 | /**↵
|
| | | 63 | * @return Returns the zip.↵
|
| | | 64 | */↵
|
35 | () {↵ | | 65 | public String getZip() {
↵
|
36 | return stateProvince;↵ | | 66 | return ↵
|
37 | }↵ | | |
|
|
38 | public void setStateProvince(StateProvince stateProvince↵ | | 67 | zip;↵
|
| | | 68 | }↵
|
| | | 69 | /**↵
|
| | | 70 | * @param zip The zip to set.↵
|
| | | 71 | */↵
|
39 | ) {↵ | | 72 | public void setZip(String zip) {
↵
|
40 | this.stateProvince = stateProvince | | 73 | this.zip = zip
|