Skip to content

Sprint 9 solution http api - #7

Closed
Darya346 wants to merge 21 commits into
mainfrom
sprint_9-solution-http-api
Closed

Darya346 wants to merge 21 commits into
mainfrom
sprint_9-solution-http-api

Conversation

@Darya346

Copy link
Copy Markdown
Owner

No description provided.

…ечений

- Добавлены поля duration, startTime в Task, Epic, Subtask
- Реализован метод getEndTime()
- Добавлен getPrioritizedTasks() с TreeSet для доступа за O(n)
- Реализованы методы проверки пересечений по времени
- Добавлены Optional методы для поиска задач
- Обновлена сериализация/десериализация в FileBackedTaskManager
- Добавлено полное тестовое покрытие новой функциональности
- Использован Stream API в нескольких методах
- Реализована проверка статуса Epic для граничных условий
- Добавлены тесты для HistoryManager
Comment thread src/http/JsonConverter.java Outdated
sb.append("[");
for (int i = 0; i < subtasks.size(); i++) {
sb.append(subtaskToJson(subtasks.get(i)));
if (i < subtasks.size() - 1) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Переменные лучше называть осмысленно

Comment thread src/http/JsonConverter.java Outdated
StringBuilder sb = new StringBuilder();
sb.append("[");
for (int i = 0; i < subtasks.size(); i++) {
sb.append(subtaskToJson(subtasks.get(i)));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Тоже самое

Comment thread src/http/HttpTaskServer.java Outdated
server.createContext("/prioritized", new PrioritizedHandler(taskManager));

server.start();
System.out.println("HTTP Task Server запущен на порту " + PORT);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Лучше использовать String.fomat

@Darya346 Darya346 closed this Jul 6, 2026
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