LineStationRouteDto.java
1.36 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
56
57
package com.bsth.controller.schedule.dto;
/**
* 线路站点路由dto。
*/
public class LineStationRouteDto {
/** 站点名字 */
private String stationName;
/** 站点编码 */
private String stationCode;
public String getStationName() {
return stationName;
}
public void setStationName(String stationName) {
this.stationName = stationName;
}
public String getStationCode() {
return stationCode;
}
public void setStationCode(String stationCode) {
this.stationCode = stationCode;
}
public LineStationRouteDto() {}
public LineStationRouteDto(Builder builder) {
this.stationName = builder.stationName;
this.stationCode = builder.stationCode;
}
public static Builder getBuilder() {
return new Builder();
}
public static class Builder {
/** 站点名字 */
private String stationName;
/** 站点编码 */
private String stationCode;
public Builder setStationName(String stationName) {
this.stationName = stationName;
return this;
}
public Builder setStationCode(String stationCode) {
this.stationCode = stationCode;
return this;
}
public LineStationRouteDto build() {
return new LineStationRouteDto(this);
}
}
}