private void resetAssigmentsFittingAllocationDatesToResultingAssignments(
AllocationInterval interval, List<T> assignmentsCreated) {
updateAssignments(interval, assignmentsCreated);
LocalDate startConsideringAssignments = getStartConsideringAssignments();
IntraDayDate start = IntraDayDate
.startOfDay(startConsideringAssignments);
if (interval.getStartInclusive()
.areSameDay(startConsideringAssignments)) {
start = interval.getStartInclusive();
}
getDayAssignmentsState().setIntraDayStart(start);
LocalDate endConsideringAssignments = getEndDateGiven(getAssignments());
IntraDayDate end = IntraDayDate.startOfDay(endConsideringAssignments);
if (interval.getEndExclusive().areSameDay(endConsideringAssignments)) {
end = interval.getEndExclusive();
}
getDayAssignmentsState().setIntraDayEnd(end);
}