2 |
|
|
3 |
import java.io.Serializable; |
import java.io.Serializable; |
4 |
|
|
5 |
|
|
6 |
public class StationBean implements Serializable{ |
public class StationBean implements Serializable{ |
7 |
|
|
8 |
private static final long serialVersionUID = 1L; |
private static final long serialVersionUID = 1L; |
9 |
|
|
10 |
|
private int id; |
11 |
|
|
12 |
|
|
13 |
private String name; |
private String name; |
14 |
private double longitude; |
private double longitude; |
15 |
private double latitude; |
private double latitude; |
16 |
private int distance; |
private int distance; |
17 |
private String address; |
private String address; |
18 |
|
private String code; |
19 |
|
|
20 |
|
private boolean isRegional; |
21 |
|
private boolean isSTrain; |
22 |
|
private boolean isMetro; |
23 |
|
|
24 |
|
public StationBean() { |
25 |
|
} |
26 |
|
|
27 |
public StationBean(String name, double latitude, double longitude, int distance, String address) { |
public StationBean(String name, double latitude, double longitude, int distance, String address) { |
28 |
this.name = name; |
this.name = name; |
48 |
public String getAddress() { |
public String getAddress() { |
49 |
return address; |
return address; |
50 |
} |
} |
51 |
|
|
52 |
|
public String getCode() { |
53 |
|
return code; |
54 |
|
} |
55 |
|
|
56 |
|
|
57 |
|
public void setCode(String code) { |
58 |
|
this.code = code; |
59 |
|
} |
60 |
|
|
61 |
|
public void setName(String name) { |
62 |
|
this.name = name; |
63 |
|
} |
64 |
|
|
65 |
|
public void setLongitude(double longitude) { |
66 |
|
this.longitude = longitude; |
67 |
|
} |
68 |
|
|
69 |
|
public void setLatitude(double latitude) { |
70 |
|
this.latitude = latitude; |
71 |
|
} |
72 |
|
|
73 |
|
public void setDistance(int distance) { |
74 |
|
this.distance = distance; |
75 |
|
} |
76 |
|
|
77 |
|
public void setAddress(String address) { |
78 |
|
this.address = address; |
79 |
|
} |
80 |
|
|
81 |
|
public int getId() { |
82 |
|
return id; |
83 |
|
} |
84 |
|
|
85 |
|
public void setId(int id) { |
86 |
|
this.id = id; |
87 |
|
} |
88 |
|
|
89 |
|
public boolean isRegional() { |
90 |
|
return isRegional; |
91 |
|
} |
92 |
|
|
93 |
|
public void setRegional(boolean isRegional) { |
94 |
|
this.isRegional = isRegional; |
95 |
|
} |
96 |
|
|
97 |
|
public boolean isSTrain() { |
98 |
|
return isSTrain; |
99 |
|
} |
100 |
|
|
101 |
|
public void setSTrain(boolean isSTrain) { |
102 |
|
this.isSTrain = isSTrain; |
103 |
|
} |
104 |
|
|
105 |
|
public boolean isMetro() { |
106 |
|
return isMetro; |
107 |
|
} |
108 |
|
|
109 |
|
public void setMetro(boolean isMetro) { |
110 |
|
this.isMetro = isMetro; |
111 |
|
} |
112 |
|
|
113 |
|
|
114 |
} |
} |