impl: local day plan
This commit is contained in:
@@ -17,26 +17,29 @@ import appointmentplanner.api.TimeSlot;
|
|||||||
|
|
||||||
public class LocalDayPlanImpl implements LocalDayPlan {
|
public class LocalDayPlanImpl implements LocalDayPlan {
|
||||||
|
|
||||||
public LocalDayPlanImpl(LocalDay day, Instant startOfDay, Instant endOfDay) {
|
public LocalDayPlanImpl(LocalDay day, Instant start, Instant end) {
|
||||||
throw new UnsupportedOperationException("Unimplemented constructor 'LocalDayPlanImpl'");
|
this.day = day;
|
||||||
|
this.start = start;
|
||||||
|
this.end = end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private LocalDay day;
|
||||||
|
private Instant start;
|
||||||
|
private Instant end;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public LocalDay day() {
|
public LocalDay day() {
|
||||||
// TODO Auto-generated method stub
|
return day;
|
||||||
throw new UnsupportedOperationException("Unimplemented method 'day'");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Instant startOfDay() {
|
public Instant startOfDay() {
|
||||||
// TODO Auto-generated method stub
|
return start;
|
||||||
throw new UnsupportedOperationException("Unimplemented method 'startOfDay'");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Instant endOfDay() {
|
public Instant endOfDay() {
|
||||||
// TODO Auto-generated method stub
|
return end;
|
||||||
throw new UnsupportedOperationException("Unimplemented method 'endOfDay'");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user