impl: time slot
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package appointmentplanner;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
import appointmentplanner.api.TimeSlot;
|
||||
|
||||
public class TimeSlotImpl implements TimeSlot {
|
||||
|
||||
private Instant start;
|
||||
private Instant end;
|
||||
|
||||
public TimeSlotImpl(Instant start, Instant end) {
|
||||
this.start = start;
|
||||
this.end = end;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Instant start() {
|
||||
return start;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Instant end() {
|
||||
return end;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user