-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOpeningTimes.java
More file actions
49 lines (39 loc) · 987 Bytes
/
OpeningTimes.java
File metadata and controls
49 lines (39 loc) · 987 Bytes
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
package model;
import java.time.DayOfWeek;
import java.time.LocalTime;
public class OpeningTimes {
private DayOfWeek dayOfWeek;
private LocalTime from;
private LocalTime to;
public OpeningTimes(DayOfWeek dayOfWeek, LocalTime from, LocalTime to) {
this.dayOfWeek = dayOfWeek;
this.from = from;
this.to = to;
}
public DayOfWeek getDayOfWeek() {
return dayOfWeek;
}
public void setDayOfWeek(DayOfWeek dayOfWeek) {
this.dayOfWeek = dayOfWeek;
}
public LocalTime getFrom() {
return from;
}
public void setFrom(LocalTime from) {
this.from = from;
}
public LocalTime getTo() {
return to;
}
public void setTo(LocalTime to) {
this.to = to;
}
@Override
public String toString() {
return "{" +
"dayOfWeek=" + dayOfWeek +
", from=" + from +
", to=" + to +
'}';
}
}