Skip to content

Выполнить задание 8 спринта: добавить временные метки - #5

Merged
milayadasha merged 1 commit into
mainfrom
sprint_8-solution-time-and-duration
Nov 10, 2025
Merged

milayadasha merged 1 commit into
mainfrom
sprint_8-solution-time-and-duration

Conversation

@milayadasha

Copy link
Copy Markdown
Owner
  1. Добавлены временные метки для всех типов задач
  2. Доработаны менеджеры задач на работу с временными метками
  3. Проверяется пересечение задач по времени про добавлении и обновлении
  4. Циклы переделаны в стримы
  5. Добавлены новые тестовые сценарии

@maks-avilow maks-avilow left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Дарья привет! спасибо за работу над заданием, принимается


public Duration getDuration() {
return duration;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тут корректно, плюсую


DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd.MM.yyyy HH:mm");
String taskStartTimeString = "";
Optional<LocalDateTime> taskStartTime = Optional.ofNullable(task.getStartTime());

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

используешь Optional это лайк

LocalDateTime taskStartTime = null;
Duration taskDuration = null;

if (splitValues.length > 6 && !splitValues[6].isEmpty()) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

магические числа лучше выносить в отдельные константы

@milayadasha
milayadasha merged commit 3b7d2ae into main Nov 10, 2025
1 check passed
@milayadasha
milayadasha deleted the sprint_8-solution-time-and-duration branch November 10, 2025 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants