forked from ashishps1/awesome-low-level-design
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDriver.java
67 lines (53 loc) · 1.38 KB
/
Driver.java
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
58
59
60
61
62
63
64
65
66
67
package ridesharingservice;
public class Driver {
private int id;
private String name;
private String contact;
private String licensePlate;
private Location location;
private DriverStatus status;
public Driver(int id, String name, String contact, String licensePlate, Location location, DriverStatus status) {
this.id = id;
this.name = name;
this.contact = contact;
this.licensePlate = licensePlate;
this.location = location;
this.status = status;
}
public void setId(int id) {
this.id = id;
}
public void setName(String name) {
this.name = name;
}
public void setContact(String contact) {
this.contact = contact;
}
public void setLicensePlate(String licensePlate) {
this.licensePlate = licensePlate;
}
public void setLocation(Location location) {
this.location = location;
}
public void setStatus(DriverStatus status) {
this.status = status;
}
public int getId() {
return id;
}
public String getName() {
return name;
}
public String getContact() {
return contact;
}
public String getLicensePlate() {
return licensePlate;
}
public Location getLocation() {
return location;
}
public DriverStatus getStatus() {
return status;
}
}