Location.java
1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.xkl.domain;
/**
* Created by zhaoyue on 2017/4/15.
*/
public class Location {
private String country;
private String province;
private String city;
private String district;
public Location(String country, String province, String city, String district) {
this.country = country;
this.province = province;
this.city = city;
this.district = district;
}
@Override
public String toString() {
return country + province + city + district;
}
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public String getProvince() {
return province;
}
public void setProvince(String province) {
this.province = province;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getDistrict() {
return district;
}
public void setDistrict(String district) {
this.district = district;
}
}