impl: time slot

This commit is contained in:
Václav Přibík
2025-10-23 21:18:52 +02:00
parent 335854583e
commit 427e963cac

View File

@@ -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;
}
}